-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from DaleStudy/26-color-palette
Color Tokens
- Loading branch information
Showing
8 changed files
with
407 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
import { Meta, ColorPalette, ColorItem } from "@storybook/blocks"; | ||
import { colors, semanticColors } from "./colors.ts"; | ||
|
||
# Colors | ||
|
||
달레 UI의 근간이 되는 색상 팔레트입니다. | ||
|
||
<ColorPalette> | ||
<ColorItem | ||
title="초록" | ||
subtitle="colors.teal" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.teal).map(([name, { value }]) => [name, value]) | ||
)} | ||
/> | ||
<ColorItem | ||
title="초록 (dark)" | ||
subtitle="colors.tealDark" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.tealDark).map(([name, { value }]) => [name, value]) | ||
)} | ||
/> | ||
<ColorItem | ||
title="보라" | ||
subtitle="colors.violet" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.violet).map(([name, { value }]) => [name, value]) | ||
)} | ||
/> | ||
<ColorItem | ||
title="보라 (dark)" | ||
subtitle="colors.violetDark" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.violetDark).map(([name, { value }]) => [ | ||
name, | ||
value, | ||
]) | ||
)} | ||
/> | ||
<ColorItem | ||
title="빨강" | ||
subtitle="colors.red" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.red).map(([name, { value }]) => [name, value]) | ||
)} | ||
/> | ||
<ColorItem | ||
title="빨강 (dark)" | ||
subtitle="colors.redDark" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.redDark).map(([name, { value }]) => [name, value]) | ||
)} | ||
/> | ||
<ColorItem | ||
title="노랑" | ||
subtitle="colors.yellow" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.yellow).map(([name, { value }]) => [name, value]) | ||
)} | ||
/> | ||
<ColorItem | ||
title="노랑 (dark)" | ||
subtitle="colors.yellowDark" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.yellowDark).map(([name, { value }]) => [ | ||
name, | ||
value, | ||
]) | ||
)} | ||
/> | ||
<ColorItem | ||
title="회색" | ||
subtitle="colors.gray" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.gray).map(([name, { value }]) => [name, value]) | ||
)} | ||
/> | ||
<ColorItem | ||
title="회색 (dark)" | ||
subtitle="colors.grayDark" | ||
colors={Object.fromEntries( | ||
Object.entries(colors.grayDark).map(([name, { value }]) => [name, value]) | ||
)} | ||
/> | ||
</ColorPalette> | ||
|
||
용도에 따라서 각 색상은 12가지 스케일로 분리됩니다. | ||
|
||
- Scale 1: 페이지 배경 | ||
- Scale 2: 예비 | ||
- Scale 3: 컴포넌트 배경 | ||
- Scale 4: 컴포넌트 배경 (hover) | ||
- Scale 5: 컴포넌트 배경 (active) | ||
- Scale 6: 예비 | ||
- Scale 7: 경계 | ||
- Scale 8: 경계 (hover) | ||
- Scale 9: 솔리드 배경 | ||
- Scale 10: 솔리드 배경 (hover) | ||
- Scale 11: 글자 (low contrast) | ||
- Scale 12: 글자 (high contrast) |
Oops, something went wrong.