How to create light or dark color themes #34
-
how to create light or dark color themes with webpixels/css? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hey @heshimang - I am working on an update for that. Right now I am preparing the documentation. The easiest way is to create new themes, including light/dark mode using the CSS variables Bootstrap provides in their docs. For each component, you will find a set of CSS variables that can be used in your theme file. For example, I made a new theme mixin like this:
Then, in the main sass file, you import the theme like this:
I created a color variation in my case, but you can make the dark mode this way. Of course, you'll need to adapt the components you need and for that, you can use the Bootstrap docs, until I finish the implementation. |
Beta Was this translation helpful? Give feedback.
Hey @heshimang - I am working on an update for that. Right now I am preparing the documentation. The easiest way is to create new themes, including light/dark mode using the CSS variables Bootstrap provides in their docs. For each component, you will find a set of CSS variables that can be used in your theme file.
For example, I made a new theme mixin like this: