-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
115 lines (114 loc) · 2.83 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
import colors from 'tailwindcss/colors';
import { Config } from 'tailwindcss';
export default {
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./ui/**/*.{js,ts,jsx,tsx,mdx}',
],
// future: {
// hoverOnlyWhenSupported: true,
// },
options: {
safelist: ['layout.css'],
},
darkMode: 'class',
theme: {
extend: {
// https://vercel.com/design/color,
colors: {
gray: colors.zinc,
'gray-1000': 'rgb(17,17,19)',
'gray-1100': 'rgb(10,10,11)',
'white-smoke': '#F5F5F5',
'light-grey': '#D6D6D6',
'red-tu': '#E4154B',
'custom-red': '#E4154B',
'custom-gray': '#D6D6D6',
'custom-black': '#1B1B1E',
'custom-orange': '#FAA916',
'custom-white': '#FIEDEE',
'custom-green': '#8AA29E',
'custom-blue': '#1D4960',
'custom-blue-dark': '#1D4960',
'custom-bone': '#DAD2BC',
'custom-isabelline': '#F5F1ED',
vercel: {
blue: '#FF0080',
cyan: '#50E3C2',
orange: '#FFA31A',
violet: '#7928CA',
},
fontFace: {
'font-display': 'swap',
},
},
backgroundImage: ({ theme }) => ({
'vc-border-gradient': `radial-gradient(at left top, ${theme(
'colors.gray.500'
)}, 50px, ${theme('colors.gray.800')} 50%)`,
'custom-background': "url('/test.jpg')",
}),
keyframes: ({ theme }) => ({
rerender: {
'0%': {
['border-color']: theme('colors.vercel.blue'),
},
'40%': {
['border-color']: theme('colors.vercel.blue'),
},
},
highlight: {
'0%': {
background: theme('colors.vercel.blue'),
color: theme('colors.white'),
},
'40%': {
background: theme('colors.vercel.blue'),
color: theme('colors.white'),
},
},
loading: {
'0%': {
opacity: '.2',
},
'20%': {
opacity: '1',
transform: 'translateX(1px)',
},
to: {
opacity: '.2',
},
},
shimmer: {
'100%': {
transform: 'translateX(100%)',
},
},
translateXReset: {
'100%': {
transform: 'translateX(0)',
},
},
fadeToTransparent: {
'0%': {
opacity: '1',
},
'40%': {
opacity: '1',
},
'100%': {
opacity: '0',
},
},
}),
},
},
variants: {
extend: {
display: ['group-hover'],
opacity: ['group-hover'],
},
},
plugins: [require('@tailwindcss/typography'), require('@tailwindcss/forms')],
} satisfies Config;