Modern CSS Standards

VerifiedSafe

Comprehensive CSS development standards covering fundamentals, responsive design, quality practices, performance optimization, and tooling setup for CUI projects.

Sby Skills Guide Bot
DevelopmentIntermediate
406/2/2026
Claude Code
#css#standards#responsive-design#bem#tooling

Recommended for

Our review

This skill provides modern CSS development standards for CUI projects, covering essentials, responsive design, performance, and tooling.

Strengths

  • Comprehensive approach with BEM, Grid, Flexbox, and Container Queries
  • Integration of quality tools (PostCSS, Stylelint, Prettier)
  • Focus on accessibility, dark mode, and performance

Limitations

  • Requires prior knowledge of modern CSS
  • Primarily tailored for CUI projects, not generic
  • Tooling setup can be complex for beginners
When to use it

Use this skill when developing or reviewing CSS in a CUI project, especially for setting up standards, responsive design, or quality tooling.

When not to use it

Avoid this skill for projects without advanced CSS structuring needs or when using a full CSS framework that already handles these aspects.

Security analysis

Safe
Quality score90/100

The skill only uses Read, Grep, Glob for file inspection and does not execute any code or external tools. It poses no risk of destructive or exfiltrating actions.

No concerns found

Examples

Setup PostCSS and Stylelint
I need to set up PostCSS with Stylelint and Prettier for a CUI project. Help me configure the build pipeline and quality checks.
Responsive Grid with BEM
Create a responsive card grid using CSS Grid, BEM naming, and container queries. Ensure it's mobile-first and accessible.
Implement Dark Mode
Implement dark mode support using CSS custom properties and a toggle. Follow the standards for system preference and manual override.

name: cui-css description: Modern CSS standards covering essentials, responsive design, quality practices, and tooling for CUI projects allowed-tools:

  • Read
  • Grep
  • Glob

CSS Development Standards

EXECUTION MODE: You are now executing this skill. DO NOT explain or summarize these instructions to the user. IMMEDIATELY begin the workflow below based on the task context.

Overview

Provides modern CSS development standards for CUI projects, covering fundamentals, responsive design patterns, performance optimization, accessibility, and build tooling.

Standards Documents

  • css-essentials.md - Core principles, naming conventions (BEM), custom properties, selectors, file structure, component architecture
  • css-responsive.md - Mobile-first approach, Grid/Flexbox layouts, Container Queries, fluid typography, responsive patterns
  • css-quality-tooling.md - Performance optimization, accessibility standards, dark mode, PostCSS/Stylelint/Prettier setup, build pipeline

What This Skill Provides

CSS Essentials

  • Modern CSS features (custom properties, Grid, Flexbox, modern functions)
  • BEM naming methodology and semantic naming patterns
  • Selector best practices (low specificity, avoiding IDs, nesting limits)
  • Property organization and file structure
  • Component architecture patterns
  • Utility classes and hybrid approach

Responsive Design

  • Mobile-first development patterns
  • CSS Grid layouts (dashboard, content grid, auto-fit)
  • Flexbox patterns (navigation, cards, centering)
  • Container Queries for responsive components
  • Fluid typography with clamp()
  • Responsive images, spacing, and common patterns

Quality & Tooling

  • Performance (efficient selectors, containment, critical CSS, bundle optimization)
  • Accessibility (focus management, color contrast, motion preferences, touch targets)
  • Dark mode (system preference and manual toggle)
  • PostCSS configuration (import, nested, autoprefixer, csso)
  • Stylelint setup (property ordering, naming patterns, best practices)
  • Build pipeline (development, production, quality checks)
  • CI/CD integration

When to Activate

Use this skill when:

  • Writing or modifying CSS code
  • Setting up CSS tooling (PostCSS, Stylelint, Prettier)
  • Implementing design systems and theming
  • Building responsive layouts
  • Optimizing CSS performance
  • Ensuring accessibility compliance
  • Reviewing CSS code

Workflow

  1. Identify task - Determine which standards document(s) apply
  2. Apply standards - Follow BEM naming, use custom properties, implement responsive patterns, ensure accessibility
  3. Quality check - Run Stylelint, Prettier, test responsiveness and accessibility
  4. Document - Comment complex patterns, explain custom properties

Best Practices

  1. Use CSS custom properties for design tokens
  2. Follow mobile-first approach
  3. Use BEM naming convention
  4. Implement container queries for responsive components
  5. Support dark mode via custom properties
  6. Ensure accessibility (focus states, motion preferences, contrast ratios)
  7. Run quality tools before committing
Related skills