Replies: 1 comment 2 replies
-
You wouldn't want to include spaces in your proposed class name API since CSS would interpret those as separate classes. Further, I fail to see how this solution would even work with CSS and plain HTML. Can you expand on this? The idea reminds me of Styled System’s responsive value syntax, but that's for JS(X) where you can use syntax like that. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I was thinking that instead of doing
<img class="sm:w-32 md:w-35 lg:w-38 xl:wd-41" src="...">
what if we do
<img class="all:w-[32, 35, 38, 41] src="...">
I see this as less clutter. So, brackets would represent [sm, md, lg, xl]. The way to activate it would be to add the all: .
If this isn't a bad idea maybe we can chain on this. Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions