Replies: 2 comments 1 reply
-
@kiastorm thanks for sharing, that's a pretty sweet idea! I was thinking about something similar too, but decided to focus on keeping Wondering if this would be good to explore as a separate package? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Yeah I think that makes sense. I'm also exploring creating a postcss plugin that seems to have more obvious overlap with cva. Something that would allow syntax like this:
I hadn't used postcss until this past week, so I'm not entirely sure if what I'm suggesting is possible exactly how I'm imagining it, but I see a lot of potential with this. I'll keep you updated 👀 |
Beta Was this translation helpful? Give feedback.
-
Great work with this! So simple yet so slick.
I'm using this right now with a BEM-like approach. I'm using another function to generate unique classes for each component, and then writing matching CSS/Sass.
I've built another function to generate prefixed classes consistently.
It would be great if I didnt have to create two separate functions and if cva automatically generated the classes for me, or if there was an alternative function that allowed me to do so.
Something like this would be amazing for those of use building custom prefixed CSS libraries, but I'm not sure on it just yet. I haven't fully explored this but g2g
Thank you for your work :)
Related:
Beta Was this translation helpful? Give feedback.
All reactions