Skip to content

Color variables/themes not working as intended #17749

Closed Answered by wongjn
raintje asked this question in Help
Discussion options

You must be logged in to vote

Unquote your CSS variables in the data-theme rules. For example:

 /* Light mode, a.k.a. Cappuccin Latte */
 [data-theme='latte'] {
   /* Monochrome colors */

   /* Background colors */
-  --theme-base: '#eff1f5';
-  --theme-mantle: '#e6e9ef';
-  --theme-crust: '#dce0e8';
+  --theme-base: #eff1f5;
+  --theme-mantle: #e6e9ef;
+  --theme-crust: #dce0e8;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@raintje
Comment options

Answer selected by raintje
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants