-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
80 lines (68 loc) · 1.66 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
import colors from 'tailwindcss/colors'
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
darkMode: 'class',
theme: {
extend: {
// Animation
animation: {
popover: 'popover 0.2s linear',
growing: 'growing .75s linear infinite',
drawer: 'drawer 0.2s linear',
'drawer-reverse': 'drawer-reverse 0.2s linear'
},
// Colors
colors: {
primary: colors.violet[700],
'primary-dark': colors.violet[800],
secondary: colors.gray[200],
'secondary-dark': colors.gray[300],
error: colors.rose[600],
'error-dark': colors.rose[700],
'error-light': colors.rose[100],
success: colors.emerald[500],
'success-dark': colors.emerald[600],
'success-light': colors.emerald[100],
dark: '#101729'
},
// Keyframes
keyframes: {
popover: {
'0%': {
transform: 'scale(0.95)'
},
'100%': {
opacity: 1
}
},
growing: {
'0%': {
transform: 'scale(0)'
},
'100%': {
transform: 'none',
opacity: 1
}
},
drawer: {
'0%': {
transform: 'translateX(-100%)'
},
'100%': {
transform: 'translateX(0)'
}
},
'drawer-reverse': {
'0%': {
transform: 'translateX(100%)'
},
'100%': {
transform: 'translateX(0)'
}
}
}
}
},
plugins: []
}