Skip to content

Instantly share code, notes, and snippets.

@mdasifmunshe
mdasifmunshe / Install Tailwind CSS v3.4.17 and below with Vite and Yarn
Last active May 2, 2025 10:03
Setting up Tailwind CSS in a Vite project with Yarn.
/*
As mentioned by @samuel-jarvis this gist no longer works with Tailwind CSS v4.
But it will still work for Tailwind CSS v3.4.17 and below
*/
/* Terminal */
yarn create vite my-project
cd my-project
yarn add -D tailwindcss postcss autoprefixer