How to style a component with multiple variants, themes and states. #30
Unanswered
thedanchez
asked this question in
Q&A
Replies: 2 comments 1 reply
-
@Mokshit06 do you know if the above is possible with the current set of |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, so in this API how do you expect to set the color mode or density? This exact API isn't possible with macaron but maybe something similar could be possiblw |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm looking for a library (like
macaron
) that compiles down to native CSS but also allows for token exporting for my custom UI component library. The thing I'm looking to accomplish is based on the following. My UI component library's theme is based on two things:Now with those two things defined, let's imagine trying to make a custom
Button
component:Is something like the above possible with
macaron
? I love the simplicity of being able to express the dynamic, theme-related values in that object structure format. Like so.On top of all of that, I would love the ability to be able to export the tokens for said component so that consuming application developers can do
tokens.button.primary.color
ortokens.button.primary.padding
and get the appropriate underlying value based on the activecolorMode
ordensity
value.Beta Was this translation helpful? Give feedback.
All reactions