frontend-css
遵循项目建立的方法论编写可维护的CSS,无论是使用Tailwind实用类、BEM命名、CSS模块还是styled-components。使用CSS对UI组件或页面进行样式设计、应用设计系统令牌进行颜色和间距设置或使用CSS框架时使用此技能。编写实用类、自定义样式或响应式设计规则时。处理.css、.scss、.module.css文件或JSX/模板中的内联样式时。建立或维护用于一致样式的设计令牌时。使用清除或树摇未使用样式来优化生产构建的CSS时。
📖 中文导读:遵循项目建立的方法论编写可维护的CSS,无论是使用Tailwind实用类、BEM命名、CSS模块还是styled-components。使用CSS对UI组件或页面进行样式设计、应用设计系统令牌进行颜色和间距设置或使用CSS框架时使用此技能。编写实用类、自定义样式或响应式设计规则时。处理.css、.scss、.module.css文件或JSX/模板中的内联样式时。建立或维护用于一致样式的设计令牌时。使用清除或树摇未使用样式来优化生产构建的CSS时。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: Frontend CSS description: Write maintainable CSS following the project's established methodology, whether using Tailwind utility classes, BEM naming, CSS modules, or styled-components. Use this skill when styling UI components or pages with CSS, applying design system tokens for colors and spacing, or working with CSS frameworks. When writing utility classes, custom styles, or responsive design rules. When working with .css, .scss, .module.css files, or inline styles in JSX/templates. When establishing or maintaining design tokens for consistent styling. When optimizing CSS for production builds with purging or tree-shaking unused styles.
Frontend CSS
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.
When to use this skill
- When styling UI components or pages with CSS, Tailwind, or other styling approaches
- When applying design system tokens for colors, spacing, typography, or shadows
- When working with CSS files (.css, .scss, .sass, .less, .module.css)
- When writing utility classes or custom CSS styles
- When implementing responsive design rules with media queries or breakpoints
- When working with CSS-in-JS solutions (styled-components, emotion, CSS modules)
- When applying Tailwind utility classes or customizing Tailwind configuration
- When following BEM naming conventions or other CSS methodologies
- When optimizing CSS bundle size with purging or tree-shaking
- When avoiding framework style overrides and working with framework patterns
Instructions
For details, refer to the information provided in this file: frontend CSS