Albert

Albert is a JavaScript library that allows you to generate SVGs and layout their elements using the Cassowary constraint solver.

Usage

Install it from NPM:

npm install albert-svg

or use the pre-built version from unpkg:

You can of course build this version from source from GitHub:

git clone https://github.com/evoL/albert.git
npm install
npm run build
# The dist/ directory appears.

Examples

A picture that presents concentric rectangles. A picture that presents a tic-tac-toe board.

See more examples.

Authored by RafaƂ Hirsz. Source code on GitHub
Copyright 2019 Google LLC. This is not an official Google product.