-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
115 lines (114 loc) · 3.2 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
const plugin = require('tailwindcss/plugin');
module.exports = {
content: ['./tbx/**/*.{py,html}', './tbx/static_src/**/*.{js,ts,tsx,vue}'],
theme: {
// Properties directly inside of theme will overwrite all tailwinds default properties for that attribute
container: {
center: true,
padding: {
DEFAULT: '1.25rem',
sm: '2.5rem',
},
},
colors: {
primary: '#444',
white: '#FFF',
black: '#000',
offBlack: '#141414',
red: '#F00',
inherit: 'inherit',
current: 'currentColor',
transparent: 'transparent',
background: 'var(--color--background)',
heading: 'var(--color--heading)',
},
screens: {
sm: '410px',
md: '599px',
lg: '1023px',
xlg: '1280px',
xxlg: '1800px',
},
// Properties inside of extend will keep tailwinds existing properties for the attribute and add to them
// https://tailwindcss.com/docs/theme
extend: {
// Any changes here will also need to be made in _variables.scss
spacing: {
spacerMini: '15px',
spacerMiniPlus: '20px',
spacerSmall: '30px',
spacerMedium: '60px',
spacerLarge: '120px',
spacer: '160px',
spacerHalf: '80px',
spacerXLarge: '240px',
spacerMassive: '360px',
},
},
},
// This tells tailwind which plugins specifically to use
corePlugins: [
'accessibility',
'alignContent',
'alignItems',
'alignSelf',
'container',
'margin',
'padding',
'appearance',
'backgroundColor',
'borderRadius',
'boxShadow',
'display',
'flex',
'flexBasis',
'flexDirection',
'flexGrow',
'flexShrink',
'flexWrap',
'fontSize',
'fontStyle',
'fontWeight',
'gap',
'gridAutoColumns',
'gridAutoFlow',
'gridAutoRows',
'gridColumn',
'gridColumnEnd',
'gridColumnStart',
'gridRow',
'gridRowEnd',
'gridRowStart',
'gridTemplateColumns',
'gridTemplateRows',
'inset',
'justifyContent',
'justifyItems',
'justifySelf',
'margin',
'opacity',
'order',
'overflow',
'padding',
'position',
'preflight',
'space',
'textAlign',
'textColor',
'textDecoration',
'textDecorationColor',
'visibility',
'zIndex',
],
plugins: [
/**
* forced-colors media query for Windows High-Contrast mode support
* See:
* - https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors
* - https://github.com/tailwindlabs/tailwindcss/blob/v3.0.23/src/corePlugins.js#L168-L171
*/
plugin(({ addVariant }) => {
addVariant('forced-colors', '@media (forced-colors: active)');
}),
],
};