tailwind.config.ts 2.3 KB

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