vitesse/tailwind.config.js

59 lines
1.5 KiB
JavaScript
Raw Normal View History

2020-08-10 02:43:04 +08:00
/* eslint-disable @typescript-eslint/no-var-requires */
2020-11-28 14:14:36 +08:00
const colors = require('tailwindcss/colors')
2020-12-14 16:25:55 +08:00
const typography = require('@tailwindcss/typography')
2020-08-10 02:43:04 +08:00
module.exports = {
purge: {
enabled: process.env.NODE_ENV === 'production',
2020-12-14 16:25:55 +08:00
content: [
'./index.html',
'./src/**/*.vue',
'./src/**/*.md',
'./src/**/*.js',
'./src/**/*.ts',
],
options: {
safelist: ['prose', 'prose-sm', 'm-auto'],
},
2020-08-10 02:43:04 +08:00
},
2020-12-14 14:58:40 +08:00
variants: {
cursor: ['responsive', 'disabled'],
backgroundColor: ['dark', 'hover', 'disabled'],
borderColor: ['dark', 'active', 'focus', 'disabled'],
textColor: ['dark', 'hover', 'active', 'disabled'],
opacity: ['dark', 'hover', 'active', 'focus', 'disabled'],
},
darkMode: 'class',
2020-12-14 16:25:55 +08:00
plugins: [typography],
2020-08-10 02:43:04 +08:00
theme: {
extend: {
2020-11-28 14:14:36 +08:00
colors: {
teal: colors.teal,
},
2020-12-14 14:58:40 +08:00
typography: {
DEFAULT: {
css: {
color: 'inherit',
a: {
color: 'inherit',
2020-12-23 03:00:17 +08:00
opacity: 0.75,
2020-12-14 14:58:40 +08:00
'&:hover': {
opacity: 1,
color: colors.teal[600],
},
},
2021-01-21 06:16:46 +08:00
b: { color: 'inherit' },
strong: { color: 'inherit' },
em: { color: 'inherit' },
h1: { color: 'inherit' },
h2: { color: 'inherit' },
h3: { color: 'inherit' },
h4: { color: 'inherit' },
code: { color: 'inherit' },
2020-12-14 14:58:40 +08:00
},
},
},
2020-08-10 02:43:04 +08:00
},
},
}