Referencing other variables not working #18625
-
I am making custom theme, with some variables. @theme { :root { [data-theme="dark"] { @theme inline { Test and result
Doesnt Work
Doesnt Work
if i use text-gradient in class => Doesnt work .text-gradient { if i uncomment the variable part and comment @apply then work It doesnt work with linear-gradient If i write without it then work @theme inline { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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