-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
34 lines (30 loc) · 833 Bytes
/
tailwind.config.js
File metadata and controls
34 lines (30 loc) · 833 Bytes
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
const { colors: tailwindColors } = require('tailwindcss/defaultTheme')
const { colors } = require('./src/styles/colors')
const { themes } = require('./src/styles/themes')
const themesColors = Object.values(themes)
.reduce((acc, theme) => [...new Set([...acc, ...Object.values(theme)])], [])
.join('|')
const themesRgx = new RegExp(`(text|bg)-(${themesColors})`)
//const colorsRgx = new RegExp(`(text|bg)-(${Object.keys(colors).join('|')})`)
module.exports = {
purge: {
content: ['./**/*.tsx'],
options: {
whitelistPatterns: [themesRgx],
},
},
theme: {
extend: {
colors: {
...tailwindColors,
...colors,
},
fontFamily: {
quicksand: ['Quicksand', 'Consolas'],
montserrat: ['Montserrat', 'Lato'],
},
},
},
variants: {},
plugins: [],
}