➡️ Open the demo ⬅️
1DIV is a demo web app that enables you to create multiple CSS designs by using a single HTML div
element. Your CSS designs are only saved locally, in the browser's memory. This demo app can be installed locally as a Progressive Web App (PWA).
The main goal of this demo is to showcase the Window Controls Overlay (WCO) PWA feature, which is described in Display content in the title bar. To make the most use of this demo, view it in a browser that's based on the Chromium engine, such as Microsoft Edge.
The demo app also demonstrates using constructable stylesheets. Constructable stylesheets are supported in the following web browsers:
- Browsers that are based on the Chromium engine, such as Microsoft Edge.
- Firefox, by enabling the
layout.css.constructable-stylesheets.enabled
flag.
To run this demo app as-is, you don't need to build it.
If you make a change to a file in the src
directory of this demo app, or update a dependency, you must build the app locally, and then commit the generated files. This demo app is not built automatically using Continuous Integration (CI).
To build this demo app locally, at a command prompt such as Windows Terminal, run the following commands in the present directory:
npm install
npm run build