organizing-classnames
Installation
SKILL.md
ClassNames Usage and Conventions
1. Import and Component Props Pattern
- Import
classNamesfrom'classnames'alongside other third-party imports - The
classNameprop must be optional:className?: string - Always merge the consumer's
classNamelast so it can override defaults:
className={classNames('default-classes', className)}
2. Breakpoint Order (Mobile-First)
Order classes from smallest to largest screen size — always:
base (no prefix) → xs: → s: → sm: → md: → m: → lg: → xl: → 2xl: