A collection of modern, interactive tools to help you generate CSS code for common layout patterns and components. Built with vanilla JavaScript and modern CSS, these tools provide an intuitive visual interface for creating complex layouts.
π Try Live Demo β’ π Documentation β’ π Getting Started β’ π» Usage
- Visual grid builder with drag functionality
- Real-time CSS code generation
- Customizable rows, columns, and gaps
- Responsive grid layout options
- Live preview of the generated grid
- Interactive table builder
- Customizable borders and padding
- Header and cell styling options
- Alternating row colors
- Responsive table design
- Generated HTML and CSS code
- Visual masonry layout builder
- Dynamic item sizing and positioning
- Responsive breakpoints
- Customizable gaps and columns
- Generated CSS code with browser support
- Interactive flexbox container configuration
- Customizable flex properties
- Alignment and distribution controls
- Real-time preview
- Generated CSS code
- Support for Linear, Radial, and Conic gradients
- Multiple color stops with position control
- Visual angle adjustment for linear gradients
- Real-time preview
- Generated CSS and Tailwind code
- Color stop management (add/remove/modify)
- Convert CSS to LESS, SCSS, or Tailwind CSS
- Automatic variable extraction for colors
- Smart conversion of media queries to mixins
- Intelligent Tailwind class mapping
- Real-time preview
- Copy-to-clipboard functionality
- Generate modern HTML5 boilerplate code
- Integration options for popular frameworks and libraries:
- CSS Frameworks: Bootstrap, Tailwind CSS, Foundation, Pure.css
- CSS Reset/Normalize: Normalize.css, Reset.css
- UI Libraries: Next UI, Master CSS
- Icons: Font Awesome
- Animations: Animate.css
- Customizable meta tags and SEO options
- Responsive viewport settings
- Script loading optimization options
- Generated HTML with proper indentation
- Copy-to-clipboard functionality
- Visual Builders: Drag-and-drop interface for creating layouts
- Real-time Preview: See your changes instantly
- Code Generation: Get clean, optimized CSS and HTML code
- Modern UI: Material Design inspired interface
- Responsive Design: All tools work great on mobile and desktop
- No Dependencies: Built with vanilla JavaScript - no frameworks required
- Browser Support: Works in all modern browsers
- Clone the repository:
git clone https://github.com/yourusername/css-generators.git
- Open the project:
cd css-generators
- Serve the files using any local development server:
- Install Node.js from nodejs.org
- Install a simple HTTP server:
npm install -g http-server
- Navigate to the project directory:
cd path/to/generators
- Start the server:
http-server
- Open your browser and visit
http://localhost:8080
-
Install the "Live Server" extension in VS Code
-
Right-click on
index.html
in the root directory -
Select "Open with Live Server"
-
Access the tools:
- Grid Generator:
/grid/index.html
- Table Generator:
/table/index.html
- Masonry Generator:
/masonry/index.html
- Flexbox Generator:
/flexbox/index.html
- Gradient Generator:
/gradient/index.html
- CSS Converter:
/converter/index.html
- HTML5 Boilerplate Generator:
/boilerplate/index.html
Choose the method that best suits your development environment. The tools will work with any static file server.
- Open the Grid Generator tool
- Drag in the builder area to create your desired grid size
- Adjust rows, columns, and gap using the controls
- Copy the generated CSS code
- Open the Table Generator tool
- Use the visual builder to set table dimensions
- Customize border width and cell padding
- Switch between CSS and HTML tabs to copy the code
- Open the Masonry Generator tool
- Create your masonry layout visually
- Adjust columns and gaps as needed
- Copy the generated CSS code
- Open the Flexbox Generator tool
- Configure container properties (direction, justify, align)
- Adjust item properties and count
- Copy the generated CSS code
- Open the Gradient Generator tool
- Choose gradient type (Linear, Radial, or Conic)
- Add and customize color stops
- Adjust positions and angles
- Copy the CSS or Tailwind code
- Open the CSS Converter tool
- Paste your CSS code in the input area
- Choose your target format (LESS, SCSS, or Tailwind)
- Click Convert to transform your code
- Copy the generated code
- Open the HTML5 Boilerplate Generator tool
- Select desired frameworks and libraries
- Configure meta tags and viewport settings
- Choose script loading options
- Copy the generated HTML code
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-feature
- Commit your changes:
git commit -m 'Add new feature'
- Push to the branch:
git push origin feature/new-feature
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Material Icons for the beautiful icons
- Inter font family for the typography
- The web development community for inspiration
If you have any questions or suggestions, feel free to open an issue or reach out to me:
- GitHub: @axe020
You can serve these tools using any local development server. Here are a few options:
- Install Node.js from nodejs.org
- Install a simple HTTP server:
npm install -g http-server
- Navigate to the project directory:
cd path/to/generators
- Start the server:
http-server
- Open your browser and visit
http://localhost:8080
- Install the "Live Server" extension in VS Code
- Right-click on any HTML file
- Select "Open with Live Server"
Choose the method that best suits your development environment. The tools will work with any static file server.
Made with β€οΈ by Akshay Kadam