tailwind.config.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. const animate = require("tailwindcss-animate")
  2. /** @type {import('tailwindcss').Config} */
  3. module.exports = {
  4. darkMode: ["class"],
  5. safelist: ["dark"],
  6. prefix: "",
  7. content: [
  8. './pages/**/*.{ts,tsx,vue}',
  9. './components/**/*.{ts,tsx,vue}',
  10. './app/**/*.{ts,tsx,vue}',
  11. './src/**/*.{ts,tsx,vue}',
  12. ],
  13. theme: {
  14. container: {
  15. center: true,
  16. padding: "2rem",
  17. screens: {
  18. "2xl": "1400px",
  19. },
  20. },
  21. extend: {
  22. colors: {
  23. border: "hsl(var(--border))",
  24. input: "hsl(var(--input))",
  25. ring: "hsl(var(--ring))",
  26. background: "hsl(var(--background))",
  27. foreground: "hsl(var(--foreground))",
  28. primary: {
  29. DEFAULT: "hsl(var(--primary))",
  30. foreground: "hsl(var(--primary-foreground))",
  31. },
  32. secondary: {
  33. DEFAULT: "hsl(var(--secondary))",
  34. foreground: "hsl(var(--secondary-foreground))",
  35. },
  36. destructive: {
  37. DEFAULT: "hsl(var(--destructive))",
  38. foreground: "hsl(var(--destructive-foreground))",
  39. },
  40. muted: {
  41. DEFAULT: "hsl(var(--muted))",
  42. foreground: "hsl(var(--muted-foreground))",
  43. },
  44. accent: {
  45. DEFAULT: "hsl(var(--accent))",
  46. foreground: "hsl(var(--accent-foreground))",
  47. },
  48. popover: {
  49. DEFAULT: "hsl(var(--popover))",
  50. foreground: "hsl(var(--popover-foreground))",
  51. },
  52. card: {
  53. DEFAULT: "hsl(var(--card))",
  54. foreground: "hsl(var(--card-foreground))",
  55. },
  56. },
  57. borderRadius: {
  58. xl: "calc(var(--radius) + 4px)",
  59. lg: "var(--radius)",
  60. md: "calc(var(--radius) - 2px)",
  61. sm: "calc(var(--radius) - 4px)",
  62. },
  63. keyframes: {
  64. "accordion-down": {
  65. from: { height: 0 },
  66. to: { height: "var(--radix-accordion-content-height)" },
  67. },
  68. "accordion-up": {
  69. from: { height: "var(--radix-accordion-content-height)" },
  70. to: { height: 0 },
  71. },
  72. "collapsible-down": {
  73. from: { height: 0 },
  74. to: { height: 'var(--radix-collapsible-content-height)' },
  75. },
  76. "collapsible-up": {
  77. from: { height: 'var(--radix-collapsible-content-height)' },
  78. to: { height: 0 },
  79. },
  80. },
  81. animation: {
  82. "accordion-down": "accordion-down 0.2s ease-out",
  83. "accordion-up": "accordion-up 0.2s ease-out",
  84. "collapsible-down": "collapsible-down 0.2s ease-in-out",
  85. "collapsible-up": "collapsible-up 0.2s ease-in-out",
  86. },
  87. },
  88. },
  89. plugins: [animate],
  90. }