This repository has been archived on 2024-03-13. You can view files and clone it, but cannot push or open issues or pull requests.
timekeeper/tailwind.config.js

40 lines
784 B
JavaScript
Raw Normal View History

2022-01-07 01:17:26 +00:00
const colors = require('tailwindcss/colors')
2022-01-07 06:29:10 +00:00
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}`)
)
)
2022-01-07 01:17:26 +00:00
module.exports = {
2022-01-07 06:29:10 +00:00
purge: {
safelist: [
...safelist,
'grid-cols-1',
'grid-cols-2',
'md:grid-cols-2',
'md:grid-cols-4',
'2xl:grid-cols-3',
'2xl:grid-cols-6',
],
2022-01-07 06:29:10 +00:00
},
2022-01-07 01:17:26 +00:00
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
colors: {
...colors,
},
},
},
variants: {
extend: {},
},
plugins: [],
}