Theming capabilities
Forms can be themed and customized. There are four levels of customization:
- Base themes: Choose between
iOS,MaterialandWindows. - Light or dark: Every theme has a
lightanddarkvariant. Setting thethemeVariantto'auto'will switch based on system settings. - Custom themes: Use the theme builder to customize the colors and make it match your brand.
- Custom Sass and CSS: If you need further customization, the sky is the limit with Sass and CSS overrides.
You can also see how the other demos look by changing the theme in the floating action bar on the right side (not this example, the themes are hardcoded here).
Demo
Pick a base theme
Then choose between light or dark theme variant
Turn dark theme on
Or build a custom theme based on any base theme
Use the theme builder or Sass to customize themes
theme: 'ios ',
themeVariant: 'light '
JSHTML
mobiscroll.setOptions({
locale: ,
theme: ' ',
themeVariant: ' '
});
<div class="mbsc-form-group">
<label>
<input mbsc-input data-label="Input field" type="text" placeholder="Input with label" />
</label>
<label>
<textarea mbsc-textarea data-label="Textarea" placeholder="Textarea with label"></textarea>
</label>
<label>
<select mbsc-dropdown data-label="Select">
<option value="Opel">Opel</option>
<option value="Renault">Renault</option>
<option value="Citroen">Citroen</option>
<option value="Lotus">Lotus</option>
</select>
</label>
<label>
<input mbsc-switch data-label="Switch" type="checkbox" checked />
</label>
<label>
<input mbsc-checkbox data-label="Checkbox" type="checkbox" checked />
</label>
<div mbsc-radio-group>
<label>
<input type="radio" name="rad" mbsc-radio data-label="Radio 1" checked />
</label>
<label>
<input type="radio" name="rad" mbsc-radio data-label="Radio 2" />
</label>
</div>
<label>
<input mbsc-stepper data-label="Stepper" />
</label>
<div class="mbsc-button-group-block">
<button mbsc-button>Button</button>
</div>
<div mbsc-segmented-group>
<label>
Segmented 1
<input mbsc-segmented name="seg" type="radio">
</label>
<label>
Segmented 2
<input mbsc-segmented name="seg" type="radio">
</label>
</div>
</div>