返回 Skill 列表
extension
分类: 开发与工程无需 API Key

frontend-css

遵循项目的开发方法(Tailwind工具类)编写一致且可维护的CSS,同时尽量减少自定义CSS并遵守设计系统标记。在编写或编辑CSS文件、React组件中的Tailwind类(.tsx, .jsx文件)、实现设计系统的颜色/间距/排版、使用Tailwind工具类、决定是使用框架工具还是自定义CSS、通过摇树优化生产环境下的CSS、配置Tailwind主题扩展,或是保持整个应用程序的设计一致性时应用此技能。

person作者: jakexiaohubgithub

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 writing or editing CSS files in the project
  • When applying Tailwind CSS utility classes in React components (.tsx, .jsx files)
  • When implementing design system tokens (colors, spacing, typography)
  • When configuring Tailwind theme extensions using the @theme directive
  • When deciding between using framework utilities vs. writing custom CSS
  • When maintaining consistent styling patterns across components
  • When optimizing CSS for production with purging/tree-shaking
  • When avoiding unnecessary framework style overrides
  • When working with the project's CSS methodology (Tailwind, BEM, utility-first, etc.)
  • When implementing responsive styles using Tailwind breakpoints
  • When ensuring CSS performance and bundle size optimization

Instructions

For details, refer to the information provided in this file: frontend CSS