0Pricing
Design Systems & Component Libraries · 강의

토큰 이름 지정과 계층형 토큰 아키텍처

디자인 토큰을 원시 토큰, 의미 토큰, 컴포넌트 토큰으로 구성된 확장 가능한 계층형 아키텍처로 구조화하고, 변화에도 견디는 이름을 지정하는 방법을 배웁니다.

토큰 이름 지정과 계층형 토큰 아키텍처은(는) CoddyKit의 무료 Design Systems & Component Libraries 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Design Systems & Component Libraries 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Design Systems & Component Libraries 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Why Token Architecture Matters

A flat list of color tokens works at first, then collapses as the system grows. A tiered token architecture keeps tokens scalable and meaningful.

This lesson builds on implementing tokens by structuring and naming them well.

Tier 1: Primitive Tokens

Primitive (or global) tokens are raw values: blue-500 = #3b82f6, space-4 = 16px.

They are the full palette of available values, named by what they are, with no opinion about where they are used.

Tier 2: Semantic Tokens

Semantic (or alias) tokens describe intent: color-action-primary, color-text-danger.

They reference primitives but add meaning. Components use semantic tokens, so re-theming means repointing aliases, not editing every component.

Tier 3: Component Tokens

Component tokens scope values to a specific component: button-background-color, card-padding.

They reference semantic tokens. The chain below shows the three tiers resolving down to a raw value.

const primitive = { 'blue-500': '#3b82f6' };
const semantic = { 'color-action-primary': 'blue-500' };
const component = { 'button-bg': 'color-action-primary' };

function resolve(token) {
  let v = component[token] || semantic[token] || token;
  v = semantic[v] || v;
  return primitive[v] || v;
}

console.log(resolve('button-bg'));

The Power of Indirection

Why three tiers? Indirection. Change color-action-primary from blue to green once, and every button, link, and focus ring updates.

Without semantic tokens you would hunt down every hardcoded blue. Tiers turn sweeping changes into one edit.

Naming That Survives Change

Name semantic tokens by role, never by value. color-success survives a palette change; color-green becomes a lie.

The same rule applies to primitives - prefer blue-500 over brand-blue if the brand might shift.

A Consistent Naming Schema

Adopt a predictable pattern: category-property-variant-state, e.g. color-text-link-hover.

When every token follows the same grammar, developers can guess token names instead of searching docs. Consistency is the goal.

Avoiding Over-Tokenization

Not everything needs a token. Tokenizing every one-off value creates noise and maintenance burden.

Tokenize values that repeat or carry meaning. A truly unique magic number can stay inline with a comment.

Themes Live at the Semantic Tier

Light, dark, and brand themes differ at the semantic layer. Primitives stay constant; semantic aliases repoint per theme.

This is why the tier structure makes multi-theme support nearly free - you swap one mapping table.

Documenting the Hierarchy

Show the token chain in your docs: which primitive a semantic token points to, and which components consume it.

This transparency helps contributors choose the right tier and understand the ripple effect of a change.

Architecture That Scales

A tiered, well-named token system scales from one product to dozens of themed, white-labeled apps without rework.

The structure is the difference between tokens that empower and tokens that become technical debt.

Quick Check

Test your token architecture knowledge.

Recap

You structured design tokens into a scalable architecture:

  • Primitive tokens hold raw values.
  • Semantic tokens add intent; components reference these.
  • Component tokens scope values per component.
  • Name by role, follow a consistent schema, and avoid over-tokenizing.

Tiered tokens make sweeping design changes a single edit.

자주 묻는 질문

“토큰 이름 지정과 계층형 토큰 아키텍처” 강의는 무료인가요?

네 — “토큰 이름 지정과 계층형 토큰 아키텍처” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Design Systems & Component Libraries 강의 전체를 잠금 해제할 수 있습니다. Design Systems & Component Libraries 강의에는 총 4개의 강의가 포함되어 있습니다.

“토큰 이름 지정과 계층형 토큰 아키텍처”에서 뭘 배우나요?

디자인 토큰을 원시 토큰, 의미 토큰, 컴포넌트 토큰으로 구성된 확장 가능한 계층형 아키텍처로 구조화하고, 변화에도 견디는 이름을 지정하는 방법을 배웁니다. 브라우저에서 직접 실행하는 실습 코드로 Design Systems & Component Libraries을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Design Systems & Component Libraries을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Design Systems & Component Libraries은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.

“토큰 이름 지정과 계층형 토큰 아키텍처” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Design Systems & Component Libraries 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Design Systems & Component Libraries 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. 디자인 토큰이란?
  2. 디자인 토큰 구현
  3. 디자인에서 코드로의 작업 흐름 자동화
  4. 토큰 이름 지정과 계층형 토큰 아키텍처
← Design Systems & Component Libraries(으)로 돌아가기