How to accomplish similar functionality with pure v4 css config? #58
Answered
by
chuckdries
chuckdries
asked this question in
Q&A
-
|
The README for this project states
How do I actually do this? To make it concrete, I want to be able to have a HTML structure like this <div class="hue-red">
<button class="bg-hue">
...
</button>
</div>What should I put in my tailwind config to make |
Beta Was this translation helpful? Give feedback.
Answered by
chuckdries
Aug 15, 2025
Replies: 1 comment
-
|
I figured it out! In my index.css, I did this @theme inline {
--color-hue: var(--hue-base);
}
@layer base {
.hue-red {
--hue-base: var(--color-red-500);
}
}Cheers! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chuckdries
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it out! In my index.css, I did this
Cheers!