Access $variant in variables.scss #225
Answered
by
alexgrozav
milaan-muc
asked this question in
Need help
-
Is there a way to access the current variant like dark and light in variables.scss? |
Beta Was this translation helpful? Give feedback.
Answered by
alexgrozav
Apr 28, 2021
Replies: 1 comment 2 replies
-
Hey! If you're referring to the current global color mode (light or dark), it can be determined when styling using either:
However, this won't really help you with the Is this what you're looking for? If not, can you please give me an example use case? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
alexgrozav
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! If you're referring to the current global color mode (light or dark), it can be determined when styling using either:
.inkline.-light
and.inkline.-dark
classes that apply to the document body@media (prefers-color-scheme: dark)
media queryHowever, this won't really help you with the
variables.scss
file.Is this what you're looking for? If not, can you please give me an example use case?