Dark and Light theme variation colors

Status
This content is read-only, or is not open for further replies.

hakyangler

Guest
offline
I want to use my own custom colors in the Dark and Light theme variations.
What can I do to avoid issues when switching between the dark and light variations?
Is this kind of implementation correct?


Code:

Code:
:root {                           light thema colors
--omColor: #222222;
--omBgColor: #fff;
--omBorderColor: #ccc;
--omFontColor: #dedede;

........
.......
......
}


[data-theme="dark"] {
--omColor: #fff;
--omBgColor: #000;
--omBorderColor: #bbb;
--omFontColor: #dedede;

........
...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom