standards-css

Enforce design tokens and standardized CSS methodologies across frontend codebases.

1.8k|153|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/maxritter/claude-pilot --skill standards-css
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: standards-css
Source: https://github.com/maxritter/claude-pilot/tree/main/pilot/skills/standards-css
Command: npx skills add https://github.com/maxritter/claude-pilot --skill standards-css

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces consistent CSS practices across a codebase, ensuring design tokens, scalable naming conventions, and framework-aligned patterns to reduce drift and improve maintainability.

Core Features & Use Cases

  • Design Tokens Enforcement: encourages the use of color, spacing, and typography tokens instead of hardcoded values.
  • Methodology Adherence: applies and validates Tailwind, BEM, CSS Modules, and CSS-in-JS approaches without mixing methodologies.
  • Performance & Maintainability: promotes purging, tree-shaking, and organized structure to optimize production CSS.

Quick Start

Apply the project's CSS methodology to a new component stylesheet (e.g., Button.module.css) using design tokens and a consistent naming convention.

Frequently Asked Questions about standards-css

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize CSS across a codebase using design tokens?

Apply a single CSS methodology like Tailwind, BEM, or CSS Modules across the entire codebase to prevent methodology mixing. Enforcing a consistent naming convention and design tokens reduces CSS inconsistency and drift. Use scope-specific patterns to avoid mixing methodologies.

How do I apply design tokens to a new CSS Module stylesheet?

Use design tokens for color, spacing, and typography values instead of hardcoded values across CSS, SCSS, CSS Modules, Tailwind, and CSS-in-JS contexts. This prevents visual drift and maintains styling consistency throughout your codebase.

Can I use this to enforce BEM naming conventions in CSS Modules?

To standardize CSS, define color, spacing, and typography design tokens, choose a single methodology like BEM or Tailwind, and apply these consistently across all stylesheets. This enforces naming conventions and prevents mixing methodologies across your codebase.

What's the best way to maintain consistent CSS methodologies in a Tailwind project?

The best way to maintain consistent CSS in Tailwind is to strictly adhere to framework-aligned patterns without mixing methodologies. Enforce design tokens, ensure proper purging and tree-shaking, and validate that team members follow the established naming conventions.

Why does mixing BEM and CSS-in-JS cause CSS inconsistency?

Mixing BEM and CSS-in-JS causes CSS inconsistency because each methodology has distinct scoping and naming patterns. Enforcing a single methodology without mixing ensures predictable styling, reduces codebase drift, and maintains scalable architecture.

When should I not use design tokens for frontend styling?

Avoid skipping design tokens when your codebase requires strict styling consistency and maintainability. You should always enforce tokens for color, spacing, and typography instead of hardcoded values to prevent drift across CSS, SCSS, or Tailwind contexts.