What is the reason for the "add custom component classes before your utilities" recommendation? #1795
-
In documentation I saw the following:
But I didn't found more details about the risk of printing custom Since I'm looking to use tailwind on our future projects, I'm cleaning our files structure. I also plan to do components with a ruby gem ( I've tested multiple structures. The one that I appreciate more, is the one that load component css with a javascript import. So the css, is printed at the end of final file. I'm locking for this solution since I do not need to add a css import line for each component I create. To give more context, here is my dev environment and files structure: Environment:
Files structure:
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
... well it's simply about css order. Having components printed at the end, does mean that utilities will not be able to be used in html. Component css will have the precedence. |
Beta Was this translation helpful? Give feedback.
... well it's simply about css order.
Having components printed at the end, does mean that utilities will not be able to be used in html. Component css will have the precedence.