-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color Tokens #28
Merged
Merged
Color Tokens #28
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Binary file not shown.
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 |
---|---|---|
|
@@ -2,7 +2,8 @@ import { defineGlobalStyles } from "@pandacss/dev"; | |
|
||
export const globalCss = defineGlobalStyles({ | ||
":root": { | ||
"--global-font-body": "var (--fonts-sans)", | ||
"--global-font-body": "var(--fonts-sans)", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 제가 이전 PR에서 요기에 오타를 내서 현재 웹사이트에 기본 폰트가 적용이 안 되고 있습니다 😆 |
||
backgroundColor: "var(--colors-base)", | ||
}, | ||
h1: { | ||
fontSize: "var(--font-sizes-4xl)", // 2.25rem | ||
|
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) | ||
Comment on lines
+87
to
+100
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 가이드만 준수하여 색상을 사용하면 명암비로 인한 웹 접근성 문제는 피할 수 있을 거라고 생각합니다. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 설정을 통해 툴바에 라이트/다크 모드 전환 버튼이 생깁니다.