Replies: 1 comment 2 replies
-
|
|
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.
-
I have scenario when i need to create custom style to help the team creating html page quicker and less error prune and keep them consistent. Unfortunately, creating headless javascript components doesn't cover all of our scenarios and we go down to this part.
In our case we created a custom class like this
we found the
.btnis always included in the css final result even when we are not using it in the html file. We tried using@utilitydirective but having hard time when trying to override the style with existing utility classes from Tailwind.Is it possible to make
@layer componentsto behave like the@utilitydirective? or is there other options to achieve similar outcome to only include.btnwhen actually used in the html?Beta Was this translation helpful? Give feedback.
All reactions