css-modules
CSS Modules patterns, composition, variables, and build configuration.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
CSS Modules Skill
Expert assistance for scoped styling with CSS Modules.
Capabilities
- Configure CSS Modules
- Write scoped styles
- Implement composition
- Use CSS variables
- Handle theming
Usage Pattern
/* Button.module.css */
.button {
padding: 0.5rem 1rem;
border-radius: 0.25rem;
composes: reset from './reset.module.css';
}
.primary {
composes: button;
background: var(--color-primary);
color: white;
}
import styles from './Button.module.css';
<button className={styles.primary}>Click me</button>
Target Processes
- react-application-development
- component-styling
- design-system
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-03-11
- Index updated
- 2026-03-11
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!