Replace Vuetify Utilities And Color Pack With Tailwind CSS

Dec 28, 2022

Install SASS

npm install --save-dev node-sass sass-loader

Edit nuxt.config.ts

export default defineNuxtConfig({  // 'vuetify/lib/styles/main.sass'  css: ['@/assets/styles/main.scss'],  build: {    transpile: ['vuetify'],  },

Create assets/styles/main.scss

  • Remove CSS for utilities and color
@use 'vuetify' with (  $utilities: false,  $color-pack: true,);

Setup Tailwind CSS for Nuxt V3

Vuetify to Tailwind mapping

  • d-flex -> flex
  • w-100 -> w-full
  • pa-3 -> p-3
  • text-capitalize -> capitalize

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.