tailwind.config.ts 776 B

123456789101112131415161718192021222324252627282930313233343536
  1. /** @type {import('tailwindcss').Config} */
  2. import type { Config } from 'tailwindcss'
  3. export default {
  4. content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
  5. corePlugins: {
  6. preflight: false
  7. },
  8. theme: {
  9. // screens: {
  10. // sm: '480px',
  11. // md: '768px',
  12. // lg: '976px',
  13. // xl: '1440px'
  14. // },
  15. // colors: {
  16. // blue: '#1fb6ff',
  17. // pink: '#ff49db',
  18. // orange: '#ff7849',
  19. // green: '#13ce66',
  20. // 'gray-dark': '#273444',
  21. // gray: '#8492a6',
  22. // 'gray-light': '#d3dce6'
  23. // },
  24. extend: {}
  25. },
  26. plugins: []
  27. /*// 这部分 css 需要通过比较复杂的计算得出,所以要用 `safelist` 保证它们出现在最终 css 里
  28. safelist: [
  29. {
  30. pattern: /w-\d+\/\d+/
  31. },
  32. {
  33. pattern: /grid-cols-[5-9]/
  34. }
  35. ]*/
  36. } satisfies Config