Skip to content

Commit 06ff8e9

Browse files
config (#9)
1 parent 650356a commit 06ff8e9

File tree

1 file changed

+60
-7
lines changed

1 file changed

+60
-7
lines changed

tailwind.config.ts

Lines changed: 60 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,76 @@
1+
// tailwind.config.ts
12
import type { Config } from "tailwindcss";
23

34
const config: Config = {
4-
darkMode: "class",
55
content: [
66
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
77
"./components/**/*.{js,ts,jsx,tsx,mdx}",
88
"./app/**/*.{js,ts,jsx,tsx,mdx}",
99
],
10+
darkMode: "class",
1011
theme: {
1112
extend: {
12-
fontFamily: {
13-
sans: ["var(--font-pretendard)"],
14-
},
1513
colors: {
16-
background: "var(--background)",
17-
foreground: "var(--foreground)",
14+
primary: {
15+
DEFAULT: "#FE6F21",
16+
...{
17+
"50": "#fff6ed",
18+
"100": "#ffebd4",
19+
"200": "#ffd2a8",
20+
"300": "#ffb270",
21+
"400": "#ff8637",
22+
"500": "#ff6f20",
23+
"600": "#f04906",
24+
"700": "#c73407",
25+
"800": "#9e2a0e",
26+
"900": "#7f260f",
27+
"950": "#450f05",
28+
},
29+
},
30+
neutral: {
31+
DEFAULT: "#000000",
32+
...{
33+
"50": "#f6f6f6",
34+
"100": "#e7e7e7",
35+
"200": "#d1d1d1",
36+
"300": "#b0b0b0",
37+
"400": "#888888",
38+
"500": "#6d6d6d",
39+
"600": "#5d5d5d",
40+
"700": "#4f4f4f",
41+
"800": "#454545",
42+
"900": "#3d3d3d",
43+
"950": "#000000",
44+
},
45+
},
46+
// 다크모드용 색상 추가
47+
background: {
48+
DEFAULT: "white",
49+
dark: "#000000",
50+
},
51+
text: {
52+
DEFAULT: "#000000",
53+
dark: "#ffffff",
54+
},
55+
border: {
56+
DEFAULT: "#e7e7e7",
57+
dark: "#454545",
58+
},
59+
},
60+
fontSize: {
61+
display: ["3rem", { lineHeight: "1.2", fontWeight: "700" }], // 48px
62+
h1: ["2.5rem", { lineHeight: "1.2", fontWeight: "700" }], // 40px
63+
h2: ["2rem", { lineHeight: "1.2", fontWeight: "700" }], // 32px
64+
h3: ["1.5rem", { lineHeight: "1.2", fontWeight: "700" }], // 24px
65+
subhead1: ["1.25rem", { lineHeight: "1.2", fontWeight: "700" }], // 20px
66+
subhead2: ["1rem", { lineHeight: "1.2", fontWeight: "700" }], // 16px
67+
subhead3: ["0.875rem", { lineHeight: "1.2", fontWeight: "700" }], // 14px
68+
body1: ["1rem", { lineHeight: "1.5" }], // 16px
69+
body2: ["0.875rem", { lineHeight: "1.5" }], // 14px
70+
body3: ["0.75rem", { lineHeight: "1.5" }], // 12px
1871
},
1972
},
2073
},
21-
plugins: [require("@tailwindcss/typography")],
74+
plugins: [],
2275
};
2376
export default config;

0 commit comments

Comments
 (0)