Css architecture

From rnavarych/alpha-engineer · View interactive version

Css architecture is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. CSS architecture expertise including BEM methodology, CSS Modules, Tailwind CSS, CSS-in-JS (styled-components, Emotion), design tokens, responsive design patterns, CSS Grid/Flexbox layouts, and container queries.

How to use this skill

Skill file

CSS Architecture

When to use

Core principles

  1. Native HTML semantics before CSS tricks — right element reduces styling complexity
  2. Flat specificity — BEM single-class selectors, @layer for ordering, never !important
  3. Design tokens as single source of truth — global → semantic → component tiers
  4. Zero-runtime CSS-in-JS for scale — Vanilla Extract or Panda CSS over styled-components in large apps
  5. Container queries for components, media queries for pages — components should not know viewport size

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.