2020-11-09 21:16:45 +00:00
|
|
|
const defaultTheme = require('tailwindcss/defaultTheme')
|
|
|
|
|
2020-10-09 18:53:24 +00:00
|
|
|
module.exports = {
|
|
|
|
future: {
|
|
|
|
removeDeprecatedGapUtilities: true,
|
|
|
|
purgeLayersByDefault: true
|
|
|
|
},
|
2020-10-10 15:35:04 +00:00
|
|
|
purge: {
|
|
|
|
// https://medium.com/@kyis/vue-tailwind-purgecss-the-right-way-c70d04461475
|
2022-07-30 08:59:52 +00:00
|
|
|
content: [`./public/**/*.html`, `./public/**/*.ejs`, `./src/**/*.vue`, `./src/**/*.js`],
|
2020-10-10 15:35:04 +00:00
|
|
|
defaultExtractor(content) {
|
|
|
|
const contentWithoutStyleBlocks = content.replace(/<style[^]+?<\/style>/gi, '')
|
|
|
|
return contentWithoutStyleBlocks.match(/[A-Za-z0-9-_/:]*[A-Za-z0-9-_/]+/g) || []
|
|
|
|
},
|
|
|
|
whitelist: [],
|
|
|
|
whitelistPatterns: [
|
|
|
|
/-(leave|enter|appear)(|-(to|from|active))$/,
|
|
|
|
/^(?!(|.*?:)cursor-move).+-move$/,
|
|
|
|
/^router-link(|-exact)-active$/
|
|
|
|
]
|
|
|
|
},
|
2020-10-09 18:53:24 +00:00
|
|
|
theme: {
|
2020-10-10 15:35:04 +00:00
|
|
|
extend: {
|
|
|
|
colors: {
|
|
|
|
grayscale: {
|
|
|
|
100: 'hsl(0, 0%, 10%)',
|
|
|
|
200: 'hsl(0, 0%, 20%)',
|
|
|
|
300: 'hsl(0, 0%, 30%)',
|
|
|
|
400: 'hsl(0, 0%, 40%)',
|
|
|
|
500: 'hsl(0, 0%, 50%)',
|
|
|
|
600: 'hsl(0, 0%, 60%)',
|
|
|
|
700: 'hsl(0, 0%, 70%)',
|
|
|
|
800: 'hsl(0, 0%, 80%)',
|
|
|
|
840: 'hsl(0, 0%, 84%)', // Remove maybe
|
|
|
|
870: 'hsl(0, 0%, 87%)', // Remove maybe
|
|
|
|
900: 'hsl(0, 0%, 90%)',
|
|
|
|
930: 'hsl(0, 0%, 93%)' // Remove maybe
|
|
|
|
},
|
2020-10-14 20:18:13 +00:00
|
|
|
primary: 'hsl(210, 100%, 52%)',
|
2020-10-10 15:35:04 +00:00
|
|
|
background: {
|
|
|
|
main: 'var(--main-background)',
|
|
|
|
secondary: 'var(--secondary-background)'
|
|
|
|
},
|
2020-10-16 21:56:53 +00:00
|
|
|
foreground: 'var(--foreground)',
|
2020-10-10 15:35:04 +00:00
|
|
|
panels: {
|
2020-10-16 21:56:53 +00:00
|
|
|
bg: 'var(--panels-background)'
|
2020-10-10 15:35:04 +00:00
|
|
|
}
|
2020-11-09 21:16:45 +00:00
|
|
|
},
|
|
|
|
fontFamily: {
|
|
|
|
sans: ['Open Sans', ...defaultTheme.fontFamily.sans]
|
2020-10-10 15:35:04 +00:00
|
|
|
}
|
|
|
|
}
|
2020-10-09 18:53:24 +00:00
|
|
|
},
|
2020-10-17 15:52:31 +00:00
|
|
|
variants: {
|
2020-11-02 11:25:08 +00:00
|
|
|
textColor: ({ after }) => after(['group-hover']),
|
2021-01-31 21:30:06 +00:00
|
|
|
margin: ({ before }) => before(['first']),
|
2020-11-02 21:33:00 +00:00
|
|
|
borderWidth: ['responsive', 'first', 'hover', 'focus'],
|
|
|
|
cursor: ['responsive', 'hover']
|
2020-10-17 15:52:31 +00:00
|
|
|
},
|
2020-10-09 18:53:24 +00:00
|
|
|
corePlugins: {
|
|
|
|
preflight: false
|
|
|
|
},
|
2021-01-31 21:30:06 +00:00
|
|
|
plugins: []
|
2020-10-09 18:53:24 +00:00
|
|
|
}
|