Forms
Class Naming
Forms consist of modular components with consistent styling patterns. Each element (labels, fields, toggles, and messages) is styled using reusable classes and combo modifiers to adapt to different contexts (inverse, accents, etc.).
Form Components
Elements
Input elements
- Input Label
- Input Block - wrapper of the label and input field
Checkbox elements:
- Checkbox Toggle
- Checkbox Label
Radio elements:
- Radio Toggle
- Radio Label
Surface Modifiers
To ensure proper contrast and accessibility, surface modifiers are applied as combo classes to individual form elements and following naming convention Element
Element
Surface
Example: Checkbox Toggle Checkbox On inverse