Replies: 1 comment
-
You can use |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I'm trying to come up with a way to set up semantic design system with tailwind v4.
I have separate
size
,padding
andgap
semantic token domains.As far as I understood the only way to declare more than one domain, for example for
text-primary
andfill-primary
I'd need two lines of css property declarations:--text-color-primary
and--fill-color-primary
with the same value.Is there a way to abstract generating multiple domains per value so I could
--utility-domains-that-make-sense-for-gap-2xs: var(--space-component-gap-2xSmall);
instead of
or I'd need to resort for css code-generation for that?
Beta Was this translation helpful? Give feedback.
All reactions