Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Css Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/najuaircrack-css-architecture)
---
name: css-architecture
description: "Place or refactor CSS when stylesheet ownership, cascade order, or selector reach affects more than one consumer."
license: MIT
---
# CSS architecture
- Trace the winning declaration through stylesheet entry points, layer order, specificity, and source order before editing.
- Use the project's styling conventions. Keep resets and inherited defaults at their existing global boundary, component rules with the component, and layout rules with the composing view.
- Share a rule when its consumers need the same behavior and fallback. Keep rules local when their requirements can change independently.
- Fix the declaration with the wrong scope. Keep new selectors within their owner's public styling hooks and check layer precedence before increasing specificity.
- When moving CSS, preserve the order that existing overrides rely on and check entry points that load a different subset of styles.
- Verify computed styles on the target and on an unaffected consumer that shares the selector or layer. Inspect both through their normal entry points.