import tailwindFonts from "./lib/tailwind-font-map.js"; // ← **ASCII‑Minus wichtig!**

/** @type {import('tailwindcss').Config} */
export default {
  content: [
    "./pages/**/*.{js,jsx,ts,tsx}",
    "./components/**/*.{js,jsx,ts,tsx}",
    "./entities/**/*.{js,jsx,ts,tsx}",
    ".flowbite-react/class-list.json",
  ],
  theme: {
    extend: {
      fontFamily: {
        // Dynamische Zuordnung: z. B. roboto: ['var(--font-roboto)']
        ...Object.fromEntries(
          Object.entries(tailwindFonts).map(([key, cssVar]) => [
            key,
            [`var(${cssVar})`],
          ])
        ),
      },
    },
  },
  plugins: [],
};
