Vespra
documentation.
Everything you need to launch, customize and extend Vespra — an award-style creative studio & portfolio template built with hand-written HTML, CSS and vanilla JavaScript.
01 — IntroductionWelcome to the shadow.
Thank you for choosing Vespra! The template is designed for creative studios, agencies, freelancers, designers and developers who want a portfolio that feels like an award-winning website out of the box.
Vespra has zero dependencies: no jQuery, no frameworks, no build step and no third-party stock licences. It ships with 10 unique homepages (including 4 real-time WebGL experiences, a Résumé/CV, and an interactive vCard), 10 inner pages, a demo showcase, 37 original rendered images, and a generative SVG artwork library.
Template/index.html straight in your browser to explore. For the best experience (page transitions, fonts and forms), use a local server, as described in Getting started.02 — FeaturesWhat’s inside
03 — Getting startedUp and running in a minute
1. Unzip the package
You will find the Template folder (21 HTML files, CSS, vanilla JS, WebGL engine, and 37 included images), the Documentation folder (this guide), plus README.txt and CHANGELOG.txt.
2. Preview locally
Double-click Template/index.html, or run a tiny local server from the Template folder — recommended, because some browsers restrict features on file:// URLs:
# Option A — Node.js
npx serve Template
# Option B — Python 3
cd Template && python3 -m http.server 8080
# then open http://localhost:8080
# Option C — VS Code
# install the "Live Server" extension and click "Go Live"
3. Upload
Upload the contents of the Template folder to your web host (via FTP, Netlify, Vercel, GitHub Pages or any static host). No server-side language is required.
index.html (Home 01 · Eclipse). To use another homepage, rename e.g. home-3.html to index.html, and update the “Home” links if needed.04 — File structureWhere things live
Vespra/
├── Template/
│ ├── index.html Home 01 · Eclipse
│ ├── home-2.html Home 02 · Lens
│ ├── home-3.html Home 03 · Sunrise
│ ├── home-4.html Home 04 · Index
│ ├── home-5.html Home 05 · Résumé / CV
│ ├── home-6.html Home 06 · Virtual card (vCard)
│ ├── home-7.html Home 07 · Slides (WebGL)
│ ├── home-8.html Home 08 · Liquid (WebGL)
│ ├── home-9.html Home 09 · Particles (WebGL)
│ ├── home-10.html Home 10 · Archive (WebGL)
│ ├── landing.html Demo showcase landing page
│ ├── about.html Studio / about us
│ ├── about-me.html Personal profile
│ ├── work.html Portfolio grid + list
│ ├── project.html Single case study
│ ├── services.html Services, process, pricing, FAQ
│ ├── blog.html Journal listing
│ ├── post.html Single article
│ ├── contact.html Contact + studios
│ ├── 404.html Error page
│ ├── coming-soon.html Countdown page
│ └── assets/
│ ├── css/vespra.css All styles (tokens at the top)
│ ├── js/art.js Generative SVG art library
│ ├── js/vespra.js Interactions & animations
│ ├── js/vespra-gl.js Hand-written WebGL 1 effects
│ └── img/ favicon.svg, og-image.svg, photo/ (37 images), demos/
├── Documentation/index.html
├── README.txt
└── CHANGELOG.txt
05 — PagesTwenty-one pages
| File | Highlights |
|---|---|
index.html | Halftone eclipse hero, giant wordmark, rotating badge, double marquee tapes, manifesto with inline pills, staggered work grid, filterable index with hover previews, capabilities, count-up stats. |
home-2.html | Inverting cursor lens hero, showreel pill, draggable film strip, moon-phase process, testimonial slider, lab bento grid with a live clock, journal rows, drag-to-fill wordmark footer. |
home-3.html | Sunrise dial hero with glass widgets, accordion services, before/after case study, logo wall, team with fun facts, pricing plans, sun footer with project form. |
home-4.html | Typographic project index with swapping previews, studio story, interactive year heatmap, awards + studio radio player, polaroid wall, rising sun footer. |
home-5.html | Personal Résumé / CV portfolio with rotating roles, experience accordion, animated skill rings, sticky stacking case studies, and testimonials. |
home-6.html | Interactive 3D flip Virtual Business Card (vCard) with tabbed About / Résumé / Work / Contact panels, lightbox portfolio, and one-click .vcf contact download. |
home-7.html | Full-screen WebGL liquid-wipe slider with custom shader distortion transitions, keyboard/wheel navigation, and automatic CSS fallback. |
home-8.html | Cursor-reactive WebGL light shader hero paired with velocity-distorted hover showcase images and editorial case blocks. |
home-9.html | Real-time 18,000-particle WebGL sculpture that morphs smoothly between geometric states as you scroll. |
home-10.html | Infinite draggable WebGL archive gallery with optical lens distortion, momentum physics, and project detail overlays. |
landing.html | Interactive demo showcase hub featuring live scrolling full-page previews of all 10 homepages, inner pages, and live interaction playground. |
about.html | Manifesto, stats, method, team of nine with hover secrets, awards, clients, testimonials, CTA band. |
about-me.html | Personal hero with portrait, “right now” cards, experience timeline, animated skill bars, selected work strip, talks & press. |
work.html | Category filters with live counter, grid/list view toggle, archive rows with floating preview. |
project.html | Case study meta, cover, challenge/approach, gallery, color palette, before/after, metrics, quote, credits, next-project link. |
services.html | Service accordion, process phases, pricing plans, FAQ accordion. |
blog.html | Featured post, category filters, search field, post grid, pagination, newsletter. |
post.html | Reading progress bar, sticky table of contents with active state, rich typography (quotes, lists, figures, code, callouts), share, author box, related posts, comments + form. |
contact.html | Validated enquiry form with chips, contact details, studio cards with live local time, FAQ. |
404.html | Interactive eclipse “0” that follows the cursor. |
coming-soon.html | Live countdown and notify form. |
06 — ColorsRe-theme from one place
All colors are CSS custom properties defined at the very top of assets/css/vespra.css. Change them once and the entire template follows.
#0c0b09
#15130f
#efe8da
#8b8578
#ff4a1c
#d7ff3a
:root {
--ink: #0c0b09; /* background */
--paper: #efe8da; /* text & light surfaces */
--sun: #ff4a1c; /* primary accent */
--lime: #d7ff3a; /* secondary accent */
}
var C = {…} near the top of assets/js/art.js. Update those values too if you change the accent colors. Many artworks also accept data-bg, data-fg and data-accent per element.07 — TypographyThree voices
| Role | Font | Variable |
|---|---|---|
| Display & UI | Inter (optical size + weight axes) | --f-grot |
| Expressive italic | Lora Italic | --f-serif |
| Labels & metadata | JetBrains Mono | --f-mono |
Fonts load from Google Fonts in the <head> of every page. To swap a typeface, replace the Google Fonts URL and update the matching variable:
:root { --f-serif: "Instrument Serif", Georgia, serif; }
The type scale is fluid. Sizes such as --fs-mega, --fs-d1 or --fs-h2 use clamp(), so headlines scale smoothly from 320px phones to 2560px screens. Use the helper classes .it (serif italic), .mono (uppercase label) and .display (tight heavy headline) anywhere.
@font-face from assets/fonts/. Then remove the Google Fonts <link> tags.08 — Spacing & layoutGutters, sections, breakpoints
.wrapadds the fluid side gutter (--gutter, 20–40px)..sectionadds the large vertical rhythm between sections (--section, 100–200px)..section--tightis 60% of it.- Helper grids:
.split-2,.cols-2,.grid-12,.flex-between. - Breakpoints: 1180px (header collapses to “Menu”), 900px (tablet: one-column layouts), 560px (phone).
09 — Header, menu & footerGlobal chrome
The header, fullscreen menu and footer are plain HTML repeated in each page, so you can edit them with any editor. Use your editor’s “find & replace in files” to update all pages at once (for example, your email address or social links).
- Active link: add
aria-current="page"to the current page’s link in.hdr__nav— it shows the orange dot. - Live clock in header:
<span data-clock="Europe/London" data-format="hms">— use any IANA time zone. - Menu overlay: the
.menublock. Any element withdata-menu-toggleopens/closes it; Esc closes it. - Footers: four styles are included — cream (
.ft--cream), “wild idea” with drag wordmark (Home 02), sun with project form (.ft--sun, Home 03) and rising sun (.ft--rise, Home 04). Copy any footer block into any page.
10 — Images & generative artYour work, your pixels
Every illustration is an empty <svg data-art="name"> that art.js draws at load time. To use your own images, replace the SVG with an <img> — the containers already crop with object-fit-style behaviour:
<!-- before -->
<div class="art"><svg data-art="observatory"></svg></div>
<!-- after -->
<div class="art"><img src="assets/img/my-project.jpg" alt="Project cover" style="width:100%;height:100%;object-fit:cover"></div>
Available artworks
| data-art | Description | Options |
|---|---|---|
eclipse | Halftone eclipse (hero) | — |
observatory | Ripple horizon with eclipse | data-text |
record | Spinning vinyl label | data-text, data-bg |
specimen | Type specimen | data-text |
topo | Topographic map + chart | data-seed |
poster, paperMoon, secondSun, lowtide, northbound, field | Poster-style project covers | data-text, data-bg |
eyes | Grid of eyes that follow the cursor | — |
phase | Moon phase icon | data-phase (0, .3, .5, 1), data-active |
dither, planet, wave, clock | Lab experiments (clock is live) | data-seed |
rays, reel, timeline, dusk, lost | Hero & section backgrounds | data-seed |
before, after | Before/after website mockups | — |
portrait | Abstract team portraits | data-kind 0–5, data-bg, data-fg, data-accent |
vinyl | Turntable for the player | — |
moodboard, typecrit, launch, trip, plant | Polaroid photos | — |
bands, orbit, letter, mesh, grid, rings, conic, orb | Journal covers & thumbnails | data-bg, data-fg, data-text, data-serif |
skyline | City cards | data-kind: london · lisbon · remote |
thumb | Homepage thumbnails in the menu | data-kind 1–4 |
Add your own artwork by extending the library: VespraArt.library.myArt = { vb: [800, 600], draw: function (svg, opts) { … } }.
11 — FormsMake them send
Forms with data-form include client-side validation (required fields and email format), animated labels, error messages and an animated success state. By default (action="#") they simulate a successful submit, so you can preview the design.
Formspree (recommended, free tier available)
- Create a form at formspree.io and copy your endpoint.
- Set the form action:
<form data-form action="https://formspree.io/f/yourid" method="post"> - Done —
vespra.jssubmits withfetchand shows the success message without leaving the page.
Netlify Forms
Add name="contact" data-netlify="true" to the <form> and set action="/".
Newsletter forms
Forms with data-newsletter validate the email and show an inline confirmation. Connect them to Mailchimp, Buttondown or ConvertKit by replacing the form with your provider’s embed and keeping the class names for styling.
12 — Data attributesBehaviour without writing JS
Add these attributes to any element. Modules only run when their attributes exist on the page.
| Attribute | What it does |
|---|---|
data-reveal | Fades/slides in on scroll. Values: (empty) up, fade, scale, left, clip (wipe reveal of the child). Delay with style="--d:.2s". |
data-split | Splits a headline into words that slide up one by one. |
data-count="1284" | Counts up when visible. Extras: data-decimals, data-pad. |
data-clock="Europe/Lisbon" | Live clock. data-format: hm, hms, h12. |
data-speed="0.15" | Parallax relative to its parent. |
data-marquee | Infinite marquee; wrap content in .marquee__track. Speed via style="--speed:30s". Add .marquee--rev to reverse. |
data-magnetic=".3" | Element follows the cursor magnetically. |
data-cursor="View ↗" | Shows a label in the cursor while hovering. data-cursor-color="sun" for orange. |
data-peek="poster" | Floating artwork preview that follows the cursor over a row. |
data-drag-scroll | Mouse-drag horizontal scrolling. Pair with data-strip-prev, data-strip-next, data-strip-count and .strip__prog. |
data-ba | Before/after comparison slider (pointer + arrow keys). |
data-lens | Section in which .lens follows the cursor. |
data-filter-group="#target" | Filter buttons (data-filter="brand", * for all) for items with data-cat="brand web". Optional data-filter-count="#id". |
data-view-toggle="#target" | Grid/list switch using buttons with data-view="grid|list". |
data-slider | Fading testimonial slider. data-autoplay="7000" (0 disables). |
data-player | Studio radio player UI (play/pause, tracks, spinning vinyl). |
data-heatmap | Interactive year heatmap. data-heat-year="2026". |
data-countdown="2027-01-15T09:00:00" | Live countdown with data-d, data-h, data-m, data-s children. |
data-tilt | 3D tilt on hover. |
data-copy | Copies the page URL (or the attribute value) to the clipboard. |
data-year | Prints the current year. |
data-no-transition | On a link: skip the page transition. |
13 — ComponentsCopy, paste, ship
All components are documented in the CSS table of contents. Some of the most reusable:
Button
<a class="btn btn--solid" href="contact.html" data-magnetic>Start a project <i class="btn__icon">→</i></a>
<!-- variants: btn (outline), btn--solid, btn--sun, btn--lime, btn--ink -->
Section head
<div class="shead wrap">
<h2 data-split>Selected <span class="it c-sun">work</span></h2>
<div class="shead__meta mono"><span>(02) — 24 projects</span></div>
</div>
Accordion
<div class="acc" data-single>
<div class="acc__item is-open">
<button class="acc__head" type="button"><span class="mono">01</span><h3>Title</h3><span class="mono">Tags</span><span class="acc__pm"></span></button>
<div class="acc__body"><div><div class="acc__inner"> … </div></div></div>
</div>
</div>
<!-- add class "acc--faq" for the compact FAQ style -->
Work card
<a class="wcard" href="project.html" data-cursor="View ↗" data-reveal>
<div class="art" data-reveal="clip"><svg data-art="observatory"></svg></div>
<div class="wcard__tags mono"><span class="tag">Brand</span></div>
<div class="wcard__cap"><h3>Project <span class="it">name</span></h3><span class="mono">Client · 2026</span></div>
</a>
Other components: .irow (index rows), .note (journal rows), .pcard (post cards), .plan (pricing), .person (team), .aw (awards), .logos (logo wall), .phases (process), .quote (testimonial), .bento, .metrics, .stats, .caps, .timeline, .skills, .cta-band, .newsletter.
14 — Motion & transitionsTurn it up or down
- Preloader: shown once per browser session. Remove the
.preloaderblock from a page to disable it. - Page transitions: the
.curtainelement animates between internal pages. Remove it to disable; adddata-no-transitionto individual links. - Custom cursor: only on devices with a fine pointer. Remove
cursorfrom theboot()list invespra.jsto disable. - Film grain: remove the
.graindiv or change its opacity in CSS. - Easing: global curves live in
--easeand--ease-in-out. - Reduced motion: when the visitor prefers reduced motion, all animations, reveals, transitions, the preloader and the cursor are disabled automatically.
15 — JavaScript APIUnder the hood
vespra.js is written in plain ES5-compatible JavaScript inside a single closure. Each feature is a small function listed in boot():
[preloader, transitions, header, menu, cursor, magnetic, split, marquee, reveal,
counters, clocks, parallax, lens, hoverPeek, projectList, dragScroll, beforeAfter,
outlineDrag, accordion, slider, player, filters, viewToggle, heatmap, eyes, forms,
countdown, readingProgress, toc, toTop, lost, tilt, copy, misc]
Delete a name to remove a feature. If you inject new HTML dynamically, call VespraArt.renderAll(container) to draw new artworks, and Vespra.boot() only on a fresh page.
vespra.css, art.js and vespra.js and keep the markup and class names.16 — AccessibilityBeautiful and usable
- Semantic landmarks (
header,nav,main,footer) and a “Skip to content” link. - Visible lime focus rings for keyboard users; the menu closes with Esc.
- Decorative art is hidden from screen readers; meaningful art carries
aria-label. - Accordions expose
aria-expanded; the before/after slider supports arrow keys. - Form errors are announced with
aria-invalidand readable messages. - Content stays visible without JavaScript; motion respects
prefers-reduced-motion.
17 — Performance & SEOFast by default
- No images and no libraries: the whole template (CSS + JS) is under 150 KB uncompressed.
- Each page has a unique
<title>, meta description and Open Graph tags — edit them in the<head>. - Replace
assets/img/og-image.svgwith a 1200×630 JPG/PNG for best social-sharing support. - Minify
vespra.cssandvespra.jsfor production if your host doesn’t do it automatically.
18 — Browser supportEverywhere that matters
Latest two versions of Chrome, Edge, Firefox, Safari (macOS & iOS) and Samsung Internet. Older browsers receive a graceful, fully readable fallback.
19 — CreditsStanding on shoulders
| Asset | License | Source |
|---|---|---|
| Inter | SIL Open Font License 1.1 | fonts.google.com/specimen/Inter |
| Lora | SIL Open Font License 1.1 | fonts.google.com/specimen/Lora |
| JetBrains Mono | SIL Open Font License 1.1 | fonts.google.com/specimen/JetBrains+Mono |
| Illustrations | Included — original generative SVG | assets/js/art.js |
| Icons | Unicode characters — no icon font | — |
All names, companies, people, projects, testimonials and awards shown in the demo are fictional and are used for illustration only.
20 — ChangelogVersion history
v1.0.0 — Initial release
+ 4 homepages: Eclipse, Lens, Sunrise, Index
+ 10 inner pages: Studio, About me, Work, Project, Services,
Journal, Post, Contact, 404, Coming soon
+ Preloader, page transitions, custom cursor, magnetic buttons
+ 30+ generative SVG artworks
+ Full documentation
21 — SupportWe’re here
If something isn’t clear, please contact us through the item’s support tab on the marketplace. Include your purchase code, the page and browser you’re using, and a short description or screenshot. We usually reply within one business day.
Support covers bugs and questions about the template’s features. Custom development is not included, but we’re happy to point you in the right direction.
Thank you — now go make some shadows. ✺