Skip to content

Instantly share code, notes, and snippets.

@n3omaster
Last active November 15, 2022 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n3omaster/455c68070f9dd908a088f8a0779960e1 to your computer and use it in GitHub Desktop.
Save n3omaster/455c68070f9dd908a088f8a0779960e1 to your computer and use it in GitHub Desktop.
New Project Tailwind + Vite + VueJS

Fonted Project First Steps

Terminal:

npm create vite@latest ./ -- --template react npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

tailwind.config.cjs

/** @type {import('tailwindcss').Config} / module.exports = { content: [ "./index.html", "./src/**/.{js,ts,jsx,tsx}", ], theme: { extend: {}, }, plugins: [], }

style.css

@tailwind base; @tailwind components; @tailwind utilities;

Console:

npm run dev

App.jsx export default function App() { return (

Hello world!

) }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment