Skip to content

habibjutt/grid_generator

Repository files navigation

πŸ”² Layout Generator

Generate responsive CSS Grid & Flexbox layouts with Tailwind CSS β€” visually.

Live Demo Next.js React Tailwind CSS Docker License


Create beautiful, responsive layouts without writing CSS by hand.
Configure β†’ Preview β†’ Copy production-ready code.

Try it Live β†’


✨ Features

πŸ”² Grid Generator

Create responsive CSS Grid layouts with per-breakpoint control

  • πŸ“± Responsive Breakpoints β€” Configure columns independently for mobile, tablet, and desktop
  • πŸ”’ Column Control β€” Set 1–12 columns per breakpoint
  • ↔️ Gap Management β€” Independent X/Y gap spacing or unified gap
  • πŸ”„ Auto Layout β€” auto-fit and auto-fill with custom min/max values
  • πŸ‘οΈ Live Preview β€” Real-time preview at every viewport size
  • πŸ“‹ Code Generation β€” Clean HTML + Tailwind CSS classes, ready to copy

πŸ“ Flexbox Generator

Build flexible layouts with full flexbox property control

  • 🧭 Direction Control β€” Row, column, and reverse variants per breakpoint
  • πŸ”ƒ Wrap Settings β€” wrap, nowrap, wrap-reverse
  • βš–οΈ Alignment β€” justify-content, align-items, and align-content
  • πŸ“ Uneven Sizing β€” Set different sizes for individual flex items
  • 🎯 Per-Item Options β€” Flex ratio, align-self, and order per child
  • πŸ“‹ Code Output β€” Responsive HTML and Tailwind CSS

πŸŽ“ Flexbox Examples

Interactive learning resource for mastering flexbox

  • πŸ§ͺ Live Demos β€” Visual examples for every major flexbox property
  • πŸ“ Code Snippets β€” Both raw CSS and Tailwind class equivalents
  • πŸ“– Property Explanations β€” Clear descriptions and use cases
  • ⚑ Quick Reference β€” Perfect for learning or refreshing your memory

πŸ› οΈ Tech Stack

Layer Technology
Framework Next.js 15 (App Router)
UI Library React 19
Styling Tailwind CSS 4 + PostCSS
Language JavaScript (with TypeScript support)
Bundler Turbopack
Linting ESLint 9
Deployment Docker / Any Node.js host

πŸš€ Getting Started

Prerequisites

  • Node.js 18+ installed
  • npm, yarn, pnpm, or bun

Installation

# Clone the repository
git clone https://github.com/habibjutt/grid_generator.git
cd grid_generator

# Install dependencies
npm install

# Start the development server
npm run dev

Open http://localhost:3000 to start building layouts.

Available Scripts

Command Description
npm run dev Start dev server with Turbopack
npm run build Create production build
npm start Run production server
npm run lint Run ESLint checks

🐳 Docker

# Build the image
docker build -t layout-generator .

# Run the container
docker run -p 3000:3000 layout-generator

πŸ“ Project Structure

grid_generator/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ page.js                  # Landing page with hero & feature cards
β”‚   β”œβ”€β”€ layout.js                # Root layout (Header + Footer)
β”‚   β”œβ”€β”€ globals.css              # Global Tailwind styles
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ Header.js            # Responsive navigation
β”‚   β”‚   └── Footer.js            # Footer with resource links
β”‚   β”œβ”€β”€ grid-generator/
β”‚   β”‚   └── page.js              # Grid Generator tool
β”‚   β”œβ”€β”€ flexbox-generator/
β”‚   β”‚   └── page.js              # Flexbox Generator tool
β”‚   └── flexbox-examples/
β”‚       └── page.js              # Interactive flexbox examples
β”œβ”€β”€ public/                      # Static assets
β”œβ”€β”€ Dockerfile                   # Docker containerization
β”œβ”€β”€ next.config.mjs              # Next.js configuration
β”œβ”€β”€ tailwind.config.js           # Tailwind CSS configuration
└── package.json                 # Dependencies & scripts

🀝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is open source and available under the MIT License.


Built with ❀️ by Habib Jutt

GitHub Website

⭐ Star this repo if you found it useful!

Releases

No releases published

Packages

 
 
 

Contributors

Languages