-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
41 lines (35 loc) · 949 Bytes
/
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
const twForms = require('@tailwindcss/custom-forms')
function owl({ addUtilities, config, e }) {
const newUtilities = {}
const spacing = config('theme.spacing')
Object.keys(spacing).forEach(key => {
const className = `.${e(`o-${key}`)} > * + *`
const marginTop = spacing[key]
// Horizontal spacing too!
const classNameHorizontal = `.${e(`oh-${key}`)} > * + *`
const marginLeft = spacing[key]
newUtilities[className] = { marginTop }
newUtilities[classNameHorizontal] = { marginLeft }
})
addUtilities(newUtilities, ['responsive'])
}
/* eslint-disable global-require */
module.exports = {
theme: {
fontFamily: {
sans: 'Source Sans Pro, sans-serif',
serif: 'PT Serif, serif',
mono: 'Fira Mono, monospace',
},
extend: {
fontSize: {
xxs: '.6875rem',
},
flex: {
holy: '1 0 auto',
},
},
},
variants: {},
plugins: [twForms, owl],
}