Skip to content

Themes and styling ​

Every form has a theme, an accent colour and a colour scheme, set in the Appearance section of the form settings. Options → General sets the defaults for new forms.

The Appearance settings: Mark fields, the four themes, corner radius and accent colour

Themes ​

ThemeLook
ClassicFollows your Joomla template's fonts, colours and buttons
CleanA tinted panel with larger, rounded fields and a full-width button
UnderlineNo borders, just a line under each field
FloatingLabels sit inside the fields and move up when a field is focused or filled

Here is the "Contact us" form in Classic on Joomla's default template:

The Contact us form on the site in the Classic theme

Corner radius rounds fields and buttons: the theme's default, or 0, 4, 8, 12 or 16 px.

Accent colour and colour scheme ​

  • Form accent color colours the buttons and highlights. Pick a swatch or enter a hex colour; Reset goes back to the default. Button text switches between white and dark automatically, so it stays readable.
  • Color scheme decides how the form follows light and dark themes: light, dark or auto. Classic and Underline have no background of their own, so with auto they stay light, and dark needs a dark site template.

In the builder, the preview's Appearance menu tries themes, colours and schemes without changing the form.

Mark fields ​

Mark fields decides how visitors tell which fields they must fill in:

  • Required: a red * on required fields, and the note "Fields marked * are required."
  • Optional: "(optional)" after each optional field, and the note "All fields are required unless marked (optional)."
  • Both: the asterisk and "(optional)".

New forms use Both. Screen readers read "(optional)"; the asterisk stays silent, because the field is already announced as required.

Custom CSS ​

The Custom CSS section adds CSS for this form, and a Form wrapper class for the form's outer element. The section shows This form's selector: start each rule with it, because the CSS is added to the whole page the form is on.

Only Super Users can change Custom CSS. Other administrators see it but can't edit it, and when they import a form file, its Custom CSS is left out and the import says so.

css
/* Custom CSS shows this selector with your form's ID. */
.nxforms-form[data-form-id="12"] .nxforms-form__button {
  text-transform: uppercase;
}

See Styling and overrides for the theme's CSS variables and the classes you can target.