본문으로 건너뛰기

Color

94개 reference 톤과 34개 system 역할, 그리고 두 스킴이 뒤바뀌는 방식

이 페이지의 모든 색은 지금 이 사이트가 로드한 토큰에서 읽습니다. 스크린샷이 아니라 살아있는 값이라, 좌측 상단 스위처로 스킴을 바꾸면 아래 색들이 함께 바뀝니다. 그래서 이 문서는 실제 구현과 어긋날 수가 없습니다.

두 층

--md-ref-palette-*   리터럴 값이 존재하는 유일한 층
        ↓ var()
--md-sys-color-*     역할. 리터럴 금지, 오직 ref를 소비
        ↓ var()
컴포넌트

리터럴 hex가 --md-sys-color-*에 들어가면 CI가 실패합니다. 이건 취향이 아니라 검사되는 규칙입니다 — validate_token_layering.py의 Axis E가 그걸 봅니다. 이유는 단순합니다: 다크 모드는 ref → sys 매핑만 바꿉니다. sys에 값이 박혀 있으면 바꿀 매핑이 없습니다.

Reference palette

M3 reference 톤. 값이 실제로 여기 있는 유일한 곳입니다.

primary

0 10 20 30 40 50 60 70 80 90 95 98 99 100

secondary

0 10 20 30 40 50 60 70 80 90 95 98 99 100

tertiary

0 10 20 30 40 50 60 70 80 90 95 98 99 100

error

0 10 20 30 40 50 60 70 80 90 95 98 99 100

neutral

0 4 6 10 12 17 20 22 24 30 40 50 60 70 80 87 90 92 94 95 96 98 99 100

neutral-variant

0 10 20 30 40 50 60 70 80 90 95 98 99 100

neutral만 24톤이고 나머지는 14톤입니다. 여분은 surface container 단계를 위한 것으로, M3가 그 자리에 튜닝된 값을 따로 발행하기 때문입니다 — 톤 곡선에서 계산해 낸 값이 아닙니다.

System roles

각 역할이 어느 ref 톤을 가리키는지가 함께 적혀 있습니다. 두 스킴의 차이가 곧 그 매핑의 차이이고, 그게 전부입니다.

Brand & error roles

  • --md-sys-color-primary light primary-40 · dark primary-80
  • --md-sys-color-on-primary light primary-100 · dark primary-20
  • --md-sys-color-primary-container light primary-90 · dark primary-30
  • --md-sys-color-on-primary-container light primary-30 · dark primary-90
  • --md-sys-color-secondary light secondary-40 · dark secondary-80
  • --md-sys-color-on-secondary light secondary-100 · dark secondary-20
  • --md-sys-color-secondary-container light secondary-90 · dark secondary-30
  • --md-sys-color-on-secondary-container light secondary-30 · dark secondary-90
  • --md-sys-color-tertiary light tertiary-40 · dark tertiary-80
  • --md-sys-color-on-tertiary light tertiary-100 · dark tertiary-20
  • --md-sys-color-tertiary-container light tertiary-90 · dark tertiary-30
  • --md-sys-color-on-tertiary-container light tertiary-30 · dark tertiary-90
  • --md-sys-color-error light error-40 · dark error-80
  • --md-sys-color-on-error light error-100 · dark error-20
  • --md-sys-color-error-container light error-90 · dark error-30
  • --md-sys-color-on-error-container light error-30 · dark error-90

Surface roles (container levels highest -> lowest, per M3 baseline)

  • --md-sys-color-surface light neutral-98 · dark neutral-6
  • --md-sys-color-on-surface light neutral-10 · dark neutral-90
  • --md-sys-color-surface-variant light neutral-variant-90 · dark neutral-variant-30
  • --md-sys-color-on-surface-variant light neutral-variant-30 · dark neutral-variant-80
  • --md-sys-color-surface-container-highest light neutral-90 · dark neutral-22
  • --md-sys-color-surface-container-high light neutral-92 · dark neutral-17
  • --md-sys-color-surface-container light neutral-94 · dark neutral-12
  • --md-sys-color-surface-container-low light neutral-96 · dark neutral-10
  • --md-sys-color-surface-container-lowest light neutral-100 · dark neutral-4

Inverse

  • --md-sys-color-inverse-surface light neutral-20 · dark neutral-90
  • --md-sys-color-inverse-on-surface light neutral-95 · dark neutral-20
  • --md-sys-color-inverse-primary light primary-80 · dark primary-40

Outline

  • --md-sys-color-outline light neutral-variant-50 · dark neutral-variant-60
  • --md-sys-color-outline-variant light neutral-variant-80 · dark neutral-variant-30

Add-ons (surface bright/dim)

  • --md-sys-color-surface-bright light neutral-98 · dark neutral-24
  • --md-sys-color-surface-dim light neutral-87 · dark neutral-6

Scheme-neutral (declared with elevation)

  • --md-sys-color-shadow light neutral-0 · dark neutral-0
  • --md-sys-color-scrim light neutral-0 · dark neutral-0

다크가 하는 일

primary를 보면 primary-40 → primary-80입니다. 어두운 배경에서 같은 색조를 더 밝은 톤으로 올리는 것이지, 다른 색으로 바꾸는 것이 아닙니다. surface는 neutral-98 → neutral-6으로 뒤집힙니다.

shadow와 scrim은 두 스킴에서 같은 neutral-0입니다. 그래서 색 파일이 아니라 elevation 파일에 있습니다 — 색 역할이라기보다 elevation 동작의 일부로 분류한 구조입니다. 다크에서 물리적 그림자가 none이 되는 것도 같은 파일에서 함께 설명됩니다.

어디에 있나

themes/axismundi/assets/styles/
  tokens.ref.css                 팔레트
  tokens.sys.color.light.css     역할 → ref (light)
  tokens.sys.color.dark.css      역할 → ref (dark)
  tokens.sys.elevation.css       shadow · scrim + 그림자 공식

이 사이트는 그 파일들을 빌드 때 그대로 복사해 씁니다. 따로 옮겨 적은 팔레트를 문서화하면 아무도 배포하지 않는 색을 설명하게 되니까요.