hakyangler
Active member
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?
What can I do to avoid issues when switching between the dark and light variations?
Is this kind of implementation correct?
Code:
:root { light thema colors
--omColor: #222222;
--omBgColor: #fff;
--omBorderColor: #ccc;
--omFontColor: #dedede;
........
.......
......
}
[data-theme="dark"] {
--omColor: #fff;
--omBgColor: #000;
--omBorderColor: #bbb;
--omFontColor: #dedede;
........
.......
......
}