css-modules

Official

Scoped CSS for component encapsulation.

AuthorMadAppGang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the problem of CSS style conflicts in large applications by enabling locally-scoped CSS, ensuring that styles applied to one component do not unintentionally affect others.

Core Features & Use Cases

  • Local Scope by Default: Automatically generates unique class names to prevent global namespace pollution.
  • Composition: Allows sharing and composing styles between different CSS modules.
  • Vite & Lightning CSS Integration: Optimized for modern build tools, leveraging Lightning CSS for high-performance transformations.
  • TypeScript Support: Provides type definitions for enhanced developer experience and type safety.
  • Use Case: When styling a complex UI component like a modal or a data table, CSS Modules ensure that the styles for that specific component remain isolated, even when using similar class names elsewhere in the application.

Quick Start

Use the css-modules skill to style a React component named 'UserProfile' using a local CSS module.

Dependency Matrix

Required Modules

None required

Components

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: css-modules
Download link: https://github.com/MadAppGang/magus/archive/main.zip#css-modules

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.