A single class that will contain other classes #12629
Closed
AregGhazaryan
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
You can use |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was thinking about the problem that tailwind constantly faces, that is the cluttering of classes, and them being too long for one element. The idea i purpose is maybe in
tailwind.config.js
we can add a custom class, which will contain tailwindcss classes in an array. Then when we will use it on our html/jsx it would use all these classes as one without affecting developer experience. What i imagine would look like this.and then on the front end
Which will reuse all the classes mentioned in the config.
Beta Was this translation helpful? Give feedback.
All reactions