-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.ts
106 lines (105 loc) · 3.49 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
import typographyPlugin from '@tailwindcss/typography';
import type { Config } from 'tailwindcss';
import animatePlugin from 'tailwindcss-animate';
const config: Config = {
darkMode: 'class',
content: ['./src/components/**/*.{js,ts,jsx,tsx,mdx}', './src/app/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
keyframes: {
'accordion-down': {
from: { height: '0' },
to: { height: 'var(--radix-accordion-content-height)' },
},
'accordion-up': {
from: { height: 'var(--radix-accordion-content-height)' },
to: { height: '0' },
},
'up-down': {
'0%': { transform: 'translateY(-5%)' },
'50%': { transform: 'none' },
'100%': { transform: 'translateY(-5%)' },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
'up-down': 'up-down 5s linear infinite',
},
colors: {
primary: {
app: 'var(--green-1)',
'app-subtle': 'var(--green-2)',
element: 'var(--green-3)',
'element-hover': 'var(--green-4)',
'element-active': 'var(--green-5)',
DEFAULT: 'var(--green-6)',
hover: 'var(--green-7)',
active: 'var(--green-8)',
solid: 'var(--green-9)',
'solid-hover': 'var(--green-10)',
base: 'var(--green-11)',
'high-contrast': 'var(--green-12)',
},
muted: {
app: 'var(--sage-1)',
'app-subtle': 'var(--sage-2)',
element: 'var(--sage-3)',
'element-hover': 'var(--sage-4)',
'element-active': 'var(--sage-5)',
DEFAULT: 'var(--sage-6)',
hover: 'var(--sage-7)',
active: 'var(--sage-8)',
solid: 'var(--sage-9)',
'solid-hover': 'var(--sage-10)',
base: 'var(--sage-11)',
'high-contrast': 'var(--sage-12)',
},
warning: {
app: 'var(--yellow-1)',
'app-subtle': 'var(--yellow-2)',
element: 'var(--yellow-3)',
'element-hover': 'var(--yellow-4)',
'element-active': 'var(--yellow-5)',
DEFAULT: 'var(--yellow-6)',
hover: 'var(--yellow-7)',
active: 'var(--yellow-8)',
solid: 'var(--yellow-9)',
'solid-hover': 'var(--yellow-10)',
base: 'var(--yellow-11)',
'high-contrast': 'var(--yellow-12)',
},
success: {
app: 'var(--green-1)',
'app-subtle': 'var(--green-2)',
element: 'var(--green-3)',
'element-hover': 'var(--green-4)',
'element-active': 'var(--green-5)',
DEFAULT: 'var(--green-6)',
hover: 'var(--green-7)',
active: 'var(--green-8)',
solid: 'var(--green-9)',
'solid-hover': 'var(--green-10)',
base: 'var(--green-11)',
'high-contrast': 'var(--green-12)',
},
danger: {
app: 'var(--red-1)',
'app-subtle': 'var(--red-2)',
element: 'var(--red-3)',
'element-hover': 'var(--red-4)',
'element-active': 'var(--red-5)',
DEFAULT: 'var(--red-6)',
hover: 'var(--red-7)',
active: 'var(--red-8)',
solid: 'var(--red-9)',
'solid-hover': 'var(--red-10)',
base: 'var(--red-11)',
'high-contrast': 'var(--red-12)',
},
},
},
},
plugins: [animatePlugin, typographyPlugin],
};
export default config;