tailwind.config.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* eslint-disable no-undef */
  2. /** @type {import('tailwindcss').Config} */
  3. module.exports = {
  4. darkMode: ["class"],
  5. content: ["./index.html", "./src/**/*.{ts,tsx}"],
  6. prefix: "",
  7. theme: {
  8. fontSize: {
  9. xs: ".75rem",
  10. sm: ".875rem",
  11. base: "1rem",
  12. lg: "1.125rem",
  13. xl: "1.25rem",
  14. "2xl": "1.5rem",
  15. "3xl": "1.875rem",
  16. "4xl": "2.25rem",
  17. "5xl": "2.5rem",
  18. "6xl": "3rem",
  19. },
  20. container: {
  21. center: true,
  22. padding: "2rem",
  23. screens: {
  24. "2xl": "1400px",
  25. },
  26. },
  27. extend: {
  28. spacing: {
  29. 112: "28rem",
  30. 128: "32rem",
  31. 180: "45rem",
  32. },
  33. zIndex: {
  34. 1: "1",
  35. 2: "2",
  36. 20: "20",
  37. 100: "100",
  38. 1000: "1000",
  39. 2000: "2000",
  40. },
  41. gridTemplateRows: {
  42. 7: "repeat(7, minmax(0, 1fr))",
  43. },
  44. colors: {
  45. border: "hsl(var(--border))",
  46. input: "hsl(var(--input))",
  47. ring: "hsl(var(--ring))",
  48. background: "hsl(var(--background))",
  49. foreground: "hsl(var(--foreground))",
  50. primary: {
  51. DEFAULT: "hsl(var(--primary))",
  52. foreground: "hsl(var(--primary-foreground))",
  53. },
  54. secondary: {
  55. DEFAULT: "hsl(var(--secondary))",
  56. foreground: "hsl(var(--secondary-foreground))",
  57. },
  58. destructive: {
  59. DEFAULT: "hsl(var(--destructive))",
  60. foreground: "hsl(var(--destructive-foreground))",
  61. },
  62. muted: {
  63. DEFAULT: "hsl(var(--muted))",
  64. foreground: "hsl(var(--muted-foreground))",
  65. },
  66. accent: {
  67. DEFAULT: "hsl(var(--accent))",
  68. foreground: "hsl(var(--accent-foreground))",
  69. },
  70. popover: {
  71. DEFAULT: "hsl(var(--popover))",
  72. foreground: "hsl(var(--popover-foreground))",
  73. },
  74. card: {
  75. DEFAULT: "hsl(var(--card))",
  76. foreground: "hsl(var(--card-foreground))",
  77. },
  78. },
  79. borderRadius: {
  80. lg: "var(--radius)",
  81. md: "calc(var(--radius) - 2px)",
  82. sm: "calc(var(--radius) - 4px)",
  83. },
  84. },
  85. },
  86. plugins: [require("tailwindcss-animate")],
  87. };