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

how to use tailvue with unocss #19

Open
unknownman opened this issue Feb 21, 2023 · 4 comments
Open

how to use tailvue with unocss #19

unknownman opened this issue Feb 21, 2023 · 4 comments

Comments

@unknownman
Copy link

are there any way to use tailvue with unocss?

@tcampbPPU
Copy link
Member

I've never used UnoCSS, but if the utility classes are the same as whats in Tailwind/Windi then I believe yes. Wherever you configure your UnoCSS (prob in like vite.config.ts) you just need to import this module:

"node_modules/tailvue/dist/tailvue.es.js"

@acidjazz
Copy link
Member

@unknownman please let us know if this works - ill update the readme!

@unknownman
Copy link
Author

unknownman commented Feb 22, 2023

when I use it in a nuxt 3 project with unocss during the build it makes an error
to load it locally we can use it in plugin in nuxt but it make error, i cant use useModal and useToast with this way.
in unocss we can make new preset , for exmple for daisyui this is the preset https://github.com/kidonng/unocss-preset-daisy

@antfu is the founder of unocss could mention more

@tcampbPPU
Copy link
Member

@unknownman if you provide an example repo with unocss setup I can take a look how to get it setup

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

3 participants