Skip to content

prazzon/Flexbox-Labs

Folders and files

NameName
Last commit message
Last commit date
Jan 18, 2025
Feb 8, 2025
Jan 30, 2025
Dec 20, 2024
May 11, 2024
Feb 3, 2025
Aug 13, 2024
Dec 20, 2024
Jan 26, 2025
Dec 20, 2024
Jan 10, 2025

Repository files navigation

Table of Contents

About

Flexbox Labs is a visual tool that helps you create layouts using CSS Flexbox. It offers an intuitive interface that shows changes in real-time, making it easy to experiment and learn.

Features

  • Live Preview: Preview changes in real-time as you adjust parameters.
  • Playground Customization: Add, delete, or duplicate flex items.
  • Undo and Redo Changes: Easily revert or redo modifications for easy experimentation.
  • Edit Flex Properties: Edit both flex container and individual flex item properties.
  • Save/Load Layouts: Save, load or delete custom layouts.
  • Pre-build Layouts: Load pre-built layouts/templates.
  • Export HTML and CSS Code: Get HTML and CSS code for the generated layout.

Built with

NextJS React TypeScript Sass Framer

FlexLab Screenshot

Usage

Visit the live demo and explore the playground using the toolbar. To customize the flex container, navigate to the Edit tab. Select any item from the playground to modify its individual flex properties. Once satisfied with your layout, click the code button on the tab to get the generated HTML and CSS code.

Live Demo

Check out the live demo of Flexbox Labs: Demo

Getting Started

1. Clone the repository

git clone https://github.com/prazzon/flexbox-labs.git

2. Navigate to the app directory

cd flexbox-labs

3. Install npm dependencies

npm install

4. Run the dev server

npm run dev

5. Open the app in your browser

Visit http://localhost:5173 in your browser.

Contributing

You are welcome to contributions to Flexbox Labs! If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/new-feature
  3. Make your changes and commit them: git commit -m 'Add new feature'
  4. Push to the branch: git push origin feature/new-feature
  5. Submit a pull request outlining the changes you've made.
  6. Wait for me to review and merge your pull request

License

Flexbox Labs is licensed under the MIT License.

Feedback

If you have any feedback, suggestions, or issues, please open an issue. Your input is appreciated!

Acknowledgements