Overview
The Bolt React Native SDK supports styling through v3 CSS custom properties using the--bolt-{target}-{property} format. You can apply styles globally to all components or on a per-element basis.
For the full list of available style tokens, see Bolt Styling Docs: Style Components v3.
Global Styles
Usebolt.configureOnPageStyles() to set styles that apply to all Bolt elements rendered in your app:
Per-Element Styles
Pass astyles object when creating a controller to apply styles to a specific element:
Updating Styles After Creation
You can update styles on a controller at any time usingsetStyles():
Style Token Format
All style tokens follow the pattern:| Token | Description |
|---|---|
--bolt-input-fontFamily | Font family for input fields |
--bolt-input-fontSize | Font size for input fields |
--bolt-input-borderRadius | Border radius for input fields |
--bolt-input-borderColor | Default border color for input fields |
--bolt-input_focus-borderColor | Border color when an input field is focused |
--bolt-input-backgroundColor | Background color for input fields |