Skip to content

Commit

Permalink
🐛 disable daisyui base inject
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Oct 19, 2024
1 parent 255122d commit 1d9326e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ import typography from "@tailwindcss/typography";
import daisyui from "daisyui";
import themes from "daisyui/src/theming/themes";

const lightTheme = themes["light"];
const darkTheme = themes["dark"];
const lightTheme = themes.light;
const darkTheme = themes.dark;

function excludeThemeColor(
theme: { [key: string]: string },
exclude: string[]
): { [key: string]: string } {
/** @type {typeof theme} */
const newObj: { [key: string]: string } = {};
for (const key in theme) {
if (exclude.includes(key)) continue;
Expand All @@ -20,8 +19,8 @@ function excludeThemeColor(

export default {
plugins: [typography, daisyui],
darkMode: ["class", '[data-theme="dark"]'],
daisyui: {
base: false,
themes: [
{
light: {
Expand Down Expand Up @@ -52,4 +51,5 @@ export default {
],
darkTheme: false,
},
darkMode: ["class", '[data-theme="dark"]'],
};

0 comments on commit 1d9326e

Please sign in to comment.