|
| 1 | +import { Meta, ColorPalette, ColorItem } from "@storybook/blocks"; |
| 2 | +import { colors, semanticColors } from "./colors.ts"; |
| 3 | + |
| 4 | +# Colors |
| 5 | + |
| 6 | +๋ฌ๋ UI์ ๊ทผ๊ฐ์ด ๋๋ ์์ ํ๋ ํธ์
๋๋ค. |
| 7 | + |
| 8 | +<ColorPalette> |
| 9 | + <ColorItem |
| 10 | + title="์ด๋ก" |
| 11 | + subtitle="colors.teal" |
| 12 | + colors={Object.fromEntries( |
| 13 | + Object.entries(colors.teal).map(([name, { value }]) => [name, value]) |
| 14 | + )} |
| 15 | + /> |
| 16 | + <ColorItem |
| 17 | + title="์ด๋ก (dark)" |
| 18 | + subtitle="colors.tealDark" |
| 19 | + colors={Object.fromEntries( |
| 20 | + Object.entries(colors.tealDark).map(([name, { value }]) => [name, value]) |
| 21 | + )} |
| 22 | + /> |
| 23 | + <ColorItem |
| 24 | + title="๋ณด๋ผ" |
| 25 | + subtitle="colors.violet" |
| 26 | + colors={Object.fromEntries( |
| 27 | + Object.entries(colors.violet).map(([name, { value }]) => [name, value]) |
| 28 | + )} |
| 29 | + /> |
| 30 | + <ColorItem |
| 31 | + title="๋ณด๋ผ (dark)" |
| 32 | + subtitle="colors.violetDark" |
| 33 | + colors={Object.fromEntries( |
| 34 | + Object.entries(colors.violetDark).map(([name, { value }]) => [ |
| 35 | + name, |
| 36 | + value, |
| 37 | + ]) |
| 38 | + )} |
| 39 | + /> |
| 40 | + <ColorItem |
| 41 | + title="๋นจ๊ฐ" |
| 42 | + subtitle="colors.red" |
| 43 | + colors={Object.fromEntries( |
| 44 | + Object.entries(colors.red).map(([name, { value }]) => [name, value]) |
| 45 | + )} |
| 46 | + /> |
| 47 | + <ColorItem |
| 48 | + title="๋นจ๊ฐ (dark)" |
| 49 | + subtitle="colors.redDark" |
| 50 | + colors={Object.fromEntries( |
| 51 | + Object.entries(colors.redDark).map(([name, { value }]) => [name, value]) |
| 52 | + )} |
| 53 | + /> |
| 54 | + <ColorItem |
| 55 | + title="๋
ธ๋" |
| 56 | + subtitle="colors.yellow" |
| 57 | + colors={Object.fromEntries( |
| 58 | + Object.entries(colors.yellow).map(([name, { value }]) => [name, value]) |
| 59 | + )} |
| 60 | + /> |
| 61 | + <ColorItem |
| 62 | + title="๋
ธ๋ (dark)" |
| 63 | + subtitle="colors.yellowDark" |
| 64 | + colors={Object.fromEntries( |
| 65 | + Object.entries(colors.yellowDark).map(([name, { value }]) => [ |
| 66 | + name, |
| 67 | + value, |
| 68 | + ]) |
| 69 | + )} |
| 70 | + /> |
| 71 | + <ColorItem |
| 72 | + title="ํ์" |
| 73 | + subtitle="colors.gray" |
| 74 | + colors={Object.fromEntries( |
| 75 | + Object.entries(colors.gray).map(([name, { value }]) => [name, value]) |
| 76 | + )} |
| 77 | + /> |
| 78 | + <ColorItem |
| 79 | + title="ํ์ (dark)" |
| 80 | + subtitle="colors.grayDark" |
| 81 | + colors={Object.fromEntries( |
| 82 | + Object.entries(colors.grayDark).map(([name, { value }]) => [name, value]) |
| 83 | + )} |
| 84 | + /> |
| 85 | +</ColorPalette> |
| 86 | + |
| 87 | +์ฉ๋์ ๋ฐ๋ผ์ ๊ฐ ์์์ 12๊ฐ์ง ์ค์ผ์ผ๋ก ๋ถ๋ฆฌ๋ฉ๋๋ค. |
| 88 | + |
| 89 | +- Scale 1: ํ์ด์ง ๋ฐฐ๊ฒฝ |
| 90 | +- Scale 2: ์๋น |
| 91 | +- Scale 3: ์ปดํฌ๋ํธ ๋ฐฐ๊ฒฝ |
| 92 | +- Scale 4: ์ปดํฌ๋ํธ ๋ฐฐ๊ฒฝ (hover) |
| 93 | +- Scale 5: ์ปดํฌ๋ํธ ๋ฐฐ๊ฒฝ (active) |
| 94 | +- Scale 6: ์๋น |
| 95 | +- Scale 7: ๊ฒฝ๊ณ |
| 96 | +- Scale 8: ๊ฒฝ๊ณ (hover) |
| 97 | +- Scale 9: ์๋ฆฌ๋ ๋ฐฐ๊ฒฝ |
| 98 | +- Scale 10: ์๋ฆฌ๋ ๋ฐฐ๊ฒฝ (hover) |
| 99 | +- Scale 11: ๊ธ์ (low contrast) |
| 100 | +- Scale 12: ๊ธ์ (high contrast) |
0 commit comments