Custom CSS
You can apply custom CSS styles on a per-site basis
All elements within a form schema can have a styleClasses key that can take a string of space separated CSS classes. The below example adds the class my-red-box
to an input element.
{
"inputType": "text",
"label": "My Input",
"model": "field1",
"styleClasses": "col-md-3 my-red-box",
"type": "input"
}
This class is defined in the CSS section of the Site / Appearance as follows:
.my-red-box {
border-width: 2px;
border-color: red;
border-style: solid;
padding: 20px;
}
Page scoped classes
To target specific forms in your app, you can add a styleClasses
key. This will allow you to still keep your CSS in a single location and theme pages separately.

Resulting is something similar to the following:

Last updated
Was this helpful?