Generate responsive CSS Grid & Flexbox layouts with Tailwind CSS β visually.
Create beautiful, responsive layouts without writing CSS by hand.
Configure β Preview β Copy production-ready code.
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-fitandauto-fillwith custom min/max values - ποΈ Live Preview β Real-time preview at every viewport size
- π Code Generation β Clean HTML + Tailwind CSS classes, ready to copy
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, andalign-content - π Uneven Sizing β Set different sizes for individual flex items
- π― Per-Item Options β Flex ratio,
align-self, andorderper child - π Code Output β Responsive HTML and Tailwind CSS
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
| 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 |
- Node.js 18+ installed
- npm, yarn, pnpm, or bun
# 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 devOpen http://localhost:3000 to start building layouts.
| 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 |
# Build the image
docker build -t layout-generator .
# Run the container
docker run -p 3000:3000 layout-generatorgrid_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
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.