Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2stack specificStack: Tailwind
tailwindcssbuildconventions
Do not create a shared file re-exporting Tailwind base directives
Avoid a single use-tailwind file that re-applies @tailwind base/components/utilities for reuse; repeat the directives per entry as Tailwind recommends.
PR: hegnar-zephr-components · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codecss
| 1 | /* use-tailwind.css imported by many entries */ |
| 2 | @tailwind base; |
| 3 | @tailwind components; |
| 4 | @tailwind utilities; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codecss
| 1 | /* each entry's own css file declares the directives it needs */ |
| 2 | @tailwind base; |
| 3 | @tailwind components; |
| 4 | @tailwind utilities; |
Explanation (EN)
Objašnjenje (HR)