daief / daisyui-vue

(WIP) Vue3 UI components based on daisyui.
https://daief.tech/daisyui-vue/components/button
Apache License 2.0
163 stars 9 forks source link

Themeing for components #13

Open micahsoftdotexe opened 11 months ago

micahsoftdotexe commented 11 months ago

Greetings I have set up a project so that I have both the regular daisyui css components installed as well as these vue components. i have a theme set in my tailwind.config.js but the issue is that the components from daisyui-vue are not respecting that theme. Is there a way to configure this or to set the theme for daisyui-vue separately? There appears to be a way to set a theme but I could not find documentation on how to do that.

daief commented 11 months ago

Hi, This project is a standalone Vue component library and is no longer associated with Tailwind. Within this library you have the ability to configure themes using the ThemeProvider(You should upgrade the version to 0.0.1-alpha.21, There are some issues with the lower versions.).

Demo: https://codesandbox.io/p/sandbox/kind-maxwell-6g84ww?file=/pages/index.vue:3,5