-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
140 lines (139 loc) · 3.98 KB
/
Copy pathtailwind.config.js
File metadata and controls
140 lines (139 loc) · 3.98 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
134
135
136
137
138
139
140
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['class'],
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./features/**/*.{js,ts,jsx,tsx,mdx}',
'./shared/**/*.{js,ts,jsx,tsx,mdx}',
'./page/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
// Airbnb-inspired design tokens from DESIGN.md
primary: {
DEFAULT: 'var(--color-primary)', // #ff385c
active: 'var(--color-primary-active)', // #e00b41
disabled: 'var(--color-primary-disabled)', // #ffd1da
light: 'var(--color-primary-disabled)',
foreground: 'hsl(var(--primary-foreground))'
},
secondary: {
DEFAULT: 'var(--color-surface-soft)', // #f7f7f7
foreground: 'hsl(var(--secondary-foreground))'
},
accent: {
DEFAULT: 'var(--color-accent)', // #ff385c
foreground: 'hsl(var(--accent-foreground))'
},
background: 'var(--color-background)', // #ffffff
foreground: 'hsl(var(--foreground))',
text: {
DEFAULT: 'var(--color-text)', // #222222
body: 'var(--color-body)', // #3f3f3f
light: 'var(--color-text-light)', // #6a6a6a
muted: 'var(--color-muted-soft)', // #929292
foreground: 'hsl(var(--foreground))'
},
border: 'var(--color-border)', // #dddddd
white: 'var(--color-white)', // #FFFFFF
canvas: 'var(--color-canvas)',
surface: {
soft: 'var(--color-surface-soft)',
strong: 'var(--color-surface-strong)'
},
error: 'var(--color-error)', // #c13515
success: 'var(--color-success)', // #008a05
warning: 'var(--color-warning)', // #b26a00
luxe: 'var(--color-luxe)',
plus: 'var(--color-plus)',
// 기존 다크모드 관련 색상
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))'
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))'
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))'
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))'
},
chart: {
'1': 'hsl(var(--chart-1))',
'2': 'hsl(var(--chart-2))',
'3': 'hsl(var(--chart-3))',
'4': 'hsl(var(--chart-4))',
'5': 'hsl(var(--chart-5))'
}
},
fontFamily: {
cereal: [
'"Airbnb Cereal VF"',
'Circular',
'Inter',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'sans-serif'
],
// Keep the old utility name mapped to the new system to avoid broad call-site churn.
pretendard: [
'"Airbnb Cereal VF"',
'Circular',
'Inter',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'sans-serif'
],
barlow: [
'Barlow',
'sans-serif'
]
},
boxShadow: {
card: 'var(--box-shadow)',
hover: 'var(--box-shadow-hover)'
},
animation: {
'float-up': 'float-up 0.5s ease-out',
blink: 'blink 1s infinite'
},
keyframes: {
'float-up': {
'0%': {
transform: 'translateY(0) translateX(-50%)',
opacity: '1'
},
'100%': {
transform: 'translateY(-20px) translateX(-50%)',
opacity: '0'
}
},
blink: {
'50%': {
opacity: '0.5'
}
}
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)'
}
}
},
plugins: [require("tailwindcss-animate")],
};