[v4] Aliasing entire color sets #15938
Replies: 3 comments 2 replies
-
Wow, your suggested way would be very convenient way to do alias anything inside the style. |
Beta Was this translation helpful? Give feedback.
-
See solution here: #15101 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hey! The recommended solution is just copy the colors and rename them. We considered some sort of fancy abstraction for this but just doesn't feel worth it to me. |
Beta Was this translation helpful? Give feedback.
-
In v4, is it possible to alias/redefine an entire color set under a new name?
For example, if I wanted
color-green-*
to map tocolor-emerald-*
for each value, how could this be done?I've tried a few approaches but none quite seem to work.
It does work if I do the colors one-by-one, i.e.
--color-green-50: var(--color-emerald-50)
, but this takes quite a bit of time to set up and feels like the wrong way to do it.A similar question was asked back in November where it was stated it wasn't yet possible, but some time has passed and at the very bottom of the color docs, it now says this:
That verbiage from the docs implies there is some way to do it, but doesn't describe it in any further detail than that. Is it now possible, or not yet?
Beta Was this translation helpful? Give feedback.
All reactions