diff --git a/src/styles/safelist.txt b/src/styles/safelist.txt index fd45438..5cb5926 100644 --- a/src/styles/safelist.txt +++ b/src/styles/safelist.txt @@ -1,6 +1,6 @@ -btn-primary -btn-secondary -btn-neutral -btn-accent -btn-ghost -btn-link \ No newline at end of file +["btn-primary", +"btn-secondary", +"btn-neutral", +"btn-accent", +"btn-ghost", +"btn-link"] \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 7ce3ced..bdd5d63 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,19 +1,26 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: [ - './src/app/**/*.{js,ts,jsx,tsx,mdx}', - './src/components/**/*.{js,ts,jsx,tsx}', - ], - daisyui: { - themes: ["pastel", "sunset"], - darkTheme: "sunset", // name of one of the included themes for dark mode - base: true, // applies background color and foreground color for root element by default - styled: true, // include daisyUI colors and design decisions for all components - utils: true, // adds responsive and modifier utility classes - prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors) - logs: true, // Shows info about daisyUI version and used config in the console when building your CSS - themeRoot: ":root", // The element that receives theme color CSS variables - }, - plugins: [require("daisyui")], - content: ["./src/styles/safelist.txt"], -} \ No newline at end of file + content: [ + "./src/app/**/*.{js,ts,jsx,tsx,mdx}", + "./src/components/**/*.{js,ts,jsx,tsx}", + ], + daisyui: { + themes: ["light", "dark"], + darkTheme: "dark", // name of one of the included themes for dark mode + base: true, // applies background color and foreground color for root element by default + styled: true, // include daisyUI colors and design decisions for all components + utils: true, // adds responsive and modifier utility classes + prefix: "", // prefix for daisyUI classnames (components, modifiers and responsive class names. Not colors) + logs: true, // Shows info about daisyUI version and used config in the console when building your CSS + themeRoot: ":root", // The element that receives theme color CSS variables + }, + plugins: [require("daisyui")], + safelist: [ + "btn-primary", + "btn-secondary", + "btn-neutral", + "btn-accent", + "btn-ghost", + "btn-link", + ], +};