
Css Architecture
Solid foundation for keeping CSS organized at scale. Covers BEM, SMACSS, CSS-in-JS, utility-first patterns, and CSS custom properties with practical examples for each. The naming convention guides are especially useful if you're onboarding developers or trying to standardize across teams. Most valuable when you're dealing with component libraries or design systems where consistency actually matters. The BEM examples show the classic block/element/modifier structure clearly, and the best practices section is refreshingly brief instead of lecturing you. If your stylesheets are turning into spaghetti or your team keeps arguing about class names, this gives you concrete patterns to point to.
- skills.sh installs
- 969
- GitHub stars
- 379
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aj-geddes/useful-ai-prompts --skill css-architecture --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors
Details
- Repository
- github.com/aj-geddes/useful-ai-prompts
- Categories
- Frontend Development, Code Review & Quality, AI & Agent Building
- First seen
- May 16, 2026
More from aj-geddes/useful-ai-prompts
All 258- Api Contract Testing926
- Root Cause Analysis916
- Event Sourcing892
- Mobile First Design869
- Api Security Hardening868
- Mobile App Testing831
- Technical Specification811
- User Story Writing793
- Access Control Rbac763
- User Guide Creation762
- Kubernetes Deployment759
- Logging Best Practices742
- Visual Regression Testing731
- Flutter Development725
- E2e Testing Automation695
- Business Case Development683
- React Component Architecture683
- Docker Containerization681
- Agile Sprint Planning677
- Log Analysis674
- Security Compliance Audit673
- Project Estimation670
- Gitlab Cicd Pipeline669
- Websocket Implementation668