Replies: 1 comment
-
Fixed the color values on blog post. Thanks for reporting. |
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
-
So I've been really enjoying playing around with DaisyUI in an Astro project. When googling how to add my own custom colour additions to the theme there was THIS official blogpost. Following along however I could NOT get it to work.
However if you look closely you will see in the blog they set the variable as an HSL value (without the commas):
yet when they go to use it in Tailwind they treat the variable as OKLCH:
So to fix it put either
"primary-muted": "hsl(var(--primary-muted) / <alpha-value>)",
or alternatively use https://oklch.com/ and convert your values into oklch values and use them instead.Thought I would post it here as it had me stumped for quite some time why it wasn't working...
Beta Was this translation helpful? Give feedback.
All reactions