I am looking for a way to create multiple variants for buttons. For example, let's say I want to have the following three variants:
- Size (small, medium, large, etc).
- Look (primary, secondary, disabled, etc).
- Kind (default, outline, text, etc).
So that I could style a button like this:
<button
sx={{
size="buttons.size.large"
kind="buttons.kind.outline"
look="buttons.look.secondary"
}}
/>
This IS possible with style system -- here is an example:
But I can't figure out how to do with with Theme-UI.
Is this possible with Theme-UI? If so, can how can I do it?
Thanks.
I am looking for a way to create multiple variants for buttons. For example, let's say I want to have the following three variants:
So that I could style a button like this:
This IS possible with style system -- here is an example:
But I can't figure out how to do with with Theme-UI.
Is this possible with Theme-UI? If so, can how can I do it?
Thanks.