Replies: 3 comments 3 replies
-
I think "Open Props" and 'utility first" are two different world and we should not combine them. Utility first like Tailwind provide a "class per value" so for each value of a property you have a class you can apply. |
Beta Was this translation helpful? Give feedback.
-
I think atomic classes and open props have a healthy future together. that being said, what i think this discussion is introducing is exactly what something like windicss is and has already setup? i see a future not where there's a class for each property, rather atomic classes generated on demand, like vanilla extract with sprinkles. there needs to be an on demand atomic class generator that keeps custom properties as 1st class citizens, i have a feeling it can be done with todays tools but isnt popular yet. |
Beta Was this translation helpful? Give feedback.
-
Having utility classes is definitely a personal preference, some people love them and some hate them. With Open Props, I feel like utility classes would just shorten the naming and allow it to be put in the markup. That doesn't seem to necessarily be the priority of open props imo, but it would give it another place to be accessible to users without having to create your own. I think having some utility classes that have multiple props applied would be beneficial though. Also having grid like tailwind does would be great (i.e. |
Beta Was this translation helpful? Give feedback.
-
I was wondering if the open props library and the Utility-First class could be interfaced with each other. can i use props to describe the Utility-First class. For example, use props to describe the Utility-First class in tailwindcss (https://tailwindcss.com/docs/utility-first).
Use props to describe the basic style.
But I haven't quite figured out how to do that, or does that make sense? I'd like to hear any better suggestions and opinions on this?
Beta Was this translation helpful? Give feedback.
All reactions