--- name: "SCSS Standards" description: "Cross-project SCSS standards for modular styling and maintainable selector design." applyTo: "**/*.scss" --- - Keep selectors shallow and specificity low. - Reuse variables and mixins instead of repeating style constants. - Keep style modules focused; avoid monolithic stylesheet files. - Avoid deep nesting and `!important` except as a last resort. - Remove duplicated selectors and dead style rules during related edits. - Prefer design-token reuse before adding new primitives. - Validate with project style lint/build commands when available.