tailwind.config.ts 651 B

123456789101112131415161718192021222324252627282930
  1. import forms from '@tailwindcss/forms'
  2. import type { Config } from 'tailwindcss'
  3. import colors from 'tailwindcss/colors'
  4. const deprecations = [
  5. 'lightBlue',
  6. 'warmGray',
  7. 'trueGray',
  8. 'coolGray',
  9. 'blueGray'
  10. ]
  11. for (const color of Object.keys(colors)) {
  12. if (deprecations.includes(color)) delete colors[color]
  13. }
  14. export default {
  15. content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
  16. theme: {
  17. extend: {},
  18. colors: {
  19. ...colors
  20. // override default colors here
  21. }
  22. },
  23. plugins: [forms],
  24. corePlugins: {
  25. preflight: false // disables default styles from overriding other custom styles
  26. }
  27. } satisfies Config