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
csscleanupdefaultsreadability
Omit CSS properties that already match their defaults
Drop declarations that just restate the default (e.g. flex-direction: row, transparent backgrounds, full-width on block elements) to reduce noise.
PR: hegnar-zephr-components · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codecss
| 1 | .row { display: flex; flex-direction: row; } |
| 2 | .box { background: transparent; width: 100%; } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codecss
| 1 | .row { display: flex; } |
| 2 | .box { /* nothing needed */ } |
Explanation (EN)
Objašnjenje (HR)