Skip to content

Instantly share code, notes, and snippets.

@ryangjchandler
Last active February 19, 2024 17:46
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 ryangjchandler/6bfcc6a40f57ba8fbe75d89bf9ce04a0 to your computer and use it in GitHub Desktop.
Save ryangjchandler/6bfcc6a40f57ba8fbe75d89bf9ce04a0 to your computer and use it in GitHub Desktop.
Setup Tailwind in a Laravel project
# Install Tailwind
npm i tailwindcss autoprefixer -D
# Create a Tailwind configuration file
npx tailwindcss init -p
# Setup the CSS file
cat <<EOF > ./resources/css/app.css
@tailwind base;
@tailwind components;
@tailwind utilities;
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment