Use the active-field module to apply custom styling to focused and/or nonempty form fields.

Examples

Basic