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: css
scssremaccessibilitymagic-values
Don't hardcode pixel values in styles; use the rem conversion helper or system sizes
Convert hardcoded pixels to rems via the project's pxToRem/rem-calc helper or use system size tokens.
PR: vinify-frontend · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codescss
| 1 | .title { margin-top: 12px; padding: 8px; } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .title { margin-top: rem-calc(12); padding: rem-calc(8); } |
Explanation (EN)
Objašnjenje (HR)