-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
113 lines (111 loc) · 2.32 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
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
module.exports = {
purge: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
],
darkMode: false, // or 'media' or 'class'
theme: {
primitives: {
spacing: (theme) => {
return theme('utopia.spacingScale')
},
},
switcherPrimitive: {
thresholds: {
'md': '40rem',
},
limits: [
2,
3,
4,
],
},
asidePrimitive: {
asideWidths: {
'16': '4rem',
'40': '10rem',
'96': '24rem',
},
minWidths: {
'2/3': '66%',
'3/4': '75%',
},
},
extend: {
screens: {
'xs': '320px',
},
'utopia': theme => ({
minScreen: theme('screens.xs'),
minSize: 20,
maxScreen: theme('screens.xl'),
maxSize: 24,
maxScale: 1.25,
textSizes: [
'2xs',
'xs',
'sm',
'base',
'lg',
'xl',
'2xl',
'3xl',
'4xl',
'5xl',
],
spacingSizes: {
'none': 0,
'2xs': 0.25,
'xs': 0.5,
'sm': 0.75,
'md': 1,
'lg': 1.5,
'xl': 2,
'2xl': 3,
'3xl': 4,
'4xl': 6,
},
spacingCustomPairs: [
{ sm: 'lg' },
],
}),
typography:(theme) => ({
DEFAULT: {
css: {
fontSize: 'var(--text-size-base)',
h1: {
fontSize: 'var(--text-size-3xl)',
},
h2: {
fontSize: 'var(--text-size-2xl)',
},
h3: {
fontSize: 'var(--text-size-xl)',
},
h4: {
fontSize: 'var(--text-size-lg)',
},
},
}
}),
},
},
variants: {},
plugins: [
require('tailwind-utopia')({
useClamp: false,
prefix: '',
baseTextSize: 'base',
generateSpacing: true,
generateAllSpacingPairs: true,
}),
require('tailwind-measure'),
require('tailwind-primitives'),
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/forms'),
],
corePlugins: {
fontSize: false,
}
}