css_classname-naming

Enforce camelCase CSS class naming in React CSS Modules.

Updated Jan 1, 2026
One-click install
npx skills add https://github.com/ViewableGravy/better-ecs --skill css-classname-naming
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: css_classname-naming
Source: https://github.com/ViewableGravy/better-ecs/tree/main/.github/skills/css_classname-naming
Command: npx skills add https://github.com/ViewableGravy/better-ecs --skill css-classname-naming

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides clear guidelines for naming CSS classnames when using CSS Modules in React, ensuring consistency and maintainability across the project.

Core Features & Use Cases

  • Consistent Naming: Enforces camelCase for classnames, making them easy to access in JavaScript.
  • Avoids BEM: Eliminates the need for complex BEM syntax due to CSS Modules' local scoping.
  • Modifier Handling: Defines how to handle conditional states and modifiers using descriptive names.
  • Use Case: When developing a new React component, follow these rules to ensure its CSS classnames integrate seamlessly with the existing codebase, preventing naming conflicts and improving developer experience.

Quick Start

Follow the camelCase naming convention for all CSS classnames within your React components using CSS Modules.

Frequently Asked Questions about css_classname-naming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I name CSS classnames in React components using CSS Modules?

Name CSS classnames in React using camelCase. This convention ensures classnames are easy to access in JavaScript and maintain consistency across your project's CSS Modules.

Do I need BEM syntax when using CSS Modules in React?

No, you do not need BEM syntax with CSS Modules. Local scoping automatically prevents naming conflicts, eliminating the need for complex BEM syntax and improving the developer experience.

What is the best way to standardize CSS classnames for developer experience?

The best way to standardize CSS classnames is enforcing camelCase naming conventions and descriptive modifiers. This eliminates naming conflicts and improves maintainability across the codebase.

How do I name the root element in a React CSS Module?

Name the root element using the standard camelCase convention. This specifies root element naming clearly, ensuring the component's CSS classnames integrate seamlessly with the existing codebase.

Can I use kebab-case for CSS Modules in React?

No, you should use camelCase for CSS Modules in React. Enforcing camelCase naming conventions makes the classnames easy to access directly in JavaScript without bracket notation.