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

Set Color Mode #54

Open
smilingchemist opened this issue Jul 28, 2020 · 2 comments
Open

Set Color Mode #54

smilingchemist opened this issue Jul 28, 2020 · 2 comments

Comments

@smilingchemist
Copy link

smilingchemist commented Jul 28, 2020

Hi, I would like to set the color mode dynamically from "chayns-color-mode--0" to "chayns-color-mode--1" for implementing a dark mode which can be switched on and off. Is there any possibility to do this?
Thanks in advance!

@smilingchemist
Copy link
Author

Gibt es hierzu irgendein Update?

@HenningKuehl
Copy link

I'm not completely sure, but it looks like there is a component in chayns-components (a react library) which realize this feature.
https://github.com/TobitSoftware/chayns-components/blob/master/src/react-chayns-color_scheme/component/ColorScheme.jsx

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

2 participants