-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
48 lines (47 loc) · 1.08 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
const plugin = require('tailwindcss/plugin');
module.exports = {
prefix: '',
important: false,
content: ['./views/**/*.twig'],
separator: ':',
theme: {
/**
* Use Wordpress Breakpoints
* https://github.com/WordPress/gutenberg/blob/master/packages/base-styles/_breakpoints.scss
*/
container: {
center: true,
},
screens: {
sm: '600px',
md: '782px',
lg: '960px',
xl: '1080px',
wide: '1280px',
huge: '1440px',
},
extend: {
fontFamily: {
display: '"Roboto Slab", sans-serif',
},
spacing: {
content: 'var(--wp--style--global--content-size)',
wide: 'var(--wp--style--global--wide-size)',
'wp-gap': 'var(--wp--style--block-gap)',
},
fontSize: {
'wp-small': 'var(--wp--preset--font-size--small)',
'wp-medium': 'var(--wp--preset--font-size--medium)',
'wp-large': 'var(--wp--preset--font-size--large)',
'wp-x-large': 'var(--wp--preset--font-size--x-large)',
},
},
},
variants: {},
plugins: [
require('@tailwindcss/forms'),
plugin(function ({ addVariant }) {
addVariant('admin', '.admin-bar &');
}),
],
};