-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
36 lines (33 loc) · 920 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
const defaultTheme = require('tailwindcss/defaultTheme')
const {
themeConfig: { colors },
} = require('./tailwind.configs')
const sizes = ['minWidth', 'maxWidth', 'minHeight', 'maxHeight']
module.exports = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
montserrat: ['Montserrat', ...defaultTheme.fontFamily.serif],
ssp: ['Source Sans Pro', ...defaultTheme.fontFamily.sans],
},
gridTemplateColumns: {
auto: 'repeat(auto-fill, minmax(0, 1fr))',
},
...sizes.reduce((acc, key) => {
acc[key] = ({ theme }) => ({ ...theme('spacing') })
return acc
}, {}),
},
colors,
},
content: [
'./src/components/**/*.{js,vue,ts}',
'./src/layouts/**/*.vue',
'./src/pages/**/*.vue',
'./plugins/**/*.{js,ts}',
'./src/app.vue',
// './nuxt.config.{js,ts}',
],
plugins: [require('@tailwindcss/line-clamp')],
}