components

Everything inside Vendra.

Six palettes, eighteen font packs, an icon set of 418 glyphs, the blocks a shop is built from, and all 35 pages. Every value on this page comes from the template files themselves; click an icon to copy its class.

Vendra Icons (preview, not in 1.0.0)

An icon set Perforks drew for Vendra: 418 names in four weights, plus a two-colour duotone and a filled style from the same glyphs. It is not in the 1.0.0 download: the pages use Bootstrap Icons (MIT), and this set is shown here as a preview of what is coming. Search by name, click to copy the class.

418 icons

<link rel="stylesheet" href="vendra-icons.css">

<i class="vi vi-cart"></i>                 regular
<i class="vi-light vi-cart"></i>           light
<i class="vi-bold vi-cart"></i>            bold
<i class="vi-duotone vi-truck"></i>        two colours: --vi-secondary, --vi-secondary-opacity
<i class="vi-fill vi-truck"></i>           filled second layer
<i class="vi vi-search vi-lg vi-fw"></i>   sizes vi-xs … vi-4x, fixed width vi-fw
<i class="vi vi-settings vi-spin"></i>     vi-spin, vi-pulse, vi-beat (off with reduced motion)
<span class="vi-tile"><i class="vi vi-package"></i></span>   icon on a tinted square

Vendra 1.0.0 ships Bootstrap Icons, used on every page. Vendra Icons is not part of the download yet; when it is, the changelog will say so.

Palettes

Each demo is a block of custom properties on html[data-demo] in src/scss/_tokens.scss: background, surfaces, ink, an accent and the sale and rating colours. Dark mode shares one neutral base and keeps each accent.

Atelier Line · fashiondata-demo="fashion", the default

  • Background#faf8f5--vd-bg
  • Surface#ffffff--vd-surface
  • Muted#f2eee8--vd-muted
  • Card#efe9e1--vd-card-bg
  • Border#e6e1d8--vd-border
  • Ink#1d1f24--vd-ink, headings, buttons
  • Accent#a8532c--vd-accent
  • Sale#b43b26--vd-sale
  • Star#d79a1e--vd-star

Oak & Linen · furnituredata-demo="home"

  • Background#f4f1ec--vd-bg
  • Muted#ebe5dc--vd-muted
  • Card#e9e3d9--vd-card-bg
  • Border#ddd5c8--vd-border
  • Ink#24211c--vd-ink
  • Accent#7a6548--vd-accent
  • Accent, dark mode#c2a77e--vd-accent on data-bs-theme="dark"
  • Sale#a4452c--vd-sale

Volt Lab · electronicsdata-demo="tech"

  • Background#f4f6fa--vd-bg
  • Muted#e9edf5--vd-muted
  • Card#eef1f7--vd-card-bg
  • Border#dfe4ee--vd-border
  • Ink#0d1324--vd-ink
  • Accent#2f5bff--vd-accent, also the “new” badge
  • Accent, dark mode#5b7cff--vd-accent on data-bs-theme="dark"
  • Background, dark mode#0b0f1a--vd-bg on data-bs-theme="dark"
  • Sale#e5372b--vd-sale
  • Star#f2a516--vd-star

Lumen Skin · beautydata-demo="beauty"

  • Background#fbf6f3--vd-bg
  • Muted#f5ebe6--vd-muted
  • Card#f4e7e2--vd-card-bg
  • Border#eddcd5--vd-border
  • Ink#2b1d20--vd-ink
  • Accent#b45d6e--vd-accent
  • Accent, dark mode#d98597--vd-accent on data-bs-theme="dark"
  • Sale#b43b4e--vd-sale

Fresh Basket · grocerydata-demo="grocery"

  • Background#f7f8f3--vd-bg
  • Muted#edf1e4--vd-muted
  • Card#f1f3ea--vd-card-bg
  • Border#e2e7d8--vd-border
  • Ink#17271c--vd-ink
  • Accent#2f7d4f--vd-accent, also the “new” badge
  • Accent, dark mode#4fae76--vd-accent on data-bs-theme="dark"
  • Background, dark mode#0e1410--vd-bg on data-bs-theme="dark"
  • Sale#e0532e--vd-sale
  • Star#f0a91b--vd-star

Stride · sportdata-demo="sport"

  • Background#f3f3f1--vd-bg
  • Muted#e8e8e4--vd-muted
  • Card#e6e6e2--vd-card-bg
  • Border#dcdcd7--vd-border
  • Ink#0d0d0d--vd-ink
  • Accent#d4ff3a--vd-accent, with dark text (--vd-on-accent #0d0d0d)
  • Sale#e3261b--vd-sale

Dark mode, shareddata-bs-theme="dark" on every demo; each keeps its accent

  • Background#111214--vd-bg
  • Surface#18191c--vd-surface
  • Muted#1f2024--vd-muted
  • Field#1b1c20--vd-field
  • Card#1d1e22--vd-card-bg
  • Border#2c2e33--vd-border
  • Ink#f3f1ed--vd-ink
  • Body text#d6d6d3--bs-body-color
  • Secondary text#9a9ca3--bs-secondary-color

A custom accent from the settings panel overrides --vd-accent on the html element; to make your own style, copy one block in _tokens.scss, rename it and set data-demo on the page.

Fonts

Every demo ships three font packs (display, body and accent faces) and uses the first by default: 18 packs, 46 families, all self-hosted in the Latin subset through Fontsource, SIL Open Font Licence. Below, the default display face of each demo and the shared body face.

Fixed with data-fonts="…" on the html element (keys: atelier, couture, gallery, volt, circuit, signal, market, harvest, orchard, oak, linen, nord, lumen, bloom, velvet, stride, pulse, kinetic). New packs: install the Fontsource package, add it to scripts/sync-fonts.js, run npm run fonts and add a line to $packs in src/scss/_fonts.scss.

Components

The blocks the pages are built from, in src/partials and src/js. Each one is bound by a data-vd-* attribute, so it works on any page you put it on. The links open the block in the live demo.

Shop pages and flows

The paths a visitor takes, and what the pages do along them, all in the browser.

All pages

35 pages in the HTML edition, and the same 35 as React components. Each link opens the page in the live demo.

The React edition answers the same names as routes (/shop and /shop.html both work); the live demo has it under /react/.

What is yours

The parts of the download that are not a library: made for Vendra, and part of the end product you build under your licence.

Third-party parts stay under their own licences: Bootstrap 5.3 and Popper (MIT), Bootstrap Icons (MIT), React, React DOM and React Router (MIT), the fonts (SIL OFL 1.1, through Fontsource) and the OpenStreetMap embeds (ODbL, loaded from openstreetmap.org, not included).