Make the source hex color values of a theme available as css variables. #3186
stefanobartoletti
started this conversation in
Ideas / feature requests
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok thanks. Anyway, that was only an example, the main concern is to be able to access the HEX base value from Javascript |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be useful to have the source hex color definitions (i.e. these https://daisyui.com/theme-generator/ ) be available as CSS variables in addition to the generated OKLCH values.
There can be situations where these hex values should be accessed from javascript (one simple example would be to add the Chrome Mobile theme https://developer.chrome.com/blog/support-for-theme-color-in-chrome-39-for-android), but unlike CSS, JS does not have a simple and native way to handle OKLCH values.
Beta Was this translation helpful? Give feedback.
All reactions