tailwind.config.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. ** TailwindCSS Configuration File
  3. **
  4. ** Docs: https://tailwindcss.com/docs/configuration
  5. ** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
  6. */
  7. module.exports = {
  8. future: {
  9. removeDeprecatedGapUtilities: true,
  10. purgeLayersByDefault: true,
  11. },
  12. experimental: "all",
  13. dark: "class",
  14. corePlugins: {
  15. clear: false,
  16. float: false,
  17. skew: false,
  18. },
  19. theme: {
  20. extend: {
  21. colors: {
  22. bgColor: "var(--bg-color)",
  23. bgLightColor: "var(--bg-light-color)",
  24. bgDarkColor: "var(--bg-dark-color)",
  25. fgColor: "var(--fg-color)",
  26. fgLightColor: "var(--fg-light-color)",
  27. brdColor: "var(--brd-color)",
  28. errColor: "var(--err-color)",
  29. acColor: "var(--ac-color)",
  30. actColor: "var(--act-color)",
  31. ttColor: "var(--tt-color)",
  32. },
  33. inset: {},
  34. },
  35. fontFamily: {
  36. body: "var(--font-body)",
  37. mono: "var(--font-mono)",
  38. icon: "var(--font-icon)",
  39. },
  40. },
  41. variants: {},
  42. plugins: [],
  43. purge: {
  44. // Learn more on https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css
  45. enabled: process.env.NODE_ENV === "production",
  46. content: [
  47. "components/**/*.vue",
  48. "layouts/**/*.vue",
  49. "pages/**/*.vue",
  50. "plugins/**/*.js",
  51. "nuxt.config.js",
  52. "content/**/*.md",
  53. ],
  54. // These options are passed through directly to PurgeCSS
  55. options: {
  56. whitelistPatterns: [/^bg-/, /^text-/, /^border-/, /^h-/, /^w-/, /^hover:/],
  57. },
  58. },
  59. }