-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
51 lines (48 loc) · 1.2 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
let colors = require('tailwindcss/colors')
const plugin = require('tailwindcss/plugin')
// fix tailwind build issue https://github.com/tailwindlabs/tailwindcss/issues/4690
delete colors.lightBlue
delete colors.coolGray
delete colors.warmGray
delete colors.trueGray
delete colors.blueGray
colors = { ...colors, ...{ transparent: 'transparent' } }
module.exports = {
plugins: [
require('@tailwindcss/line-clamp'),
plugin(({ addComponents }) => {
addComponents({
'.aspect-1-1': {
width: '100vw',
height: '100vw',
},
'.aspect-3-2': {
width: '100vw',
height: '66.666vw',
},
'.aspect-25-9': {
width: '100vw',
height: '36vw',
},
})
}),
],
contents: ['./layouts/**/*.vue', './pages/**/*.vue', './components/**/*.vue'],
theme: {
extend: {
gridTemplateColumns: {
'20rem': 'repeat(auto-fill, minmax(20rem, 1fr))',
'15rem': 'repeat(auto-fill, minmax(15rem, 1fr))',
},
width: {
25: '6.25rem',
},
colors: {
primary: '#2FBAD3',
nav: 'rgb(38 38 38)',
test: 'linear-gradient(#eee, #333)',
},
},
colors,
},
}