Getting StartedStyleguide
Content
Dark Mode Variables1. By user's browser preference2. With a class in the bodyVariablesIconsImagesTableTypography
Layout
Forms
Components
Utilities
Dark Mode
We bring already configured a theme of dark mode. The exchange of variables is done in two situations:
- By user's browser preference
- With a class in the body
1. By user's browser preference
The user doesn't need to do anything, the change will be done automatically according to the prefers-color-scheme
css rule
2. With a class in the body
If there is a need to lock this automatic switch or make a theme selector for the user, just add a class in the html for their respective themes:
To dark mode
<html class="dark"></html
To light mode
<html class="light"></html
Variables
List of variables that change with the change of theme if there is a need to use it in a custom component, these are the variables changed in the change of the theme that reflect in all the components of the framework
--background--background_secondary--text_color--title_color--background_third--background_reset--shadow_color--box_shadow--border_color