Questions tagged [unocss]
15 questions
5
votes
7 answers
Nuxt3: how to use tailwindcss
Very first try on Nuxt3 via Nuxt3 Starter
I wonder how can I use tailwindcss in Nuxt3 Starter manually.
(Not via @nuxtjs/tailwindcss , because it's for Nuxt2, and not work with Nuxt3.)
I created a blank Nuxt3 project by
npx degit "nuxt/starter#v3"…

DengSihan
- 2,119
- 1
- 13
- 40
4
votes
0 answers
Is there a way to configure Storybook to use the same Vite config as my main app?
My app stack is Node14, Vite, Typescript, Vue3, UnoCSS (Antfu's Vitesse). I'm using Storybook 6.5 alpha for Vue3 with the storybook-builder-vite plugin.
My goal is that my Storybook config and stack are the same as the app, so Storybook will…

Stephen Hebert
- 61
- 1
- 3
3
votes
1 answer
How can I get autocomplete / intellisense on custom shortcuts in UnoCSS with SvelteKit?
In the UnoCSS Playground I get intellisense on custom rules and shortcuts (like in the screenshot), but when adding custom rules and shortcuts in my local project I do not see any recommendations in VSCode. I have installed the UnoCSS, WindiCSS,…

ben mi
- 65
- 6
3
votes
1 answer
How to correctly use UnoCSS presets with Nuxt3?
Problem
I use Nuxt3 + UnoCSS + DaisyUI community preset. When running npx nuxi dev, everything works well. However, when running npx nuxi generate && npx serve dist, UnoCSS works well but some of the DaisyUI preset styles are incorrect:
Reproduce
I…

why
- 59
- 4
2
votes
1 answer
How to use UNOCSS background image
I want to use the backgroundImage when using UNOCSS and set the theme according to TailwindCSS, but the desired effect is not achieved. May I ask how can I achieve the backgroundImage in UNOCSS?

Soumns
- 21
- 1
1
vote
1 answer
multi-line CSS @apply not working in production with Nuxt 3, UnoCSS and SCSS
My application is using UnoCSS, Nuxt 3 and my Style is using SCSS
One of my components has this style sheet