component-styles
OfficialStandardize component styling API.
Software Engineering#typescript#react#design system#css#web components#component styling#mobile components
Authorcoinbase
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a standardized way to add and manage styling APIs (styles, classNames, and static classNames) for CDS components, ensuring consistency and maintainability across the design system.
Core Features & Use Cases
- Define Styleable Elements: Identifies and documents elements within a component that can be targeted for styling.
- Generate Style Props: Automatically creates
stylesandclassNamesprops for components. - Enforce Naming Conventions: Ensures consistent naming for selectors and class names (e.g.,
cds-ComponentName-selectorName). - Add Static ClassNames: Implements a pattern for static class names in web components for CSS targeting.
- Mobile Styling Pattern: Provides a simpler pattern for styling mobile components.
- JSDoc Documentation: Enforces clear JSDoc comments for selectors and their usage.
- Testing: Includes guidelines for adding tests to verify static class name application.
- Documentation Updates: Guides users on updating component documentation after implementing the styles API.
Quick Start
Use the component-styles skill to add the styles API to the Button component, ensuring all approved selectors are documented with JSDoc and static class names are implemented following the cds-ComponentName-selectorName convention.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: component-styles Download link: https://github.com/coinbase/cds/archive/main.zip#component-styles Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.