Replies: 1 comment
-
Yeah I really want to figure this out as well but have been struggling to get the syntax right, do you have any ideas? 🤔 Best I've come up with is this: @theme {
--color-primary-*: theme(--color-indigo-*);
} But that means you need to also have indigo in your palette with that name, no way to sort of import it just to alias it but not have it in your theme. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm trying the v4, and I was wondering if there was a way to quickly refer to colors like in v3. For example, I used to define aliases for colours in my tailwind config, so I could quickly change them if needed
Then I could use
text-primary-500
How can I do the same with v4 ? The only thing I see now is to write each color individually
Is there a better way? That's 10x more lines, and a bit annoying to change
Beta Was this translation helpful? Give feedback.
All reactions