generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtailwind.config.js
36 lines (33 loc) · 1.01 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
const graphColors = ['blue','gray','red','green','yellow','purple','pink', 'orange']
const alertColors = ['green','red','blue','gray']
module.exports = {
important: true,
purge: {
content: [
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue'
],
safelist: [
/.*(bg|border)-(blue|gray|red|green).*/, // Buttons
...alertColors.map((color)=>['bg-'+color+'-100', 'border-'+color+'-500']).flat(), // Alerts
...graphColors.map((color) => 'to-'+color+'-100'), // Gradients widgets
...graphColors.map((color) => 'text-'+color+'-500') // Text widgets
]
},
darkMode: 'media', // or 'media' or 'class'
theme: {
borderColor: theme => ({
DEFAULT: theme('colors.gray.300', 'currentColor'),
}),
extend: {
colors: {}
}
},
variants: {
extend: {
animation: ['hover']
}
},
plugins: []
}