A modern, elegant web application for generating responsive grid layouts with multiple framework support. Built with React, TypeScript, and Tailwind CSS.
-
🎨 Visual Grid Builder
- Intuitive drag-and-select interface
- Real-time grid preview
- Customizable rows, columns, and gaps
- Responsive design
-
🛠️ Multiple Framework Support
- CSS
- SASS
- Tailwind CSS
- Material UI
- shadcn/ui
- Chakra UI
- Emotion
- Styled Components
-
⚙️ Code Generation Options
- CSS Variables support
- CSS Modules support
- TypeScript support
- Framework-specific optimizations
-
🎯 User Experience
- Glassmorphism design
- Smooth animations
- Responsive layout
- Dark mode support
- Copy-to-clipboard functionality
- Node.js (v14 or higher)
- npm or yarn or pnpm (recommended)
- Clone the repository:
git clone https://github.com/hxnain619/grid-layout-generator.git
cd grid-layout-generator- Install dependencies:
pnpm i
# or
yarn install- Start the development server:
pnpm dev
# or
yarn dev- Open http://localhost:5173 in your browser.
-
Configure Grid
- Set the number of rows and columns
- Adjust the gap between grid items
- Use the visual grid builder to select areas
-
Assign Areas
- Enter area names (e.g., "header", "sidebar", "main")
- Click "Assign" to apply the area to selected cells
- Repeat for all desired areas
-
Generate Code
- Click "Generate Code"
- Select your preferred framework
- Choose additional options (CSS Variables, CSS Modules, TypeScript)
- Copy the generated code
src/
├── components/
│ ├── common/ # Reusable UI components
│ ├── GridLayoutCanvas/ # Main grid builder component
│ └── animations/ # Animation components
├── pages/
│ ├── section/ # Page sections
│ └── Home.tsx # Main page component
├── hooks/ # Custom React hooks
├── lib/ # Utility functions
├── types/ # TypeScript type definitions
└── utils/ # Helper functions
- React
- TypeScript
- Tailwind CSS
- Vite
- class-variance-authority
- clsx
- React Icons
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by modern grid layout tools and frameworks
- Built with modern web technologies and best practices
- Special thanks to all contributors and users
