Skip to content

Access $variant in variables.scss #225

Discussion options

You must be logged in to vote

Hey! If you're referring to the current global color mode (light or dark), it can be determined when styling using either:

  • the .inkline.-light and .inkline.-dark classes that apply to the document body
  • the @media (prefers-color-scheme: dark) media query

However, 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?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@milaan-muc
Comment options

@alexgrozav
Comment options

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