Composable variants #850
Unanswered
darklight9811
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've found myself having the need to readd the same variants (padding, margin, etc) through many different components. And since adding them in stitches level creates the style multiple times in css. There should be a tool to easily reuse variants without causing repetition on the stylesheet. Maybe something like this:
Merging variants between css/components
With this functional programming principle, we could stack composable variants and inject them with the component props
Merging pure variants
Beta Was this translation helpful? Give feedback.
All reactions