-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
133 lines (133 loc) · 4.02 KB
/
tailwind.config.js
File metadata and controls
133 lines (133 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}", "*.{js,ts,jsx,tsx,mdx}"],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
colors: {
// shadcn/ui 기본 색상 변수들
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "#059669", // Tailwind emerald-600
50: "#ECFDF5",
100: "#D1FAE5",
200: "#A7F3D0",
300: "#6EE7B7",
400: "#34D399",
500: "#10B981",
600: "#059669",
700: "#047857",
800: "#065F46",
900: "#064E3B",
950: "#022C22",
foreground: "hsl(var(--primary-foreground))", // shadcn/ui의 foreground 변수 사용
},
secondary: {
DEFAULT: "#06B6D4", // Tailwind cyan-600
50: "#ECFEFF",
100: "#CFFAFE",
200: "#A5F3FC",
300: "#67E8F9",
400: "#22D3EE",
500: "#06B6D4",
600: "#0891B2",
700: "#0E7490",
800: "#155E75",
900: "#164E63",
950: "#083344",
foreground: "hsl(var(--secondary-foreground))", // shadcn/ui의 foreground 변수 사용
},
accent: {
DEFAULT: "#F59E0B", // Tailwind amber-500
50: "#FFFBEB",
100: "#FEF3C7",
200: "#FDE68A",
300: "#FCD34D",
400: "#FBBF24",
500: "#F59E0B",
600: "#D97706",
700: "#B45309",
800: "#92400E",
900: "#78350F",
950: "#451A03",
foreground: "hsl(var(--accent-foreground))", // shadcn/ui의 foreground 변수 사용
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
},
borderRadius: {
lg: "var(--radius)", // shadcn/ui의 radius 변수 사용
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
fontFamily: {
sans: [
"Pretendard", // 선호하는 한국어 폰트 (예: Pretendard)
"Noto Sans KR", // 대체 한국어 폰트
"Inter", // 기존 영문 폰트
"system-ui",
"Avenir",
"Helvetica",
"Arial",
"sans-serif",
],
},
// shadcn/ui의 애니메이션 키프레임 및 애니메이션 정의 (필요한 경우 추가)
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
},
plugins: [
require("tailwindcss-animate"), // shadcn/ui 애니메이션 플러그인
require("@tailwindcss/forms"), // 폼 요소 스타일링 플러그인
// 사용자 정의 유틸리티 플러그인 (예: 스크롤바 숨김)
({ addUtilities }) => {
addUtilities({
".no-scrollbar": {
"-ms-overflow-style": "none", // IE and Edge
"scrollbar-width": "none", // Firefox
"&::-webkit-scrollbar": {
display: "none", // Chrome, Safari, Opera
},
},
})
},
],
}