-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
41 lines (39 loc) · 983 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 colors = require('./colors')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./components/**/*.{js,vue,ts}',
'./layouts/**/*.vue',
'./pages/**/*.vue',
'./plugins/**/*.{js,ts}',
'./nuxt.config.{js,ts}',
'./app.vue',
],
safelist: [
...(Object.keys(colors).reduce((acc, name) => {
acc.push(`border-${name}-600`)
acc.push(`border-${name}-600`)
acc.push(`bg-${name}-800`)
acc.push(`bg-${name}-700`)
acc.push(`bg-${name}-600`)
acc.push(`bg-${name}-500`)
acc.push(`bg-${name}-400`)
acc.push(`bg-${name}-100`)
acc.push(`bg-${name}-50`)
acc.push(`hover:bg-${name}-600`)
acc.push(`hover:bg-${name}-800`)
acc.push(`bg-${name}-100`)
acc.push(`ring-${name}-600`)
acc.push(`focus:outline-${name}-800`)
return acc
}, [])),
'bg-blueLight',
'bg-blueDark',
],
theme: {
extend: {
colors,
},
},
plugins: [],
}