I started a project about a vue custom web component using this plugin.
I followed the install config for shadcn-vue x Vite here.
But I have a problem with the CSS. The plugin I'm using work with shadowDOM (I can disable but I need it for my project).
When I disable the shadowDOM I can use the CSS var contained in my index.css.
And when I enable the shadowDOM there no more CSS Var (no --primary, etc).
I'm new using shadowDOM maybe I just can't stock CSS Var in a shadow DOM, I don't know.
Hey,
I started a project about a vue custom web component using this plugin.
I followed the install config for shadcn-vue x Vite here.
But I have a problem with the CSS. The plugin I'm using work with shadowDOM (I can disable but I need it for my project).
When I disable the shadowDOM I can use the CSS var contained in my index.css.
And when I enable the shadowDOM there no more CSS Var (no --primary, etc). I'm new using shadowDOM maybe I just can't stock CSS Var in a shadow DOM, I don't know.
There is a stackblitz demo.
Anyone can help about this ??
Thanks !