forked from dubinc/dub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
161 lines (161 loc) · 5.58 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{js,ts,jsx,tsx}",
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
extend: {
screens: {
xs: "420px",
},
typography: {
DEFAULT: {
css: {
"blockquote p:first-of-type::before": { content: "none" },
"blockquote p:first-of-type::after": { content: "none" },
},
},
},
fontFamily: {
display: ["var(--font-satoshi)", "system-ui", "sans-serif"],
default: ["var(--font-inter)", "system-ui", "sans-serif"],
},
animation: {
// Modal
"scale-in": "scale-in 0.2s cubic-bezier(0.16, 1, 0.3, 1)",
"fade-in": "fade-in 0.3s ease-out forwards",
// Input Select
"input-select-slide-up":
"input-select-slide-up 0.2s cubic-bezier(0.16, 1, 0.3, 1)",
"input-select-slide-down":
"input-select-slide-down 0.2s cubic-bezier(0.16, 1, 0.3, 1)",
// Tooltip
"slide-up-fade": "slide-up-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
"slide-right-fade":
"slide-right-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
"slide-down-fade": "slide-down-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
"slide-left-fade": "slide-left-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
// Navigation menu
"enter-from-right": "enter-from-right 0.25s ease",
"enter-from-left": "enter-from-left 0.25s ease",
"exit-to-right": "exit-to-right 0.25s ease",
"exit-to-left": "exit-to-left 0.25s ease",
"scale-in-content": "scale-in-content 0.2s ease",
"scale-out-content": "scale-out-content 0.2s ease",
// Accordion
"accordion-down": "accordion-down 300ms cubic-bezier(0.87, 0, 0.13, 1)",
"accordion-up": "accordion-up 300ms cubic-bezier(0.87, 0, 0.13, 1)",
// Custom wiggle animation
wiggle: "wiggle 0.75s infinite",
},
keyframes: {
// Modal
"scale-in": {
"0%": { transform: "scale(0.95)" },
"100%": { transform: "scale(1)" },
},
"fade-in": {
"0%": { opacity: 0 },
"100%": { opacity: 1 },
},
// Input Select
"input-select-slide-up": {
"0%": { transform: "translateY(-342px)" },
"100%": { transform: "translateY(-350px)" },
},
"input-select-slide-down": {
"0%": { transform: "translateY(0px)" },
"100%": { transform: "translateY(8px)" },
},
// Tooltip
"slide-up-fade": {
"0%": { opacity: 0, transform: "translateY(2px)" },
"100%": { opacity: 1, transform: "translateY(0)" },
},
"slide-right-fade": {
"0%": { opacity: 0, transform: "translateX(-2px)" },
"100%": { opacity: 1, transform: "translateX(0)" },
},
"slide-down-fade": {
"0%": { opacity: 0, transform: "translateY(-2px)" },
"100%": { opacity: 1, transform: "translateY(0)" },
},
"slide-left-fade": {
"0%": { opacity: 0, transform: "translateX(2px)" },
"100%": { opacity: 1, transform: "translateX(0)" },
},
// Navigation menu
"enter-from-right": {
"0%": { transform: "translateX(200px)", opacity: 0 },
"100%": { transform: "translateX(0)", opacity: 1 },
},
"enter-from-left": {
"0%": { transform: "translateX(-200px)", opacity: 0 },
"100%": { transform: "translateX(0)", opacity: 1 },
},
"exit-to-right": {
"0%": { transform: "translateX(0)", opacity: 1 },
"100%": { transform: "translateX(200px)", opacity: 0 },
},
"exit-to-left": {
"0%": { transform: "translateX(0)", opacity: 1 },
"100%": { transform: "translateX(-200px)", opacity: 0 },
},
"scale-in-content": {
"0%": { transform: "rotateX(-30deg) scale(0.9)", opacity: 0 },
"100%": { transform: "rotateX(0deg) scale(1)", opacity: 1 },
},
"scale-out-content": {
"0%": { transform: "rotateX(0deg) scale(1)", opacity: 1 },
"100%": { transform: "rotateX(-10deg) scale(0.95)", opacity: 0 },
},
// Accordion
"accordion-down": {
from: { height: 0 },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 },
},
// Custom wiggle animation
wiggle: {
"0%, 100%": {
transform: "translateX(0%)",
transformOrigin: "50% 50%",
},
"15%": { transform: "translateX(-4px) rotate(-4deg)" },
"30%": { transform: "translateX(6px) rotate(4deg)" },
"45%": { transform: "translateX(-6px) rotate(-2.4deg)" },
"60%": { transform: "translateX(2px) rotate(1.6deg)" },
"75%": { transform: "translateX(-1px) rotate(-0.8deg)" },
},
},
colors: {
brown: {
50: "#fdf8f6",
100: "#f2e8e5",
200: "#eaddd7",
300: "#e0cec7",
400: "#d2bab0",
500: "#bfa094",
600: "#a18072",
700: "#977669",
800: "#846358",
900: "#43302b",
},
},
},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
require("tailwind-scrollbar-hide"),
require("tailwindcss-radix")(),
],
};