Agent skill

css-modules

CSS Modules patterns, composition, variables, and build configuration.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/css-modules

SKILL.md

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

css
/* 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;
}
tsx
import styles from './Button.module.css';

<button className={styles.primary}>Click me</button>

Target Processes

  • react-application-development
  • component-styling
  • design-system

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results