forked from coollabsio/coolify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
54 lines (53 loc) · 1.39 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
52
53
54
const { tailwindExtractor } = require('tailwindcss/lib/lib/purgeUnusedStyles')
const svelteClassColonExtractor = (content) => {
return content.match(/(?<=class:)([a-zA-Z0-9_-]+)/gm) || []
}
const defaultTheme = require('tailwindcss/defaultTheme')
const colors = require('tailwindcss/colors')
module.exports = {
purge: {
enabled: process.env.NODE_ENV === 'production',
content: [
'./src/**/*.svelte',
'./src/**/*.html',
'./src/**/*.css',
'./index.html'
],
preserveHtmlElements: true,
options: {
safelist: [/svelte-/, 'border-green-500', 'border-yellow-300', 'border-red-500'],
defaultExtractor: (content) => {
// WARNING: tailwindExtractor is internal tailwind api
// if this breaks after a tailwind update, report to svite repo
return [
...tailwindExtractor(content),
...svelteClassColonExtractor(content)
]
},
keyframes: false
}
},
darkMode: false,
important: true,
theme: {
extend: {
fontFamily: {
sans: ['Montserrat', ...defaultTheme.fontFamily.sans]
},
colors: {
...colors,
coolblack: '#161616',
'coolgray-100': '#181818',
'coolgray-200': '#202020',
'coolgray-300': '#242424'
}
}
},
variants: {
extend: {
opacity: ['disabled'],
animation: ['hover', 'focus']
}
},
plugins: []
}