VOOZH about

URL: https://www.geeksforgeeks.org/nextjs/create-logo-clouds-using-next-js-and-tailwind-css/

⇱ Create Logo Clouds using Next.JS and Tailwind CSS - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Create Logo Clouds using Next.JS and Tailwind CSS

Last Updated : 23 Jul, 2025

A logo cloud is a collection of logos that are displayed on a webpage to showcase partnerships, clients, or supported platforms. This component is often used to establish credibility or showcase affiliations. Using Next.js with Tailwind CSS you can create a responsive and customizable logo cloud that adapts to various screen sizes providing an elegant presentation. We will create Logo Clouds in Next.js using Tailwind CSS.

Prerequisites

Approach

In this approach, we have created an array of logo objects containing image URLs and alt text. The array is then mapped over using JavaScript's map() function to dynamically render each logo one by one. We have used the built-in <Image /> component from Next.js. For the styling and layout, We have used Tailwind CSS to create a responsive grid structure.

Steps to Create Next.js Application

Step 1: Create a Next.js application using the following command.

npx create-next-app@latest logo-clouds

Step 2: It will ask you some questions, so choose the following.

√ Would you like to use TypeScript? ... No
√ Would you like to use ESLint? ... Yes
√ Would you like to use Tailwind CSS? ... Yes
√ Would you like to use `src/` directory? ... Yes
√ Would you like to use App Router? (recommended) ... Yes
√ Would you like to customize the default import alias (@/*)? ... Yes

Step 3: After creating your project folder i.e. logo-clouds, move to it using the following command.

cd logo-clouds

Step 4: Install the Tailwind CSS module.

  • If you have chosen the Tailwind CSS while installing the app, Tailwind CSS will automatically get included in your application other wise use the below command to install It.
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
  • Configure Tailwind to remove unused styles in production by editing the tailwind.config.js file:
  • Add Tailwind’s directives to your /globals.css file:
@tailwind base;
@tailwind components;
@tailwind utilities;

Project Structure:

πŸ‘ logo-clouds-structure
Project Structure

Updated Dependencies:

"dependencies": {
"react": "^18",
"react-dom": "^18",
"next": "14.2.15"
},
"devDependencies": {
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.15"
}

Note: Remove the included extra CSS from global.css file

  • Make sure to add the main media url used domain in next.config.mjs file.

Example: The below example demonstrates creating of logo clouds in Next.js using Tailwind CSS.

To run the Application open the terminal in the project folder and enter the following command:

npm run dev

Output:

Comment
Article Tags:

Explore