Semantic Text
Betav1.0.0positive/negative/critical/informative 의미별 색.
Loading…
Installation
pnpm dlx @groudit/cli@latest add semantic-textColor tokens
CSS 변수로 정의 — 4개 테마 (Light/Dark/HCB/HCW) 모두 자동 지원.
| State | CSS variable | 사용 의미 |
|---|---|---|
| positive | --positive | 이익, 증가, 성공 |
| negative | --negative | 손실, 감소, 에러 |
| critical | --critical | 경고, 임계치, 주의 |
| informative | --informative | 정보, 알림 |
| neutral | --foreground | 기본 (의미 없음) |
Dependencies
설치 시 자동으로 함께 들어오는 의존성. 모든 버전은 정확히 고정되어 자동 업데이트를 방지합니다.
npm packages
| Package | Version |
|---|---|
| clsx | 2.1.1 |
| tailwind-merge | 3.6.0 |
Accessibility
Notes
- •WCAG 1.4.1 — 색만으로 의미 전달 X. 항상 텍스트 라벨 동반 ('+' 부호 등).
- •4개 테마 (Light/Dark/HCB/HCW) 모두 대비율 검증된 토큰 사용.