Skip to content

Commit

Permalink
typescriptify the tailwind config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronosMasterOfAllTime committed Jun 14, 2023
1 parent 6a509c4 commit 7696538
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tailwind.config.js

This file was deleted.

30 changes: 30 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import forms from '@tailwindcss/forms'
import type { Config } from 'tailwindcss'
import colors from 'tailwindcss/colors'

const deprecations = [
'lightBlue',
'warmGray',
'trueGray',
'coolGray',
'blueGray'
]

for (const color of Object.keys(colors)) {
if (deprecations.includes(color)) delete colors[color]
}

export default {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
theme: {
extend: {},
colors: {
...colors
// override default colors here
}
},
plugins: [forms],
corePlugins: {
preflight: false // disables default styles from overriding other custom styles
}
} satisfies Config

0 comments on commit 7696538

Please sign in to comment.