npx create-next-app spotify-clone
cd spotify-clone
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Add the paths to all of your template files in your tailwind.config.js file.
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
Add the @tailwind directives for each of Tailwind’s layers to your ./styles/globals.css file.
@tailwind base;
@tailwind components;
@tailwind utilities;
Run your build process with "npm run dev".
I build this clone by using spotify api, as we know there are so many things in Spotify like trendings, artists, charts, genre, liked songs, playlists, tracks etc. But I include playlists, tracks and recents tracks in spotify-clone.