parent
4d11db3a33
commit
d56b1a406e
|
@ -1,7 +1,21 @@
|
|||
const colors = require('tailwindcss/colors')
|
||||
|
||||
const { black, white, ...rainbow } = colors
|
||||
|
||||
const COLOR_TYPE = ['bg', 'text', 'border']
|
||||
const COLOR_NAME = Object.keys(rainbow)
|
||||
const COLOR_NUMBER = Object.keys(rainbow.rose) // any color will do
|
||||
|
||||
const safelist = COLOR_TYPE.flatMap((type) =>
|
||||
COLOR_NAME.flatMap((name) =>
|
||||
COLOR_NUMBER.map((number) => `${type}-${name}-${number}`)
|
||||
)
|
||||
)
|
||||
|
||||
module.exports = {
|
||||
purge: [],
|
||||
purge: {
|
||||
safelist,
|
||||
},
|
||||
darkMode: false, // or 'media' or 'class'
|
||||
theme: {
|
||||
extend: {
|
||||
|
|
Reference in New Issue