-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtailwind.config.js
More file actions
66 lines (65 loc) · 2.17 KB
/
tailwind.config.js
File metadata and controls
66 lines (65 loc) · 2.17 KB
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
import containerQueries from '@tailwindcss/container-queries'
import typography from '@tailwindcss/typography'
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ['class'],
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
border: 'hsl(var(--border))',
card: 'hsl(var(--card))',
'card-foreground': 'hsl(var(--card-foreground))',
muted: 'hsl(var(--muted))',
'muted-foreground': 'hsl(var(--muted-foreground))',
accent: 'hsl(var(--accent))',
'accent-foreground': 'hsl(var(--accent-foreground))',
primary: 'hsl(var(--primary))',
'primary-foreground': 'hsl(var(--primary-foreground))',
destructive: 'hsl(var(--destructive))',
'destructive-foreground': 'hsl(var(--destructive-foreground))',
success: 'hsl(var(--success))',
'success-foreground': 'hsl(var(--success-foreground))',
warning: 'hsl(var(--warning))',
'warning-foreground': 'hsl(var(--warning-foreground))',
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 0.125rem)',
sm: 'calc(var(--radius) - 0.25rem)',
},
boxShadow: {
'sm': 'var(--shadow-sm)',
'md': 'var(--shadow-md)',
'lg': 'var(--shadow-lg)',
},
fontSize: {
'2xs': ['0.625rem', '0.875rem'], // 10px/14px at 1rem=16px
'xs': ['0.6875rem', '1rem'], // 11px/16px
'sm': ['0.8125rem', '1.25rem'], // 13px/20px
'base': ['0.875rem', '1.375rem'], // 14px/22px
'lg': ['1rem', '1.5rem'], // 16px/24px
'xl': ['1.125rem', '1.75rem'], // 18px/28px
},
spacing: {
'18': '4.5rem',
'88': '22rem',
},
transitionDuration: {
'250': '250ms',
},
animation: {
'pulse-subtle': 'pulse-subtle 2s ease-in-out infinite',
},
keyframes: {
'pulse-subtle': {
'0%, 100%': { opacity: 1 },
'50%': { opacity: 0.7 },
},
},
},
},
plugins: [containerQueries, typography],
}