-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
175 lines (171 loc) · 4.96 KB
/
tailwind.config.ts
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/** @type {import('tailwindcss').Config} */
const plugin = require("tailwindcss/plugin");
const colors = require('tailwindcss/colors')
module.exports = {
content: [
'./pages/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
extend: {
aspectRatio: {
'5/7': '5 / 7',
},
colors: {
'gray-custom': '#151515',
'gray-custom-darker': '#0d0d0d',
'blue-custom': '#4457ce',
'blue-custom-darker': '#232b61',
'background': '#F2F2F2',
'background_2': '#e5e6e7',
'background_3': colors.zinc[300],
'border_color': colors.slate[400],
'primary': '#1A237E',
'primary_2': '#546E7A',
'highlight': '#00ACC1',
// 'dark_background': '#FAFAFA',
// 'dark_background_2': colors.zinc[950],
// 'dark_text':'#4457ce',
// 'dark_background': colors.zinc[800],
// 'dark_background_2': colors.zinc[950],
// 'dark_text': colors.zinc[400],
},
fontFamily: {
display: ["var(--font-sf)", "system-ui", "sans-serif"],
default: ["var(--font-inter)", "system-ui", "sans-serif"],
'open-sans': ['Open Sans', 'sans-serif'],
},
fontSize: {
'xxs': '0.16rem',
},
animation: {
// Fade up and down
"fade-up": "fade-up 0.5s",
"fade-down": "fade-down 0.5s",
// Tooltip
"slide-up-fade": "slide-up-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1)",
"slide-down-fade": "slide-down-fade 0.3s cubic-bezier(0.16, 1, 0.3, 1)",
"wiggle": "wiggle 0.5s ease-in-out infinite",
"underline": 'underline 1s ease-in-out infinite',
'text-clear': 'text-clear 5s forwards',
'text-fade-in': 'text-fade-in 2s forwards',
// Card hover
'card-hover': 'card-hover 0.4s ease-out',
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic': 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
'matte-black': 'linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%)',
'matte-black-radial': 'radial-gradient(circle, #0a0a0a 0%, #1a1a1a 100%)',
},
keyframes: {
// Fade up and down
"fade-up": {
"0%": {
opacity: 0,
transform: "translateY(10px)",
},
"80%": {
opacity: 0.6,
},
"100%": {
opacity: 1,
transform: "translateY(0px)",
},
},
"fade-down": {
"0%": {
opacity: 0,
transform: "translateY(-10px)",
},
"80%": {
opacity: 0.6,
},
"100%": {
opacity: 1,
transform: "translateY(0px)",
},
},
// Tooltip
"slide-up-fade": {
"0%": { opacity: 0, transform: "translateY(6px)" },
"100%": { opacity: 1, transform: "translateY(0)" },
},
"slide-down-fade": {
"0%": { opacity: 0, transform: "translateY(-6px)" },
"100%": { opacity: 1, transform: "translateY(0)" },
},
wiggle: {
'0%, 100%': { transform: 'rotate(-10deg)' },
'50%': { transform: 'rotate(10deg)' },
},
underline: {
'from, to': { width: '0%' },
'50%': { width: '100%' },
},
'text-clear': {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
'text-fade-in': {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
'card-hover': {
'0%': { transform: 'translate(-75%, 16%) rotate(-24deg)' },
'100%': { transform: 'translate(-25%, 8%) rotate(-8deg)' },
},
},
},
},
variants: {
extend: {
animation: ['hover'],
},
},
plugins: [
require("@tailwindcss/forms"),
require("@tailwindcss/typography"),
plugin(({ addVariant }: { addVariant: Function }) => {
addVariant("radix-side-top", '&[data-side="top"]');
addVariant("radix-side-bottom", '&[data-side="bottom"]');
}),
plugin(({ addUtilities }: { addUtilities: (utilities: any) => void }) => {
addUtilities({
'.underline-animation': {
position: 'relative',
'&::after': {
content: '""',
position: 'absolute',
bottom: '0',
left: '0',
width: '0%',
height: '2px',
backgroundColor: 'currentColor',
animation: 'underline 1s ease-in-out infinite',
},
},
'.hidden': {
display: 'none',
},
'.fade-out': {
opacity: 0,
height: 0,
},
'.new-content': {
opacity: 0,
height: 0,
},
'.fade-in': {
opacity: 1,
height: 'auto',
}
});
}),
],
};