-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
78 lines (76 loc) · 2.01 KB
/
tailwind.config.mjs
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
/** @type {import('tailwindcss').Config} */
import { withTV } from 'tailwind-variants/transformer'
const config = withTV({
darkMode: ['class'],
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,ts,tsx}"],
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px',
},
},
extend: {
colors: {
light: 'hsl(var(--light))',
dark: 'hsl(var(--dark))',
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
toggle: 'hsl(var(--toggle))',
bg: 'hsl(var(--bg))',
fg: 'hsl(var(--fg))',
primary: {
DEFAULT: 'hsl(var(--primary))',
fg: 'hsl(var(--primary-fg))',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
fg: 'hsl(var(--secondary-fg))'
},
tertiary: {
DEFAULT: 'hsl(var(--tertiary))',
fg: 'hsl(var(--tertiary-fg))'
},
success: {
DEFAULT: 'hsl(var(--success))',
fg: 'hsl(var(--success-fg))'
},
info: {
DEFAULT: 'hsl(var(--info))',
fg: 'hsl(var(--info-fg))'
},
danger: {
DEFAULT: 'hsl(var(--danger))',
fg: 'hsl(var(--danger-fg))'
},
warning: {
DEFAULT: 'hsl(var(--warning))',
fg: 'hsl(var(--warning-fg))'
},
muted: {
DEFAULT: 'hsl(var(--muted))',
fg: 'hsl(var(--muted-fg))'
},
overlay: {
DEFAULT: 'hsl(var(--overlay))',
fg: 'hsl(var(--overlay-fg))'
}
},
borderRadius: {
'3xl': "calc(var(--radius) + 6px)",
'2xl': "calc(var(--radius) + 4px)",
xl: "calc(var(--radius) + 2px)",
lg: "calc(var(--radius))",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)"
},
},
},
plugins: [
require('tailwindcss-animate'),
require('tailwindcss-react-aria-components'),
],
})
export default config