Skip to content

Interactive CSS Grid Layout tool: Edit, view real-time changes, and share prototypes. Includes some helpful presets to get started.

License

Notifications You must be signed in to change notification settings

itsjavi/css-grid-playground

Repository files navigation

CSS Grid Playground Build Status

CSS Grid Playground lets you visually play with the CSS Grid Layout elements in the browser to quickly sketch up a layout for your site.

The layout, which provides a basic way of editing a container and its direct children, renders changes instantly as you update the corresponding CSS giving you instant feedback.

Demo

Tech Stack

  • Bun as a JS runtime, bundler and package manager
  • Vite + React.js + SWC
  • CSS Grid Layouts
  • SCSS Modules
  • OpenProps for CSS variables
  • Zustand for state management
  • localStorage to persist state
  • URL hash to share state
  • Github Actions as CI/CD
  • Github Pages for deployments

SVG Icons are from lucide.dev

Getting Started

First, you will need Bun 1.0.20 or higher installed on your machine. Then, you can run the following commands after cloning this repository, to get started:

bun install
bun run dev

Background

This project is more than a fork, but actually a total rewrite inspired in "CSS Grid Playground", the original work from @purplecones.

This version aims to provide better maintainability with a more modern codebase, and also a richer user experience while keeping its simplicity.