Step-by-step guide to install Vue Js with tailwind CSS, and DaisyUI for modern web development

npm create vue@latest ./
Select your preferences
Package name: ...npm i
npm run dev
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
additional tailwind plugin npm install -D @tailwindcss/typography @tailwindcss/forms @tailwindcss/aspect-ratio
install daisyui npm i daisyui
import typography from "@tailwindcss/typography";
import forms from "@tailwindcss/forms";
import aspectRatio from "@tailwindcss/aspect-ratio";
import daisyui from "daisyui";
/** @type {import('tailwindcss').Config} \*/
export default {
content: ["./index.html", "./src/**/\*.{vue,js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [typography, forms, aspectRatio, daisyui],
};
main.css
as this is already imported inside main.js
. Comment everything inside main.css
& then paste the following tailwind directiveMust comment out everything inside
main.css
/* src/main.css */
@tailwind base;
@tailwind components;
@tailwind utilities;