css-architecture
Installation
SKILL.md
Rails CSS Architecture Expert
Write maintainable, scalable CSS for Rails applications using modern CSS features — custom properties, @layer, light-dark(), and semantic design tokens. No framework dependency.
Philosophy
Core Principles:
- Components own their styles — One CSS file per component, never style components from page stylesheets
- Design tokens over magic numbers — All values come from
_global.csscustom properties - Layers control the cascade — Use
@layerinstead of specificity hacks or!important - Dark mode is free —
color-scheme+light-dark()gives you dark mode with zero extra work - Utilities are seasoning, not the meal — Use sparingly for one-off adjustments, not as primary styling