-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
86 lines (74 loc) · 1.88 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
/**
* Tailwind config
*/
const plugin = require('tailwindcss/plugin')
const fontSize = require('./tailwind/tailwind.config.fontSize');
const minHeight = require('./tailwind/tailwind.config.minHeight');
const minWidth = require('./tailwind/tailwind.config.minWidth');
const spacing = require('./tailwind/tailwind.config.spacing');
const transitionDuration = require('./tailwind/tailwind.config.transitionDuration');
const transitionProperty = require('./tailwind/tailwind.config.transitionProperty');
const transitionTimingFunction = require('./tailwind/tailwind.config.transitionTimingFunction');
const lineHeight = {
0: '0',
7.75: `${31 / 16}rem`,
11: `${44 / 16}rem`,
};
const flexGrow = {
0.2: 0.2,
0.8: 0.8,
};
const colors = {
black: '#242021',
gray: { dark: '#939393', light: '#EAE9E8' },
red: {
bright: '#FD4D2E',
'very-dark': '#242021',
},
};
const borderRadius = {
'5xl': `${40 / 16}rem`,
};
const textIndent = {
'1/3': `${(1 / 3) * 100}%`,
};
const letterSpacing = {
tight: '-0.01em',
};
const zIndex = {
5: '5',
};
module.exports = {
content: ['./views/**/*.twig', './src/**/*.{html,js}', './includes/**/*.php'],
corePlugins: {
container: false,
},
theme: {
fontFamily: {
body: ['Neue Montreal', 'sans-serif'],
},
extend: {
colors,
borderRadius,
flexGrow,
letterSpacing,
lineHeight,
minWidth,
minHeight,
spacing,
textIndent,
zIndex,
fontSize,
transitionDuration,
transitionProperty,
transitionTimingFunction
},
},
plugins: [
plugin(({ addVariant }) => addVariant('is-loading', 'html.is-loading &')),
plugin(({ addVariant }) => addVariant('is-loaded', 'html.is-loaded &')),
plugin(({ addVariant }) => addVariant('is-first-load', 'html.is-first-load &')),
plugin(({ addVariant }) => addVariant('has-dom-ready', 'html.has-dom-ready &')),
plugin(({ addVariant }) => addVariant('is-inview', ' &.is-inview')),
],
};