tailwind.config.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /** @type {import('tailwindcss').Config} */
  2. module.exports = {
  3. darkMode: ["class"],
  4. content: [
  5. "./index.html",
  6. "./src/**/*.{ts,tsx,js,jsx}",
  7. ],
  8. theme: {
  9. container: {
  10. center: true,
  11. padding: "2rem",
  12. screens: {
  13. "2xl": "1400px",
  14. },
  15. },
  16. extend: {
  17. colors: {
  18. border: "hsl(var(--border))",
  19. input: "hsl(var(--input))",
  20. ring: "hsl(var(--ring))",
  21. background: "hsl(var(--background))",
  22. foreground: "hsl(var(--foreground))",
  23. primary: {
  24. DEFAULT: "hsl(var(--primary))",
  25. foreground: "hsl(var(--primary-foreground))",
  26. },
  27. secondary: {
  28. DEFAULT: "hsl(var(--secondary))",
  29. foreground: "hsl(var(--secondary-foreground))",
  30. },
  31. destructive: {
  32. DEFAULT: "hsl(var(--destructive))",
  33. foreground: "hsl(var(--destructive-foreground))",
  34. },
  35. muted: {
  36. DEFAULT: "hsl(var(--muted))",
  37. foreground: "hsl(var(--muted-foreground))",
  38. },
  39. accent: {
  40. DEFAULT: "hsl(var(--accent))",
  41. foreground: "hsl(var(--accent-foreground))",
  42. },
  43. popover: {
  44. DEFAULT: "hsl(var(--popover))",
  45. foreground: "hsl(var(--popover-foreground))",
  46. },
  47. card: {
  48. DEFAULT: "hsl(var(--card))",
  49. foreground: "hsl(var(--card-foreground))",
  50. },
  51. },
  52. borderRadius: {
  53. lg: "var(--radius)",
  54. md: "calc(var(--radius) - 2px)",
  55. sm: "calc(var(--radius) - 4px)",
  56. },
  57. },
  58. },
  59. plugins: [require("tailwindcss-animate")],
  60. }