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 ruleP2universalStack: css
cssi18naccessibilityclean-code
Uppercase text with CSS, not capitalized literals
Use text-transform: uppercase in styles instead of typing all-caps strings in markup, so the source text stays readable and translatable.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codehtml
| 1 | <span>TOP LISTS</span> |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .heading { text-transform: uppercase; } /* markup: <span class="heading">Top lists</span> */ |
Explanation (EN)
Objašnjenje (HR)