-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
146 lines (144 loc) · 3.53 KB
/
tailwind.config.js
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
141
142
143
144
145
146
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { transformGroupSelector } = require("utility-class-components")
/** @type {import('tailwindcss').Config} */
module.exports = {
content: {
files: ["./src/**/*.{js,ts,jsx,tsx}", "./_posts/**/*.{md,mdx}"],
transform: {
ts: (code) => {
code = transformGroupSelector(code)
return code
},
tsx: (code) => {
code = transformGroupSelector(code)
return code
},
},
},
darkMode: "class",
plugins: [],
theme: {
extend: {
animation: {
"bg-gradient": "bg-gradient 3s linear infinite",
shake: "shake 0.2s",
show: "show 0.2s ease",
},
backgroundImage: {
intro:
"linear-gradient( -225deg, #3c2395 0%, #44107a 17%, #ff1361 33%, #fff800 50%, #ff1361 66%, #44107a 83%, #3c2395 100%)",
},
boxShadow: {
"default-dark":
"rgba(220, 205, 205, 0.25) 0px 2px 5px -1px, rgba(255, 255, 255, 0.3) 0px 1px 3px -1px",
"default-light":
"rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px",
"line-dark": "rgba(200, 200, 200, 0.25)",
"line-light": "rgba(17, 17, 26, 0.1)",
},
colors: {
accent: {
dark: "#3b96ff",
light: "#0070f3",
},
bg: {
dark: "#121212",
light: "#fcfcfc",
},
default: {
dark: "#efefef",
light: "#121212",
sub: {
dark: "rgb(177, 177, 177)",
light: "rgb(140, 140, 140)",
},
},
nav: {
bg: { dark: "#6a6a6a14", light: "#e7e7e767" },
"bg-no-transparent": { dark: "#191919", light: "#f3f3f3" },
},
post: {
element: {
bg: {
dark: "#1e1e1e",
light: "rgb(240, 240, 240)",
},
},
},
resume: {
accent: { dark: "#ffea00", light: "#d9730d" },
badge: {
bg: { dark: "#ffffff22", light: "#eee" },
text: { dark: "#ffffff99", light: "#666" },
},
text: {
dark: "#ccc",
dim: {
dark: "#858585",
light: "#585858",
},
light: "#43423b",
print: "#111",
strong: {
dark: "#ffea00",
light: "#d9730d",
},
},
},
},
keyframes: {
"bg-gradient": {
"100%": {
"background-position": "200% center",
},
},
shake: {
"0%, 100%": {
transform: "translateX(0)",
},
"25%": {
transform: "translateX(-10%)",
},
"75%": {
transform: "translateX(10%)",
},
},
show: {
"0%": {
opacity: 0,
transform: "translateX(50%)",
},
"100%": {
opacity: 1,
transform: "translateX(0)",
},
},
},
maxWidth: {
800: "50rem",
},
spacing: {
nav: "3.125rem",
},
},
fontFamily: {
mono: ["var(--font-d2coding)"],
poppins: ["var(--font-poppins)"],
sans: ["var(--font-pretendard)"],
serif: ["var(--font-noto-serif-kr)"],
},
lineHeight: {
1.2: "1.2",
},
screens: {
ad: {
max: "500px",
},
mobile: {
max: "800px",
},
pc: "800px",
resume: "1024px",
},
},
}