표기 규칙
- 형식
block__element--modifier - element는
__, modifier는-- - 단어 구분은 하이픈 1개 —
privacy-policy - 예시
header__nav--active - 모두 소문자. 카멜케이스 · 언더스코어 1개 금지
Block · Element · Modifier 네이밍 사전. 항목을 클릭하면 클립보드에 복사됩니다.
block__element--modifier__, modifier는 --privacy-policyheader__nav--activeblock__el1__el2 ❌ → block__el1-el2 ⭕class="button button--disabled"card, nav)card__title)| 구분 | 분류 | 항목 |
|---|---|---|
| folder | depth1 |
|
| depth2 |
|
|
| file · page | name |
|
| block | depth1 |
|
| depth2 |
|
|
| depth3 |
|
|
| element | depth1 위치 |
|
| depth2 역할 |
|
|
| depth3 조각 |
|
|
| modifier | state |
|
| variant |
|
|
| size |
|
|
| shape |
|
|
| color |
|