We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For most websites, especially Tailwind, it's ideal to turn the color variables into HSL format.
Because of the flexibility to use classes like: bg-primary-500/20 (primary color but at 50% opacity). This is only possible if the colors are in HSL.
bg-primary-500/20
Basically:
/* app.css */ :root { --primary: 206 73% 64% }
// tailwind.config.js { primary: 'hsl(var(--primary) / <alpha-value>)'; }
I mostly learned about this from configuring Shadcn.
I currently use this for conversions: https://www.shadcn-svelte.com/docs/theming. But it'd be cool if there was just a button on your site to do it.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For most websites, especially Tailwind, it's ideal to turn the color variables into HSL format.
Because of the flexibility to use classes like:
bg-primary-500/20
(primary color but at 50% opacity). This is only possible if the colors are in HSL.Basically:
I mostly learned about this from configuring Shadcn.
I currently use this for conversions: https://www.shadcn-svelte.com/docs/theming. But it'd be cool if there was just a button on your site to do it.
The text was updated successfully, but these errors were encountered: