css-development:create-component
Create CSS components with semantic naming
Creating consistent, maintainable CSS components is challenging without clear patterns. This skill guides you through building reusable components with semantic class names, Tailwind composition, dark mode support, and comprehensive test coverage.
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“css-development:create-component”。 Create a primary button component with hover effects and dark mode
预期结果:
- Created .button-primary component in styles/components.css
- Added dark mode variants for background and hover states
- Created static CSS test verifying class exists
- Added React component rendering test
- Documented usage with React and HTML examples
安全审计
安全Pure prompt-based skill with no executable code. Contains only guidance documentation for creating CSS components. No network, filesystem, or code execution capabilities.
质量评分
你能构建什么
Build reusable UI components
Create consistent, maintainable CSS components following team conventions and patterns.
Style new UI elements
Add styled elements to projects with proper dark mode support and test coverage.
Enforce component standards
Maintain consistent naming and composition patterns across a design system.
试试这些提示
Create a primary button component following the css-development:create-component skill patterns. The button should have a hover lift effect and work in dark mode.
Create a card component using css-development:create-component. Include title and description sub-elements with proper semantic naming.
Create an input field component with focus states and error variants using the css-development:create-component skill. Ensure dark mode support.
Create a navigation component using css-development:create-component with proper atomic design organization, interactive states, and responsive behavior.
最佳实践
- Use semantic names that describe purpose, not appearance (use .button-primary not .btn-blue)
- Always include dark mode variants from the start rather than adding them later
- Check existing components first - compose over creating new classes
避免
- Using utility-style names that couple styling to appearance (.text-blue, .card-sm)
- Creating new classes when existing ones can be composed together
- Skipping dark mode variants thinking they can be added later
常见问题
Does this skill work with plain CSS or only Tailwind?
Can I use this skill with frameworks like Vue or Svelte?
What if my project does not use dark mode?
Is this skill safe to use with production code?
Does this skill modify files automatically?
How is this different from coding the CSS manually?
开发者详情
许可证
MIT
仓库
https://github.com/2389-research/claude-plugins/tree/main/css-development/skills/create-component引用
main
文件结构
📄 SKILL.md