CSS Architecture

VerifiedSafe

Expertise in CSS architecture covering methodologies (BEM, ITCSS, CUBE CSS), CSS Modules, Tailwind CSS, CSS-in-JS (styled-components, Emotion), and design tokens. Helps when choosing a methodology, configuring Tailwind, implementing a token system, or diagnosing specificity wars and layout performance.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude CodeCursorWindsurfCopilotCodex
#css-architecture#bem#tailwind-css#design-tokens#responsive-layouts

Recommended for

Automated summary

Provides expertise in CSS architecture including methodologies, design tokens, modern CSS features, and responsive design patterns.

Strengths

  • Covers multiple methodologies (BEM, ITCSS, CUBE CSS)
  • Includes modern CSS features (container queries, native nesting)
  • Addresses performance and anti-patterns

Limitations

  • May not cover very new or experimental CSS features
  • Focuses on architecture, not basic CSS syntax
  • Can be overwhelming for beginners
When to use it

When choosing a CSS methodology or setting up a design token system for a new project.

When not to use it

For simple projects with minimal CSS needs where a single stylesheet is sufficient.

Security analysis

Safe
Quality score95/100

The skill provides CSS architecture guidance using only read and analysis tools; Bash is listed but no destructive or data-exfiltrating commands are instructed. The presence of Bash does not introduce meaningful risk in this context.

No concerns found

How this analysis is made

Examples

Set up a design token system
Set up a design token system using CSS custom properties with three tiers (global, semantic, component) for a new project.
Migrate to zero-runtime CSS-in-JS
Convert a styled-components project to Vanilla Extract for zero-runtime CSS-in-JS, explaining the migration steps.
Build a responsive component with container queries
Implement a responsive grid layout using CSS Grid and container queries that adapts to component width, not viewport size.

name: css-architecture description: | 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. allowed-tools: Read, Grep, Glob, Bash

CSS Architecture

When to use

  • Choosing a CSS methodology (BEM, ITCSS, CUBE CSS) for a new project or team
  • Setting up CSS Modules, styled-components, Vanilla Extract, or Panda CSS
  • Configuring Tailwind with custom design tokens
  • Implementing a design token system with CSS custom properties
  • Using modern CSS (container queries, :has(), @layer, native nesting, subgrid)
  • Building responsive layouts with Grid/Flexbox
  • Adding dark mode support or scroll-driven animations
  • Diagnosing specificity wars, paint performance, or layout thrashing

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

  • references/methodologies-modules-css-in-js.md — BEM/ITCSS/CUBE CSS comparison, CSS Modules with composes, styled-components with ThemeProvider, Emotion, Vanilla Extract, Panda CSS, StyleX, Linaria
  • references/tailwind-tokens-modern-css.md — Tailwind config, group/peer modifiers, dark mode, UnoCSS; design token three-tier system, CSS custom properties, responsive tokens; container queries, native nesting, :has(), @layer, subgrid, oklch color, fluid typography, scroll-driven animations, content-visibility
  • references/layout-responsive-dark-mode.md — CSS Grid named areas, auto-fill grid, Flexbox guidance, mobile-first responsive design, responsive images, dark mode system/manual toggle, CSS performance (will-change, paint containment, critical CSS), animation GPU properties, anti-patterns table

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/css-architecture-mm8o526z/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/css-architecture-mm8o526z' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/css-architecture-mm8o526z/download' --output '.skill-downloads/css-architecture-mm8o526z/SKILL.md.part' && mv '.skill-downloads/css-architecture-mm8o526z/SKILL.md.part' '.skill-downloads/css-architecture-mm8o526z/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Grep, Glob, Bash

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/css-architecture-mm8o526z/SKILL.md' && test -s '.skill-downloads/css-architecture-mm8o526z/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/css-architecture' && cp -R '.skill-downloads/css-architecture-mm8o526z' '.claude/skills/css-architecture'

Cursor
test -f '.skill-downloads/css-architecture-mm8o526z/SKILL.md' && test -s '.skill-downloads/css-architecture-mm8o526z/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/css-architecture' && cp -R '.skill-downloads/css-architecture-mm8o526z' '.cursor/skills/css-architecture'

Codex
test -f '.skill-downloads/css-architecture-mm8o526z/SKILL.md' && test -s '.skill-downloads/css-architecture-mm8o526z/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/css-architecture' && cp -R '.skill-downloads/css-architecture-mm8o526z' '.agents/skills/css-architecture'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/css-architecture-mm8o526z'

openskills read 'css-architecture-mm8o526z'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/css-architecture-mm8o526z/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills