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
cssmixinsscsscleanup
Don't use a mixin that injects styles you don't want
Prefer plain declarations over a convenience mixin when the mixin sets extra properties (e.g. align-items/justify-content) the element doesn't need.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codescss
| 1 | .rightCell { |
| 2 | @include flex(auto, auto, column); // also sets align-items & justify-content we don't want |
| 3 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .rightCell { |
| 2 | display: flex; |
| 3 | flex-direction: column; |
| 4 | } |
Explanation (EN)
Objašnjenje (HR)