frontend-css
遵循项目约定使用一致的CSS方法论(如Tailwind CSS、BEM、CSS模块或工具类)来编写和维护CSS,同时创建独特且美观优秀的设计。在编写CSS样式、应用Tailwind工具类、创建自定义CSS、处理样式文件(*.css, *.scss, *.module.css, globals.css, tailwind.config.*)、维护设计系统和设计令牌、定义颜色和间距的CSS变量、使用独特字体选择实现排版样式、创建氛围背景和深度、添加动画和微交互、避免框架样式覆盖、避免通用的"AI垃圾"美学(紫色渐变、随处可见的Inter/Roboto、千篇一律的设计)、使用清理和树摇优化生产环境CSS,或确保整个应用程序中样式模式一致时,使用此技能。在为组件添加样式、重构CSS代码、建立设计系统、选择字体和颜色、创建动画等场景下应用此技能。
name: Frontend CSS description: Write and maintain CSS following project conventions using consistent methodologies like Tailwind CSS, BEM, CSS modules, or utility classes, while creating distinctive, aesthetically excellent designs. Use this skill when writing CSS styles, applying Tailwind utility classes, creating custom CSS, working with styling files (*.css, *.scss, .module.css, globals.css, tailwind.config.), maintaining design systems and design tokens, defining CSS variables for colors and spacing, implementing typography styles with unique font choices, creating atmospheric backgrounds and depth, adding animations and micro-interactions, avoiding framework style overrides, avoiding generic "AI slop" aesthetics (purple gradients, Inter/Roboto everywhere, cookie-cutter designs), optimizing CSS for production with purging and tree-shaking, or ensuring consistent styling patterns across the application. Apply this skill when styling components, refactoring CSS code, setting up design systems, choosing fonts and colors, creating animations, or reviewing styling approaches for consistency, maintainability, and aesthetic excellence.
Frontend CSS
When to use this skill
- When writing or modifying CSS files (e.g.,
*.css,*.scss,*.module.css,globals.css,tailwind.config.*) - When applying Tailwind CSS utility classes to components
- When using CSS methodologies (BEM, utility classes, CSS modules, styled-components, etc.)
- When creating custom CSS or extending framework styles
- When maintaining design systems and design tokens (colors, spacing, typography)
- When defining CSS variables or theme configurations
- When choosing fonts and typography (avoiding generic defaults like Inter, Roboto, Arial)
- When selecting color schemes and creating cohesive aesthetics
- When implementing animations, transitions, and micro-interactions
- When creating atmospheric backgrounds (gradients, patterns, depth)
- When avoiding generic "AI slop" aesthetics (purple gradients, cookie-cutter designs)
- When avoiding or refactoring excessive style overrides
- When optimizing CSS for production (purging unused styles, tree-shaking)
- When ensuring consistent styling patterns across the application
- When implementing responsive styles and breakpoints
- When working with CSS-in-JS solutions
- When reviewing styling approaches for maintainability, consistency, and aesthetic excellence
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend CSS.
Instructions
For details, refer to the information provided in these files:
Technical Best Practices
Aesthetic Excellence & Design Philosophy
frontend aesthetics - CRITICAL: Read this file to avoid generic "AI slop" designs. Follow typography, color, motion, and background guidelines to create distinctive, memorable designs.