Skip to content

A web app for creating flexible layouts with the power of CSS Flexbox.

License

Notifications You must be signed in to change notification settings

payne/Flexbox-Labs

 
 

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

React TypeScript Sass vite 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/your-username/flexbox-labs.git

2. Install npm dependencies

npm install

3. Navigate to the app directory

cd flexbox-labs

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

About

A web app for creating flexible layouts with the power of CSS Flexbox.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 71.7%
  • SCSS 26.3%
  • Other 2.0%