Skip to content

About

πŸ“ Visual Flexbox & CSS Grid playground β€” tweak container + per-item props live, presets (holy grail, auto-fit cards, navbar), export minimal CSS or Tailwind classes. By Prism Protocol

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Prism Flex & Grid Lab

Typing SVG

CI Live demo Vanilla JS Zero dependencies License

Prism Flex & Grid Lab screenshot

⚑ Overview

Prism Flex & Grid Lab is a hands-on playground for CSS layout. Switch between Flexbox and Grid, change any container property, click individual items to set grow/shrink/basis/order or grid placement, and resize the stage to test responsiveness. The generated code only contains properties that differ from defaults, and can be exported as Tailwind classes.

✨ Features

  • Flexbox + Grid modes with every common container property
  • Per-item controls β€” flex-grow/shrink/basis, order, align-self, grid-column/row
  • Presets: center anything, navbar, wrap cards, stack, 3-col, auto-fit cards, holy grail
  • Resizable stage to test wrapping and responsiveness
  • Minimal CSS output (defaults omitted) and Tailwind class export
  • State saved locally

πŸ“Έ Screenshots

Prism Flex & Grid Lab on desktop Prism Flex & Grid Lab on mobile

πŸš€ Quick Start

Use it online: https://krishyaa06.github.io/prism-flex-grid/

Run locally:

git clone https://github.com/krishyaa06/prism-flex-grid.git
cd prism-flex-grid
# open index.html in your browser, or serve it:
npx serve .

πŸ› οΈ Usage

  1. Choose Flexbox or Grid and adjust the container controls.
  2. Click an item in the preview to edit its own properties.
  3. Drag the stage corner to resize; copy the CSS or Tailwind output.

πŸ“ Project Structure

prism-flex-grid/
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ logo.png
β”‚   └── logo.svg
β”œβ”€β”€ css/
β”‚   β”œβ”€β”€ app.css
β”‚   └── prism.css
β”œβ”€β”€ js/
β”‚   β”œβ”€β”€ app.js   # controls and live preview
β”‚   β”œβ”€β”€ core.js   # CSS / Tailwind generators + presets β€” tested in Node
β”‚   └── prism.js
β”œβ”€β”€ test/
β”‚   └── core.test.js
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”œβ”€β”€ index.html
└── package.json

πŸ§ͺ Tests

npm test

Tests use the built-in node:test runner, so there is nothing to install. CI runs them on Node 20 and 22.

🀝 Contributing

  1. Fork the repo and create a branch: git checkout -b feature/my-idea
  2. Make your change and add a test in test/
  3. Run npm test and open a Pull Request

πŸ”· Part of Prism Protocol

Prism Flex & Grid Lab is one of the open-source tools built by Prism Protocol, a tech community where young builders learn, ship and compete together.

πŸ‘€ Author

Soumya Bhandare
Soumya Bhandare

Founder @ Prism Protocol
Discord
Instagram
X

πŸ“„ License

Released under the MIT License.

If you like this project, consider giving it a ⭐
"Build. Create. Compete." · Made with ⚑ by Prism Protocol

About

πŸ“ Visual Flexbox & CSS Grid playground β€” tweak container + per-item props live, presets (holy grail, auto-fit cards, navbar), export minimal CSS or Tailwind classes. By Prism Protocol

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages