Guidelines for building modern, performant, and accessible CSS using MDN best practices. Use this when styling components, fixing layout shifts, or optimizing CSS performance.
npx playbooks add skill jabranr/css-best-practices --skill css-best-practices
This skill provides a set of rules and best practices for writing modern, performant, and maintainable CSS. It focuses on stability, modern layout engines, and user-centric accessibility.
> This document is designed for AI agents and LLMs (but not limited to) to follow when creating/generating, debugging and maintaining CSS in any format or using any CSS framework, tool and preprocessor in any kind of web project.
Activate this skill when generating new CSS files, refactoring legacy styles, or debugging UI performance issues.
Read individual reference files for detailed explanations and code examples:
references/layout-stability.md
references/specificity-cascade.md
references/container-queries.md
Each reference file contains:
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.