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:

  1. Components own their styles — One CSS file per component, never style components from page stylesheets
  2. Design tokens over magic numbers — All values come from _global.css custom properties
  3. Layers control the cascade — Use @layer instead of specificity hacks or !important
  4. Dark mode is freecolor-scheme + light-dark() gives you dark mode with zero extra work
  5. Utilities are seasoning, not the meal — Use sparingly for one-off adjustments, not as primary styling
Installs
11
GitHub Stars
5
First Seen
May 1, 2026
css-architecture — thinkoodle/rails-skills