New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Organized CSS reference covering BEM, SMACSS, CSS-in-JS, CSS variables, and utility-first patterns for maintainable styling.

skills.sh installs
971
GitHub stars
387
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers five approaches: BEM naming, SMACSS categorization, Styled Components, CSS custom properties, and utility-first Tailwind-style classes
  • Includes a Quick Start .button example showing block, element (.button__icon), and modifier (.button--primary) structure
  • Provides a separate reference guide for each pattern in a references/ directory
  • Designed for large stylesheets, design system work, and teams that need shared naming conventions

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill css-architecture -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CSS Architecture

Table of Contents

Overview

Build maintainable CSS systems using methodologies like BEM (Block Element Modifier), SMACSS, and CSS-in-JS patterns with proper organization and conventions.

When to Use

  • Large-scale stylesheets
  • Component-based styling
  • Design system development
  • Multiple team collaboration
  • CSS scalability and reusability

Quick Start

Minimal working example:

/* Block - standalone component */
.button {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Element - component part */
.button__icon {
  margin-right: 8px;
  vertical-align: middle;
}

/* Modifier - variant */
.button--primary {
  background-color: #007bff;
  color: white;
}

.button--primary:hover {
  background-color: #0056b3;
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Frontend & UI Code, Design & UI/UX
First seen
May 16, 2026

More from aj-geddes/useful-ai-prompts

All 258

Similar to Css Architecture

More Frontend & UI Code