Frame any element
One image supplies the corners and the repeating edges. The frame follows its content at any size.
Open-source ornament library
Borders, decorations and illustrations based on historical ornament plates and manuscripts, plus newly authored pieces. Use them as CSS frames, repeating dividers or images, with plain CSS, JavaScript or React.
npm i @ranx729/medieval-ornamentsEvery design comes as PNG and lossless WebP in several sizes. Floral borders and plate traces are also available as SVG. Each design records how it was made.
Usage
Each example is live. Pick a design and copy the code: it is exactly what you would write in your own project.
One image supplies the corners and the repeating edges. The frame follows its content at any size.
Dividers repeat whole sections only, centred in the available width, so the pattern never ends mid-motif.
One chapter comes to a close.
And another begins.
Decorations and illustrations are complete images. They keep their proportions, and most have transparent backgrounds.
A small figure in the margin keeps the reader company.
Components, styles, metadata and search for vanilla JavaScript and React. It contains no artwork.
npm i @ranx729/medieval-ornamentsCurrent version
The runtime loads each image from an exact package version on a public CDN. Install a package only to self-host or work offline.
Every image, the runtime and the plain-JavaScript examples, ready to self-host.
Extract the browser and PNG ZIPs into the same directory for the complete offline collection.