-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
62 lines (61 loc) · 1.37 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
55
56
57
58
59
60
61
62
const mode = process.env.NODE_ENV
const dev = mode === 'development'
module.exports = {
purge: {
content: ['./src/**/*.svelte', './src/**/*.html'],
defaultExtractor: (content) => {
const broadMatches = content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || []
const broadMatchesWithoutTrailingSlash = broadMatches.map((match) => _.trimEnd(match, '\\'))
const matches = broadMatches.concat(broadMatchesWithoutTrailingSlash)
return matches
},
enabled: !dev,
},
darkMode: false,
theme: {
extend: {
colors: {
current: '#2F2E41',
highlight: {
DEFAULT: '#F50000',
500: '#EC0154',
},
primary: {
DEFAULT: '#F9A826',
500: '#EC9D1F',
},
'primary-light': {
DEFAULT: '#F8DCAF',
500: '#F3D7A9',
},
secondary: {
DEFAULT: '#00BFA6',
500: '#02A690',
},
},
fontSize: {
// Or with a default line-height as well
'5xl': [
'48px',
{
letterSpacing: '-2px',
lineHeight: '44px',
},
],
},
},
fontFamily: {
sans: ['Lexend', 'sans-serif'],
},
},
variants: {
extend: {
margin: ['last'],
},
},
plugins: [],
future: {
purgeLayersByDefault: true,
removeDeprecatedGapUtilities: true,
},
}