fix: Add .dark to safelist to make sure it's generated

This commit is contained in:
mbaharip
2025-01-24 17:51:48 +07:00
parent 91b2d11198
commit 6168d1bdd4
+6 -10
View File
@@ -1,11 +1,9 @@
import twTypography from "@tailwindcss/typography";
import twVidstack from "@vidstack/react/tailwind.cjs";
import type { Config } from "tailwindcss"; import type { Config } from "tailwindcss";
import twAnimate from "tailwindcss-animate";
import tw from "tailwindcss/defaultTheme"; import tw from "tailwindcss/defaultTheme";
const config: Config = { export default {
darkMode: ["class"], darkMode: ["class"],
safelist: ["dark"],
content: ["./pages/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}", "./app/**/*.{ts,tsx}", "./src/**/*.{ts,tsx}"], content: ["./pages/**/*.{ts,tsx}", "./components/**/*.{ts,tsx}", "./app/**/*.{ts,tsx}", "./src/**/*.{ts,tsx}"],
prefix: "", prefix: "",
theme: { theme: {
@@ -105,13 +103,11 @@ const config: Config = {
}, },
}, },
plugins: [ plugins: [
twAnimate, require("tailwindcss-animate"),
twTypography, require("@tailwindcss/typography"),
twVidstack({ require("@vidstack/react/tailwind.cjs")({
selector: ".media-player", selector: ".media-player",
prefix: "media", prefix: "media",
}), }),
], ],
}; } satisfies Config;
export default config;