Colors
Jayh 디자인 시스템의 컬러 팔레트와 시맨틱 컬러 토큰을 소개합니다. 모든 색상은 CSS 변수로 제공되며, 다크 모드에서 자동으로 전환됩니다.
Introducing the color palette and semantic color tokens of the Jayh Design System. All colors are provided as CSS variables and automatically switch in dark mode.
Primitive Color Palette
기본 색상 스케일입니다. 시맨틱 토큰의 기반이 되며, 직접 사용하기보다 시맨틱 토큰을 통해 참조하는 것을 권장합니다.
The base color scale. These form the foundation of semantic tokens, and it is recommended to reference them through semantic tokens rather than using them directly.
Gray
Blue
Red
Green
Yellow
Semantic Colors
시맨틱 컬러는 용도에 따라 이름이 지정된 토큰입니다. 다크 모드 전환 시 자동으로 적절한 값으로 변경됩니다. 아래 색상 블록은 실제 CSS 변수 값을 반영합니다.
Semantic colors are tokens named by purpose. They automatically change to appropriate values when switching to dark mode. The color blocks below reflect the actual CSS variable values.
Surface
배경 및 표면에 사용되는 색상입니다.
Colors used for backgrounds and surfaces.
Text
텍스트에 사용되는 색상입니다.
Colors used for text.
Border
보더 및 구분선에 사용되는 색상입니다.
Colors used for borders and dividers.
Interactive
버튼, 링크 등 인터랙티브 요소에 사용되는 색상입니다.
Colors used for interactive elements such as buttons and links.
Status
상태를 나타내는 색상입니다. 각 상태에는 텍스트용 색상과 배경용(-bg) 색상이 있습니다.
Colors that indicate status. Each status has a text color and a background (-bg) color.
Using Colors in CSS
시맨틱 컬러 토큰은 CSS 변수로 제공됩니다. 하드코딩된 색상 값 대신 항상 CSS 변수를 사용하세요. 다크 모드에서 자동으로 적절한 값으로 전환됩니다.
Semantic color tokens are provided as CSS variables. Always use CSS variables instead of hardcoded color values. They automatically switch to appropriate values in dark mode.
/* Surface colors */
.card {
background: var(--jayh-surface-primary);
border: 1px solid var(--jayh-border-default);
}
/* Text colors */
.title {
color: var(--jayh-text-primary);
}
.description {
color: var(--jayh-text-secondary);
}
.hint {
color: var(--jayh-text-tertiary);
}
/* Interactive colors */
.link {
color: var(--jayh-text-link);
}
.link:hover {
color: var(--jayh-interactive-hover);
}
/* Status colors */
.success-message {
color: var(--jayh-status-success);
background: var(--jayh-status-success-bg);
}
.error-message {
color: var(--jayh-status-error);
background: var(--jayh-status-error-bg);
}
Token Naming Convention
모든 컬러 토큰은 --jayh-{category}-{name} 패턴을 따릅니다.
All color tokens follow the --jayh-{category}-{name} pattern.
--jayh-surface-primary /* 배경: 기본 표면 */
--jayh-surface-secondary /* 배경: 보조 표면 */
--jayh-text-primary /* 텍스트: 기본 */
--jayh-text-secondary /* 텍스트: 보조 */
--jayh-border-default /* 보더: 기본 */
--jayh-interactive-primary /* 인터랙티브: 기본 */
--jayh-status-success /* 상태: 성공 */
--jayh-status-error-bg /* 상태: 에러 배경 */