-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
47 lines (43 loc) · 1.16 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
const defaultTheme = require('tailwindcss/defaultTheme')
const { generateRootCSSVars, generateTailwindColors } = require('./generators')
module.exports = {
mode: 'jit',
content: [
'./src/**/*.php',
'./src/**/*.vue',
'./resources/**/*{js,ts,vue,blade.php}',
],
darkMode: 'class', // or 'media' or 'class'
// safelist: [
// {
// pattern: /^grid-cols-(?:\d)+/,
// pattern: /grid-cols-(?:\d)+/,
// pattern: /^(?:\w+:)?grid-cols-(?:\d)+/,
// variants: ['sm', 'md', 'lg'],
// },
// ],
theme: {
colors: generateTailwindColors(),
extend: {
fontFamily: { sans: ['Nunito Sans', ...defaultTheme.fontFamily.sans] },
fontSize: { xxs: '11px' },
maxWidth: { xxs: '15rem' },
minHeight: theme => theme('spacing'),
minWidth: theme => theme('spacing'),
spacing: {
5: '1.25rem',
9: '2.25rem',
11: '2.75rem',
},
top: theme => theme('inset'),
width: theme => theme('spacing'),
},
},
plugins: [
require('@tailwindcss/container-queries'),
require('@tailwindcss/typography'),
function ({ addBase }) {
addBase({ ':root': generateRootCSSVars() })
},
],
}