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 ruleP2project specificStack: css
scssnamingconvention
Name the root element class of a SCSS module `container`
Each SCSS module should expose a consistently named root class (e.g. .container) for the component's top-level element.
PR: vinify-frontend · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codescss
| 1 | .pageInputWrapper { display: flex; } // ad-hoc root name |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .container { display: flex; } // consistent root class name |
Explanation (EN)
Objašnjenje (HR)