A powerful web-based tool designed to help developers and designers calculate and visualize different column split variations for responsive grid layouts. This tool generates ready-to-use code snippets and provides visual previews across different breakpoints.
- Calculate all possible column split variations for a given number of columns (1-8)
- Visual preview of each variation
- Real-time grid layout visualization
- Support for multiple split combinations
- Desktop (≥1024px)
- Tablet (768px-1023px)
- Mobile (<767px)
- JSON export with detailed variation data
- CSV export for spreadsheet compatibility
- HTML/CSS export with ready-to-use code
- Copy to clipboard functionality
- Responsive code snippets for each breakpoint
- Interactive grid previews
- Percentage and fraction displays
- Breakpoint-specific layouts
- Color-coded visualization
- CSS Grid syntax
- Flexbox alternatives
- Percentage-based layouts
- Responsive breakpoint code
- HTML5
- CSS3 (Modern Features)
- JavaScript (ES6+ Modules)
- Google Fonts (Poppins)
- Font Awesome Icons (v6.0.0)
- Modern CSS Custom Properties
column-variation-calculator/
├── src/
│ ├── js/
│ │ ├── modules/
│ │ │ ├── calculator.js
│ │ │ ├── export.js
│ │ │ ├── ui.js
│ │ │ └── utils.js
│ │ └── main.js
│ ├── css/
│ │ ├── components/
│ │ │ ├── breakpoints.css
│ │ │ ├── buttons.css
│ │ │ ├── cards.css
│ │ │ ├── export.css
│ │ │ ├── form.css
│ │ │ ├── grid.css
│ │ ├── base.css
│ │ └── main.css
│ └── index.html
├── public/
│ └── assets/
│ └── icons/
├── tests/
├── .gitignore
└── README.md
- Handles column split calculations
- Generates responsive variations
- Validates input combinations
- Manages DOM interactions
- Generates visual previews
- Handles error messaging
- Creates code suggestions
- Generates JSON output
- Creates CSV format
- Produces HTML/CSS templates
- Handles clipboard operations
- Modular CSS architecture
- Responsive design system
- Custom properties for theming
- Flexible grid layouts
- Interactive UI elements
-
Input Parameters
- Enter number of columns (1-8)
- Specify desired number of splits
- Click "Calculate Variations"
-
View Results
- See visual grid previews
- Review responsive breakdowns
- Access code snippets
-
Export Options
- Download as JSON
- Export to CSV
- Get HTML/CSS code
- Copy to clipboard
- Input validation
- User-friendly error messages
- Graceful fallbacks
- Visual feedback
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Modular code structure
- Efficient calculations
- Optimized DOM operations
- Responsive image handling
- Additional export formats
- Custom breakpoint configuration
- Style recommendation for tablet and mobile
- Template saving functionality
- Advance fraction calculations
- Accessibility features
- History and favourites
- Unit conversion
- Dark mode
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.