mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-14 12:14:42 +01:00
Remove useless safelist classes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user