Skip to content

Referencing other variables not working #18625

Answered by wongjn
codeflow-lab asked this question in Help
Discussion options

You must be logged in to vote

Seems to be working in this Tailwind Play which would suggest it is something particular to your project. Consider providing a git repo that reproduces the unexpected behavior.

Though I would say linear-gradient() is not a <color> value, but a <gradient> type. So it isn't exactly valid for the --color-* namespace. You'd want to use the --background-image namespace instead: https://play.tailwindcss.com/IPEajJ6r8L?file=css

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@codeflow-lab
Comment options

Answer selected by codeflow-lab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants