-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.js
75 lines (73 loc) · 2.02 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
const customWidths = {}
for (let i = 1; i <= 12; i++) {
customWidths[
`${i}/12-x`
] = `calc((100vw - var(--layout-max-width) - var(--grid-gap)) / 2 + var(--layout-max-width) / 12 * ${i} + ( var(--grid-gap) / 2 ))`
}
module.exports = {
mode: 'jit',
purge: ['./templates/**/*.twig', './src/js/**/*.js', './components/**/*.twig'],
darkMode: false,
corePlugins: {
container: false,
},
theme: {
extend: {
spacing: {
gap: 'var(--grid-gap)',
},
fontSize: {
xsmall: 'var(--typo-size-xsmall)',
small: 'var(--typo-size-small)',
base: 'var(--typo-size-base)',
medium: 'var(--typo-size-medium)',
large: 'var(--typo-size-large)',
xlarge: 'var(--typo-size-xlarge)',
},
width: {
max: 'var(--layout-max-width)',
...customWidths,
},
maxWidth: {
max: 'var(--layout-max-width)',
},
colors: {
primary: 'var(--color-primary)',
secondary: 'var(--color-secondary)',
},
fontFamily: {
default: 'var(--typo-family-default)',
display: 'var(--typo-family-display)',
},
lineHeight: {
small: 'var(--line-height-small)',
default: 'var(--line-height-default)',
},
spacing: {
gap: 'var(--grid-gap)',
xs: 'var(--spacing-xsmall)',
sm: 'var(--spacing-small)',
bs: 'var(--spacing-base)',
md: 'var(--spacing-medium)',
lg: 'var(--spacing-large)',
xl: 'var(--spacing-xlarge)',
'1/12': 'calc(100% / 12)',
'2/12': 'calc(100% / 12 * 2)',
'3/12': 'calc(100% / 12 * 3)',
'4/12': 'calc(100% / 12 * 4)',
'5/12': 'calc(100% / 12 * 5)',
'6/12': 'calc(100% / 12 * 6)',
'7/12': 'calc(100% / 12 * 7)',
'8/12': 'calc(100% / 12 * 8)',
'9/12': 'calc(100% / 12 * 9)',
'10/12': 'calc(100% / 12 * 10)',
'11/12': 'calc(100% / 12 * 11)',
full: '100%',
},
},
},
variants: {
extend: {},
},
plugins: [],
}