Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use a color statically, not affected by theme? #11

Open
pacocoursey opened this issue Jul 18, 2021 · 2 comments
Open

How to use a color statically, not affected by theme? #11

pacocoursey opened this issue Jul 18, 2021 · 2 comments

Comments

@pacocoursey
Copy link

I have a UI in which the toggle thumb should remain white on both light and dark mode:

basics paco sh_
basics paco sh_ (1)

This doesn't seem possible with Radix Colors without manually defining a new variable --white: <hardcoded radix color value>. Is this the recommended way? Is adding an escape hatch for using a static non-theme dependent color a feature that you would consider supporting?

@colmtuite
Copy link
Contributor

What's wrong with simply defining backgroundColor: white? That's the approach we take.

@brandongit2
Copy link

I second this issue. I like to sometimes mix light and dark themes, which is hard to do with the way Radix Colors segregates light and dark themes. It's also hard to work with CSS' prefers-color-scheme when using the CSS files provided by Radix Colors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants