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.
- 35pages, in HTML and React
- 6demo palettes, light and dark
- 18font packs, three per demo
- 2editions: HTML and React 19
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.
<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.
-
Considered wardrobe staples, cut from natural fibres.
Pack Atelier: Fraunces, Manrope, Jost. The other fashion packs: Couture (Playfair Display, Karla, Syne) and Gallery (DM Serif Display, DM Sans, DM Mono).
-
Slow-made furniture, delivered fully assembled.
Pack Oak: Instrument Serif, Instrument Sans, IBM Plex Mono. Also Linen (Cormorant Garamond, Mulish, Raleway) and Nord (Newsreader, Inter Tight, DM Mono).
-
Gear that just works. Up to 30 hours of battery.
Pack Volt: Space Grotesk, Inter, JetBrains Mono. Also Circuit (Sora, Plus Jakarta Sans, Space Mono) and Signal (Unbounded, Inter Tight, IBM Plex Mono).
-
Clean, honest skincare for sensitive skin.
Pack Lumen: Bodoni Moda, Jost, Cormorant Garamond. Also Bloom (Gilda Display, Raleway, Josefin Sans) and Velvet (Marcellus, Hanken Grotesk, Tenor Sans).
-
Groceries in an hour, from independent growers.
Pack Market: Outfit, DM Sans, Sora. Also Harvest (Young Serif, Figtree, Bricolage Grotesque) and Orchard (Lora, Nunito, Lexend).
-
BUILT FOR THE LONG RUN. TESTED OVER THOUSANDS OF KILOMETRES.
Pack Stride: Archivo, Barlow, Barlow Condensed; the sport headings are set uppercase and condensed. Also Pulse (Anton, Rubik, Oswald) and Kinetic (Big Shoulders Display, Chivo, Chivo Mono).
-
Paragraphs, forms and product names. The quick brown fox jumps over the lazy dog, 0123456789.
The body face of the Atelier pack and of the :root tokens. A page loads only the three files of its pack; a visitor picks another pack in the settings panel, remembered per demo.
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.
-
Five header layouts
classic, center, search, overlay and bold, chosen per page in src/data/pages.js (header: …). The fashion home uses center, electronics and grocery search, furniture overlay, sport bold.
-
Mega menu
Category columns with a promo panel on the shop menu, and an offcanvas mobile navigation with the same links and an account block.
-
Header actions
Search, account, wishlist, compare and cart buttons with live counters (data-vd-count) and the cart total, plus a currency label switch and a rotating announcement bar.
-
Product card
Image with hover photo, badge, category, rating, price and compare-at price, colour dots, quick-view, wishlist and compare tools, and “Add to cart” or “Choose options” when the product has sizes or colours. The product is JSON on the card (data-vd-product).
-
Quick view
A modal with the gallery, options, quantity and add to cart for any card; opens on its own when a product needs an option chosen.
-
Cart drawer
Offcanvas cart with quantity steppers, remove, subtotal, a free-shipping meter (free from $75) and an upsell rail; the header counters update on every change through the vd:cart event.
-
Search
A modal with live results as you type: accent- and case-insensitive on name, category and SKU, with the matches highlighted, a count and a link to the results page. Some headers carry an inline search field instead.
-
Shop filters and toolbar
Category, price range, colour, size, rating, on sale and in stock, with removable filter chips, a result count, sorting (featured, newest, price, rating, name), grid or list view and “load more”. The state is written to the URL, so a filtered view can be linked.
-
Product page
Gallery with thumbnails, lightbox and image counter, colour and size options, size guide, delivery estimate and cut-off, sticky add-to-cart bar, “buy now”, a bundle (“complete the look”) with its own total, specs, reviews with a form and “helpful” votes, recently viewed and a rail of related products. One template serves every product: product.html?item=slug.
-
Gallery product layout
The second product layout, with a stacked gallery and the same engine underneath.
-
Cart page and checkout
Cart table, promo codes (WELCOME10, FREESHIP and VENDRA20 in the demo), shipping options, 8% demo tax, an order summary and a confirmation page that reads the order back. Card fields are a visual demo only.
-
Wishlist and compare
A wishlist grid with “add all to cart” and share, and a compare table for up to four products with a “differences only” switch.
-
Hero slider
Autoplay, dots, arrows and swipe.
-
Product rail
A horizontal carousel of cards with previous and next arrows, used on the homes, the product page and the cart.
-
Bento hero, deals and aisles
The electronics bento grid, deal cards, the grocery delivery hero with a postcode check, category tiles (aisles) and a how-it-works step list.
-
Countdown
To a date or for a number of hours, on the sale banners and the coming-soon page.
-
Shop the look
Hotspots on a lifestyle photo that open the product.
-
Tabs and count-ups
Pill filters over a grid of items, and numbers that count up when they come into view.
-
Settings panel
Light, dark or auto, demo style, accent colour, font pack, radius, width, card style, image ratio, header, right-to-left and seven effect switches; kept in localStorage and applied before the first paint, with a “copy config” button.
-
Effects
Scroll reveals, word-by-word headlines, parallax, magnetic buttons, page transitions, a custom cursor, a preloader and film grain, each with a switch and all off under reduced motion.
-
Toasts, cookie bar, newsletter
An ARIA-live toast stack for cart and form feedback, a cookie notice remembered in the browser, a newsletter popup and footer form, and a validated demo form that confirms with a toast.
-
Account blocks
Account navigation, an orders table with status tabs and search, an order detail with print, addresses with remove, sign-in with a password strength meter.
-
Store finder, FAQ, tracking, gift cards
A store list with search and tags on an OpenStreetMap embed, a searchable FAQ, an order tracking form with a result, and a gift card form with a live preview.
Shop pages and flows
The paths a visitor takes, and what the pages do along them, all in the browser.
-
Browse → filter → product
Home, shop grid, list or categories, then a product page rendered from the catalogue by its slug.
-
Search
Live results in the header modal, then a full results page.
-
Add → cart → checkout → confirmed
Add from a card, the quick view or the product page; the drawer, then cart.html, checkout.html with a promo code and shipping choice, then order-complete.html. The cart is cleared when the demo order is placed.
-
Wishlist and compare
Toggle from any card; the lists survive a reload and have their own pages.
-
Account
Sign in, overview, orders, one order, addresses; demo data from the catalogue file.
-
After the order
Track an order, help and FAQ, contact with a map, store finder, gift cards.
-
Going live
Replace the functions in src/js/store.js (cart, wishlist, compare) and src/js/pages/checkout.js (totals, place order) with calls to WooCommerce, a headless API or your own backend; the pages only talk to them through events.
All pages
35 pages in the HTML edition, and the same 35 as React components. Each link opens the page in the live demo.
Home pages6
Product4
Cart and checkout4
Account5
Content8
Utility3
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.
-
The browser-side shop engine
src/js: store.js (cart, wishlist, compare in localStorage), commerce.js (counters, drawer, quick view, options), search.js, settings.js, effects.js, ui.js and the page scripts for shop, product, cart, checkout, wishlist and compare. Exposed as window.Vendra with a small API and vd:* events.
-
One catalogue file
src/data/catalog.js: 48 products across the six shops, 18 categories, the six demos, posts, reviews, orders, FAQ and the font packs. Every page is generated from it; the product page and search read it at runtime from a JSON block in the page.
-
The page sources
35 Handlebars pages and 20 partials (header, nav, card, overlays, settings, footer…), with per-page settings in src/data/pages.js and the template helpers in src/data/helpers.js.
-
The styles
18 SCSS files on top of Bootstrap 5.3: the tokens of each demo, the font packs, header, cards, shop, product, checkout, account, overlays, effects and the settings panel. Built to one readable and one minified stylesheet, plus a right-to-left twin.
-
The React edition
react/: a page component for each of the 35 pages, the persistent overlays, a router that answers /name and /name.html, and a bridge that reuses the same engine, so both editions behave the same. The components are generated from the HTML build and can be edited as plain JSX.
-
Build, tests and server configs
Vite configs for the pages and the engine, a post-build step that minifies and writes the RTL stylesheet and the Content Security Policy hashes, a Playwright smoke test of every page and the shopping flows, a responsive check at five widths, and header configs for Apache and nginx.
-
Vendra Icons
The 418-glyph icon set above, in regular, light, bold and duotone fonts with a stylesheet of sizes, transforms, animations, stacks and tiles.
-
Demo photography
The product and lifestyle photographs were made for Vendra with generative AI: the people and products in them are fictional. Use them while you build; replace them with your own in the end product.
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).