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: universal
namingiconsdesign-systemconventions
Name icons and symbols after the design source of truth
Name icon components and assets exactly as they appear in the design system (e.g. Figma) so they map predictably.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codetsx
| 1 | import DownArrowSmall from 'components/SvgIcons/DownArrowSmall'; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetsx
| 1 | // matches the Figma layer name |
| 2 | import TriangleDownIcon from 'components/SvgIcons/TriangleDownIcon'; |
Explanation (EN)
Objašnjenje (HR)