-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
78 lines (75 loc) · 2.25 KB
/
tailwind.config.js
File metadata and controls
78 lines (75 loc) · 2.25 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
import theme from './src/theme';
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"src/**/*.{ts,tsx,js,jsx}",
],
theme: {
spacing: theme.spacing,
gap: theme.sizes,
borderRadius: theme.radii,
borderWidth: theme.borderWidth,
colors: {
primary: theme.colors.primary,
secondary: theme.colors.secondary,
success: theme.colors.success,
warning: theme.colors.warning,
error: theme.colors.error,
neutral: theme.colors.neutral,
surface: theme.colors.surface,
text: theme.colors.text,
},
borderColor: {
primary: theme.colors.primary,
secondary: theme.colors.secondary,
success: theme.colors.success,
warning: theme.colors.warning,
error: theme.colors.error,
neutral: theme.colors.neutral,
surface: theme.colors.surface,
text: theme.colors.text,
},
padding: theme.sizes,
margin: theme.sizes,
fontFamily: theme.typography.fontFamily,
fontSize: theme.typography.fontSize,
fontWeight: theme.typography.fontWeight,
lineHeight: theme.typography.lineHeight,
letterSpacing: theme.typography.letterSpacing,
boxShadow: theme.shadows,
screens: theme.breakpoints,
scale: {
0: '0',
1: '1',
2: '1.5',
3: '2',
},
zIndex: theme.zIndex,
transitionProperty: {
'all': 'all',
'colors': 'color, background-color, border-color, text-decoration-color, fill, stroke',
'opacity': 'opacity',
'shadow': 'box-shadow',
'transform': 'transform',
},
transitionDuration: theme.motion.duration,
transitionTimingFunction: theme.motion.easing,
container: {
center: true,
padding: theme.layout.container.padding,
screens: theme.layout.container.maxWidth,
},
borderWidth: theme.borderWidth,
opacity: theme.opacity,
width: theme.sizes,
height: theme.sizes,
backgroundImage: {
'gradient-primary': `linear-gradient(to bottom, ${theme.colors.primary[500]}, ${theme.colors.primary[600]})`,
},
},
future: {
hoverOnlyWhenSupported: true
},
plugins: [],
}