-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
114 lines (114 loc) · 3.61 KB
/
tailwind.config.js
File metadata and controls
114 lines (114 loc) · 3.61 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
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
107
108
109
110
111
112
113
114
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: [
'./index.html',
'./src/**/*.{js,ts,jsx,tsx}',
],
theme: {
container: {
center: true,
padding: '2rem',
screens: {
'2xl': '1400px',
},
},
extend: {
colors: {
border: 'var(--color-border)', // slate-200
input: 'var(--color-input)', // slate-200
ring: 'var(--color-ring)', // blue-800
background: 'var(--color-background)', // slate-50
foreground: 'var(--color-foreground)', // slate-900
primary: {
DEFAULT: 'var(--color-primary)', // blue-800
foreground: 'var(--color-primary-foreground)', // white
},
secondary: {
DEFAULT: 'var(--color-secondary)', // slate-500
foreground: 'var(--color-secondary-foreground)', // white
},
destructive: {
DEFAULT: 'var(--color-destructive)', // red-600
foreground: 'var(--color-destructive-foreground)', // white
},
muted: {
DEFAULT: 'var(--color-muted)', // slate-100
foreground: 'var(--color-muted-foreground)', // slate-600
},
accent: {
DEFAULT: 'var(--color-accent)', // sky-500
foreground: 'var(--color-accent-foreground)', // white
},
popover: {
DEFAULT: 'var(--color-popover)', // white
foreground: 'var(--color-popover-foreground)', // slate-900
},
card: {
DEFAULT: 'var(--color-card)', // white
foreground: 'var(--color-card-foreground)', // slate-900
},
success: {
DEFAULT: 'var(--color-success)', // emerald-600
foreground: 'var(--color-success-foreground)', // white
},
warning: {
DEFAULT: 'var(--color-warning)', // amber-600
foreground: 'var(--color-warning-foreground)', // white
},
error: {
DEFAULT: 'var(--color-error)', // red-600
foreground: 'var(--color-error-foreground)', // white
},
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
fontFamily: {
sans: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
},
keyframes: {
shimmer: {
'0%': { backgroundPosition: '-1000px 0' },
'100%': { backgroundPosition: '1000px 0' },
},
'fade-in': {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
'slide-in-right': {
'0%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(0)' },
},
'slide-in-left': {
'0%': { transform: 'translateX(-100%)' },
'100%': { transform: 'translateX(0)' },
},
},
animation: {
shimmer: 'shimmer 1.5s linear infinite',
'fade-in': 'fade-in 0.2s ease-out',
'slide-in-right': 'slide-in-right 0.2s ease-out',
'slide-in-left': 'slide-in-left 0.2s ease-out',
},
transitionTimingFunction: {
'ease-out': 'cubic-bezier(0, 0, 0.2, 1)',
'ease-in-out': 'cubic-bezier(0.4, 0, 0.2, 1)',
'spring': 'cubic-bezier(0.34, 1.56, 0.64, 1)',
},
transitionDuration: {
'150': '150ms',
'200': '200ms',
'300': '300ms',
},
},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms'),
require('tailwindcss-animate'),
],
}