Arize-ai

phoenix-design

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

Arize-ai 9,971 906 Updated 3mo ago
GitHub

Install

npx skillscat add arize-ai/phoenix/phoenix-design

Install via the SkillsCat registry.

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

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