Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: vars not available on web component #3125

Closed
wildwind123 opened this issue Jul 11, 2024 · 2 comments
Closed

bug: vars not available on web component #3125

wildwind123 opened this issue Jul 11, 2024 · 2 comments

Comments

@wildwind123
Copy link

wildwind123 commented Jul 11, 2024

What version of daisyUI are you using?

v4.14.10

Which browsers are you seeing the problem on?

All browsers

Reproduction URL

https://stackblitz.com/~/github.com/wildwind123/daisyui_custom_element

Describe your issue

on web component, vars not available.
but tailwind vars is available.
On example button have empty background color.

image

Copy link

Thank you @wildwind123 for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

@wildwind123
Copy link
Author

solve this problem with

 themeRoot: ':host'
/** @type {import('tailwindcss').Config} */
export default {
  content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
  theme: {
    extend: {}
  },
  daisyui: {
    themeRoot: ':host'
  },
  plugins: [daisyui]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant