Component Theming Feedback #1707
Replies: 8 comments 3 replies
-
I think for me it was a bit confusing to understand at first, but once I got the jig of it I was able to really understand how powerful is and how it plays well when I just want to extend a theme Example, this is my button component overriding on the theme But, I'm still not sure if this is the right approach as this is not mentioned anywhere in the documentation. |
Beta Was this translation helpful? Give feedback.
-
For me, it was confusing a bit while starting, but once I understood it's customization power I love it. But I have no idea on any better approach for this, I can see a similar kind of approach in BumBag UI Kit |
Beta Was this translation helpful? Give feedback.
-
I had to dive in the code to understand how it works but once I did I really enjoy it. I like the |
Beta Was this translation helpful? Give feedback.
-
Before diving into the source code, the documentation of Theme is very difficult to understand, especially for a novice like me who has never used css-in-js. The other is, when I use |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback everyone! Sorry that we haven't responded to this, things have been hectic and short on time. @ChiaJune have you had a chance to read through the new theming docs? @cereallarceny and @hericlesme rewrote them recently, and I'm wondering if the way they wrote them makes more sense to you than the old docs. They start here: https://next.chakra-ui.com/docs/theming/customize-theme |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I would like to say that the component theming feature is a really great one. Previously to achieve that, one would have to create a new component that extends the one the they want to modify, then write lots of bruhaha alongside some condition statements. But now it can be done by just adding the component name under component object in the custom theme and working with either or both of these object keys I'd like to added that the |
Beta Was this translation helpful? Give feedback.
-
Yea, this is proving to be a really flexible and scalable solution. Really digging it so far. Pls don't change it, lol |
Beta Was this translation helpful? Give feedback.
-
Chakra v1 has added the ability to customize the theme via the component theming API, and to define custom components and composite components via
useStyleConfig
anduseMultiStyleConfig
. While we think these are powerful features, we also realize that there's a lot to them and they can be difficult to use or understand.To help guide us to the best solutions for the community, we'd like for this issue to serve as a source of discussion. If you've felt pain around certain pieces of the API, or have relevant feedback or ideas you'd like to share, we'd love to hear it!
Beta Was this translation helpful? Give feedback.
All reactions