-
Notifications
You must be signed in to change notification settings - Fork 187
Support Tailwind's theme() function in asset pipeline CSS files #378
New issue
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
Comments
@pas256 You need to put this CSS snippet in your |
Hmmm, I must be doing something wrong because that doesn't work for me. In my
The top line never seems to evaluate to a color, but hard coding |
@pas256 What works for me is:
I'm not very familiar with CSS variables, but I do know there are constraints on the values they can be set to. You may want to ask this question in a tailwind-specific forum. |
I figured it out. I was doing something wrong. 😱 In
(at some point, Thanks for pointing me in the right direction! |
TailwindCSS has this neat function called
theme()
which lets you do things likebut it doesn't seem to work with this gem. I've tried the above in
app/assets/stylesheets/application.css
but no dice. I suspect it is because of Sprokets or the asset pipeline in some way, but am far from an expert at it. I'm using a Rails 7.1.The text was updated successfully, but these errors were encountered: