0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
Wireframe mode for rapid HTML prototyping. Apply sketch-like rendering with four fidelity levels, dark mode support, and element labeling via a single data attribute.
Overview
The data-wireframeattribute converts any page or container into a sketch-like wireframe. It applies grayscale rendering, dashed borders, and hand-drawn fonts to help focus on layout and structure during prototyping.
Wireframe mode requires the dev CSS bundle. The JS API requires the dev JS bundle.
Bundle setup
12345678
<!-- Main CSS (always needed) --><linkrel="stylesheet"href="/cdn/vanilla-breeze.css"><!-- Dev CSS (adds wireframe, debug tools) --><linkrel="stylesheet"href="/cdn/vanilla-breeze-dev.css"><!-- Dev JS (adds VanillaBreeze.wireframe API) --><scripttype="module"src="/cdn/vanilla-breeze-dev.js"></script>
How It Works
Add data-wireframe to <html> for full-page wireframe, or to any container for scoped wireframing
CSS applies a grayscale filter, replaces fonts with sketch fonts, converts borders to dashed lines, and removes shadows
Four fidelity levels control how abstract the rendering is
Dark mode is supported via data-mode="dark" or system preference
Basic wireframe
12345678
<!-- Apply to html for full-page wireframe --><htmldata-wireframe><!-- Or scope to a container --><sectiondata-wireframe><h2>This section renders as a wireframe</h2><p>Rest of the page is normal.</p></section>
Fidelity level: lo, mid, hi, annotate, or empty (defaults to mid behavior).
data-wf-label
string
Element label text shown in annotate mode via ::before pseudo-element.
data-wf-annotate
boolean
Composable annotation layer. Unlike annotate fidelity, this overlays element labels on top of any fidelity level. Uses ::after so it coexists with data-wf-label badges.
data-wf-callout
string
Design review comment. JS renders a numbered <mark> marker and collects text into a footnote panel.
Fidelity Levels
Level
Fonts
Borders
Colors
Best For
lo
Redacted Script (scribble)
Rough dashed
Pure B&W
Early concept sketches
mid (default)
Flow Block
Dashed
Grayscale
Layout review
hi
System fonts
Subtle
Near-production
Content review, stakeholder demos
annotate
System fonts
Labeled
Grayscale + labels
Design specs, developer handoff
Fidelity levels
123456789101112
<!-- Lo: scribble font, rough borders, pure B&W --><htmldata-wireframe="lo"><!-- Mid: block font, dashed borders, grayscale (default) --><htmldata-wireframe="mid"><htmldata-wireframe><!-- Hi: system fonts, subtle styling, near-production --><htmldata-wireframe="hi"><!-- Annotate: element labels visible --><htmldata-wireframe="annotate">
Element Labels
Add data-wf-label to any element to show a label badge in annotate mode. The JS API can also auto-label elements using their alt text (images) or explicit labels.
Element labels
123456789
<sectiondata-wf-label="Hero Section"><h1>Page Title</h1><p>Subtitle text here.</p></section><navdata-wf-label="Primary Navigation"><ahref="#">Home</a><ahref="#">About</a></nav>
Labeling API
123456
// Auto-label all elements that have data-wf-labelVanillaBreeze.wireframe.labelElements();// Manually label an elementVanillaBreeze.wireframe.label('.hero', 'Hero Banner');VanillaBreeze.wireframe.label(element, 'Primary Navigation');
JavaScript API
The VanillaBreeze.wireframe object provides programmatic control. Available when the dev JS bundle is loaded.
Toggle
Toggle wireframe
1234567891011
// Toggle wireframe on/offVanillaBreeze.wireframe.toggle();// Toggle with specific fidelityVanillaBreeze.wireframe.toggle('lo');// Set fidelity directlyVanillaBreeze.wireframe.setFidelity('hi');// Remove wireframe modeVanillaBreeze.wireframe.setFidelity('');
Toggle wireframe on/off. Returns whether now enabled.
setFidelity(level)
void
Set fidelity. Pass empty string to disable.
isActive()
boolean
Check if wireframe mode is active.
getFidelity()
string|null
Get current fidelity level.
labelElements()
void
Auto-label elements with data-wf-label and images with alt text.
label(target, text)
void
Label a specific element or CSS selector.
toggleAnnotations()
boolean
Toggle composable annotations. Returns whether now enabled.
addCallout(target, text)
void
Attach a design review comment to an element.
removeCallout(target)
void
Remove a callout from an element.
renderCallouts()
void
Inject numbered <mark> markers on all [data-wf-callout] elements.
renderCalloutPanel(container?)
void
Render <aside> footnote panel with ordered list of callout texts.
toggleCallouts()
boolean
Toggle callout markers and panel visibility. Returns whether now visible.
Composable Annotations
The data-wf-annotateattribute layers element labels on top of any fidelity level. Unlike the annotate fidelity mode, this lets you see lo-fi or hi-fi styling with labels overlaid.
Annotations use ::after pseudo-elements (positioned top-right), so they never collide with data-wf-label badges (which use ::before, top-left). Both can appear simultaneously on the same element.
Composable annotations
1234
<!-- Composable annotation attribute --><htmldata-wireframe="lo"data-wf-annotate><!-- Lo-fi styles WITH element labels overlaid --></html>
Toggle annotations via JS
123456
// Toggle annotations independently of fidelityVanillaBreeze.wireframe.toggleAnnotations();// Combine: lo-fi wireframe WITH element labelsVanillaBreeze.wireframe.setFidelity('lo');VanillaBreeze.wireframe.toggleAnnotations();
Callouts & Comments
The callout system adds design review comments to wireframe elements. This creates a three-tier overlay model:
All three can be active simultaneously without collision.
Callout attributes
1234567
<sectiondata-wf-callout="Consider full-bleed hero with background image"><h2>Hero</h2></section><formdata-wf-callout="Add phone number field and CAPTCHA"><!-- form fields --></form>
Callout API
123456789101112
// Add callouts programmaticallyVanillaBreeze.wireframe.addCallout('.hero', 'Needs larger CTA button');// Render markers and footnote panelVanillaBreeze.wireframe.renderCallouts();VanillaBreeze.wireframe.renderCalloutPanel();// Toggle all callouts on/offVanillaBreeze.wireframe.toggleCallouts();// Remove a calloutVanillaBreeze.wireframe.removeCallout('.hero');
Dark Mode
Wireframe tokens automatically invert for dark mode, either via the data-mode="dark"attribute or prefers-color-scheme: dark media query.
Dark mode wireframe
1234
<!-- Explicit dark mode --><htmldata-wireframedata-mode="dark"><!-- Auto dark mode via system preference works too -->
CSS Tokens
Wireframe mode exposes custom properties you can use or override in your own styles.
<!-- Grid column overlay (works with or without wireframe) --><bodydata-show-grid><!-- Spacing / box-model debug overlay --><bodydata-show-spacing><!-- Combine with wireframe --><htmldata-wireframe="lo"><bodydata-show-griddata-show-spacing>
Integration with Prototyping Tools
Wireframe mode works seamlessly with other prototyping attributes:
data-mock — placeholder media adapts to wireframe tokens (fill, stroke, border)
data-lorem — in lo fidelity, placeholder text gets abstract letter-spacing and reduced opacity