Applying a theme
Permalink to "Applying a theme"Global theme utility classes MUST be be applied on the parent <html> element (on the same element as the bolt-typography class).
Options include:
- Light: (Default)
- Applies default light mode appearance and theme token values
- The SASS versions of theme tokens will always reflect their default, light mode values
- Dark: use
bolt-theme--darkclass- Updates Bolt styles & CSS theme token values to their dark mode equivalents
- System: use
bolt-theme--systemclass- Follows user's system preferences to apply either light or dark mode
<html class="bolt-typography bolt-theme--dark">
...
</html>
To see different theme configurations in action: