-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.config.js
83 lines (82 loc) · 2.14 KB
/
tailwind.config.js
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
const { fontFamily } = require('tailwindcss/defaultTheme');
const {
config: { theme },
} = require('./config');
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['class'],
content: [
'app/**/*.{ts,tsx}',
'components/**/*.{ts,tsx}',
'ui/**/*.{ts,tsx}',
],
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px',
},
},
extend: {
colors: {
border: theme.border,
input: theme.input,
ring: theme.ring,
background: theme.background,
foreground: theme.foreground,
primary: {
DEFAULT: theme.primary.default,
foreground: theme.primary.foreground,
},
secondary: {
DEFAULT: theme.secondary.default,
foreground: theme.secondary.foreground,
},
destructive: {
DEFAULT: theme.destructive.default,
foreground: theme.destructive.foreground,
},
muted: {
DEFAULT: theme.muted.default,
foreground: theme.muted.foreground,
},
accent: {
DEFAULT: theme.accent.default,
foreground: theme.accent.foreground,
},
popover: {
DEFAULT: theme.popover.default,
foreground: theme.popover.foreground,
},
card: {
DEFAULT: theme.card.default,
foreground: theme.card.foreground,
},
},
borderRadius: {
lg: theme.radius,
md: `calc(${theme.radius} - 2px)`,
sm: `calc(${theme.radius} - 4px)`,
},
fontFamily: {
sans: ['var(--font-sans)', ...fontFamily.sans],
},
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 },
},
},
animation: {
'accordion-down': 'accordion-down 0.2s ease-out',
'accordion-up': 'accordion-up 0.2s ease-out',
},
},
},
plugins: [require('tailwindcss-animate')],
};