-
I am using the latest version of Deno Fresh (v1.6) which now supports Tailwind proper. I've got this all working with the CDN version of DaisyUI, but am wondering how to integrate DaisyUI as a plugin instead as adding any config to the tailwind.config.ts seems to have no effect. Any help on better integration between Deno/Fresh and DaisyUI would be most appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey. import daisyui from 'daisyui';
export default {
content: ['./src/**/*.{js,ts}'],
plugins: [daisyui],
}; https://stackblitz.com/edit/daisyui-vite-6udkoc?file=tailwind.config.ts Let me know if you have a question. |
Beta Was this translation helpful? Give feedback.
-
Update for 2025 and Deno 2 release, it works well. import { type Config, type PluginCreator } from "tailwindcss";
import daisyui from "daisyui";
export default {
content: [
"{routes,islands,components}/**/*.{ts,tsx,js,jsx}",
],
plugins: [daisyui as PluginCreator],
daisyui: {
themes: ["cupcake"]
}
} satisfies Config; Use |
Beta Was this translation helpful? Give feedback.
Hey.
I haven't tried Deno, but a
tailwind.config.ts
on an ESM project can be like this:https://stackblitz.com/edit/daisyui-vite-6udkoc?file=tailwind.config.ts
Let me know if you have a question.