Remove useless safelist classes

This commit is contained in:
2023-11-06 23:02:29 +01:00
parent f3bf840c77
commit 985b8da751
2 changed files with 14 additions and 18 deletions

View File

@@ -1,23 +1,15 @@
import type { Config } from 'tailwindcss'
import typography from '@tailwindcss/typography'
import { ColorsTheme } from './types'
export default {
content: [
'content/**/*.md',
],
safelist: [
// Theme text colors
...Object.values(ColorsTheme).map(color => `text-${color}-500`),
...Object.values(ColorsTheme).map(color => `!text-${color}-500`),
...Object.values(ColorsTheme).map(color => `hover:text-${color}-500`),
...Object.values(ColorsTheme).map(color => `group-hover:text-${color}-500`),
...'bg-black dark:bg-white dark:text-black text-white'.split(' '),
// Theme background colors
...Object.values(ColorsTheme).map(color => `bg-${color}-500`),
...Object.values(ColorsTheme).map(color => `hover:bg-${color}-500`),
...'text-black dark:text-white'.split(' '),
// Theme border colors
...Object.values(ColorsTheme).map(color => `border-${color}-500`),
...Object.values(ColorsTheme).map(color => `hover:border-${color}-500`),
...'border-black dark:border-white'.split(' '),
...Object.values(ColorsTheme).map(color => `prose-${color}`),
],
plugins: [
typography(),
],
} satisfies Partial<Config>