-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.js
102 lines (100 loc) · 2.67 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
// A17 tailwind plugins
const {
Setup,
ApplyColorVariables,
ColorTokens,
Components,
Container,
CssInJs,
DevTools,
FullBleedScroller,
GridGap,
GridLayout,
GridLine,
InteractionMediaQueries,
Keyline,
Layout,
PseudoElements,
RatioBox,
Scrollbar,
Spacing,
SpacingTokens,
Typography,
Underline
} = require('@area17/a17-tailwind-plugins')
// conf
const feConfig = require('./frontend.config.json')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./resources/frontend/**/*.js',
'./resources/views/**/*.blade.php'
],
corePlugins: {
container: false
},
plugins: [
Setup,
ColorTokens,
Components,
Container,
CssInJs,
DevTools,
FullBleedScroller,
GridGap,
GridLayout,
GridLine,
InteractionMediaQueries,
Keyline,
Layout,
PseudoElements,
RatioBox,
Scrollbar,
Spacing,
Typography,
Underline
],
theme: {
screens: feConfig.structure.breakpoints,
mainColWidths: feConfig.structure.container,
innerGutters: feConfig.structure.gutters.inner,
outerGutters: feConfig.structure.gutters.outer,
columnCount: feConfig.structure.columns,
fontFamilies: feConfig.typography.families,
typesets: feConfig.typography.typesets,
spacingGroups: feConfig.spacing.groups,
spacing: SpacingTokens(feConfig.spacing.tokens),
colors: feConfig.color.tokens,
borderColor: ApplyColorVariables(
feConfig.color.tokens,
feConfig.color.border
),
textColor: ApplyColorVariables(
feConfig.color.tokens,
feConfig.color.text
),
backgroundColor: ApplyColorVariables(
feConfig.color.tokens,
feConfig.color.background
),
underlineColor: ApplyColorVariables(
feConfig.color.tokens,
feConfig.color.underline
),
ratios: feConfig.ratios,
components: feConfig.components,
css: feConfig.css,
extend: {
minHeight: ({ theme }) => theme('spacing'),
maxWidth: ({ theme }) => theme('spacing'),
spacing: {
'safe-top': 'env(safe-area-inset-top)',
'safe-bottom': 'env(safe-area-inset-bottom)',
'safe-left': 'env(safe-area-inset-left)',
'safe-right': 'env(safe-area-inset-right)',
gutter: 'var(--inner-gutter)',
'outer-gutter': 'var(--outer-gutter, 0px)'
}
}
}
}