Agent skill

phoenix-design

BEM CSS naming conventions for the Phoenix frontend. Use when naming new CSS classes or className assignments in app/src/.

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/phoenix-design

Metadata

Additional technical details for this skill

version
1.0.0
internal
YES

SKILL.md

Phoenix Design System — BEM Naming

Pattern

block             → disclosure, tabs, slider
block__element    → slider__label, dialog__title, search-field__icon
block--modifier   → theme--dark, dropdown--picker

Rules

  • Block: A standalone component — disclosure, search-field, toggle-button
  • Element: A part that cannot exist independently — uses __ separator — slider__label, field__icon
  • Modifier: A variant or state — uses -- separator — theme--dark, dropdown--picker
  • Compound names within a segment use hyphens: search-field, toggle-button, dialog__close-button
  • No prefix — never add any prefix to class names

Examples

tsx
className="search-field"
className="search-field__clear"
className="disclosure__panel"
className="theme--dark"

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