-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
115 lines (108 loc) · 2.96 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
114
115
module.exports = {
purge: [
'./src/pages/**/*.js',
'./src/pages/**/*.jsx',
'./src/components/**/*.js',
'./src/components/**/*.jsx',
],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
container: {
screens: {
DEFAULT: '100%',
},
},
gridTemplateColumns: {
12: 'repeat(24, minmax(0, 1fr))',
},
gridColumn: {
'span-1': 'span 2 / span 2',
'span-1.5': 'span 3 / span 3',
'span-2': 'span 4 / span 4',
'span-2.5': 'span 5 / span 5',
'span-3': 'span 6 / span 6',
'span-3.5': 'span 7 / span 7',
'span-4': 'span 8 / span 8',
'span-4.5': 'span 9 / span 9',
'span-5': 'span 10 / span 10',
'span-5.5': 'span 11 / span 11',
'span-6': 'span 12 / span 12',
'span-6.5': 'span 13 / span 13',
'span-7': 'span 14 / span 14',
'span-7.5': 'span 15 / span 15',
'span-8': 'span 16 / span 16',
'span-8.5': 'span 17 / span 17',
'span-9': 'span 18 / span 18',
'span-9.5': 'span 19 / span 19',
'span-10': 'span 20 / span 20',
'span-10.5': 'span 21 / span 21',
'span-11': 'span 22 / span 22',
'span-11.5': 'span 23 / span 23',
'span-12': 'span 24 / span 24',
},
gridColumnStart: {
0.5: '2',
1: '3',
1.5: '4',
2: '5',
2.5: '6',
3: '7',
3.5: '8',
4: '9',
4.5: '10',
5: '11',
5.5: '12',
6: '13',
6.5: '14',
7: '15',
7.5: '16',
8: '17',
8.5: '18',
9: '19',
9.5: '19.5',
10: '20',
10.5: '21',
11: '22',
11.5: '23',
12: '24',
},
fontSize: {
'size-h1': ['4.8rem', '4.8rem'],
'size-h2': ['3.6rem', '3.6rem'],
'size-reg': ['2.2rem', '2.8rem'],
},
// must be in decreasing order
screens: {
// sm320: '320px',
// sm375: '375px',
'4xl': '2250px',
'3xl': '1920px',
'2xl': '1540px',
sm425: { max: '425px' }, // max-width breakpoint
sm375: { max: '375px' }, // max-width breakpoint
sm320: { max: '320px' }, // max-width breakpoint
},
// By default the spacing scale is inherited by the
// padding, margin, width, height, maxHeight, gap, inset, space, and translate core plugins.
spacing: {
// 1: '0.1rem',
// 2: '0.2rem',
},
// custom color pallete imported from tailwind.scss
colors: {
primary: {
DEFAULT: 'var(--primary)', // reddish
},
secondary: 'var(--secondary)', // blackish
tertiary: 'var(--tertiary)', // blueish
},
fontFamily: {
// sourceSansPro: ['"Source Sans Pro"'],
sans: ['"Source Sans Pro"'],
},
},
},
plugins: [require('@tailwindcss/aspect-ratio')],
mode: 'jit', // experimental beta feature
}