Open-source ornament library

Medieval ornaments for the web

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-ornaments
A winged pig from a medieval manuscript
Flying pigFramed with the red berry vine border

What’s inside

Every 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

Three ways to use them

Each example is live. Pick a design and copy the code: it is exactly what you would write in your own project.

Frame any element

One image supplies the corners and the repeating edges. The frame follows its content at any size.

Notes from the gardenA quiet place for a thought or a favourite passage.

        

Separate passages

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.


        

Place an image beside your text

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.


        

Install and download

Runtime

Components, styles, metadata and search for vanilla JavaScript and React. It contains no artwork.

npm i @ranx729/medieval-ornaments

Current version

Artwork packages

The runtime loads each image from an exact package version on a public CDN. Install a package only to self-host or work offline.

    Offline download

    Every image, the runtime and the plain-JavaScript examples, ready to self-host.

    Download both ZIPs

    Extract the browser and PNG ZIPs into the same directory for the complete offline collection.