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
scsssassmodulesnamespace
Use @use instead of @import in SCSS
@import is deprecated in Sass and dumps everything into the global namespace; use @use (with a namespace) so partials are scoped and loaded once.
PR: profico-mining-2026-06Created: Jul 26, 2026
Bad example
Old codescss
| 1 | @import "variables"; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | @use "variables" as vars; |
Explanation (EN)
Objašnjenje (HR)