Aucune description

tailwind.config.js 1.8KB

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