Skip to content

Why do we add the hsl() in the tailwind config and not in the global.css file? #306

Answered by mrzachnugent
rachelslurs asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @rachelslurs, it allows the opacity modifier to work (ex: bg-foreground/50)

Reference: https://tailwindcss.com/docs/customizing-colors#using-css-variables

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rachelslurs
Comment options

Answer selected by rachelslurs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants