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…
A web component that draws a browser window, or a phone or tablet, around a demo page or any HTML you put inside it. The Vanilla Breeze stylesheet sets the frame's colors, fonts and corner radius from the active theme.
Not bundled. Vanilla Breeze lists it as a development dependency and imports it only in src/doc-extras.js, a bundle built for this docs site and left out of the npm package. You load the component yourself. The VB stylesheet does include the rules that theme it.
Install
Load the component from a CDN. It is one file with no stylesheet.
A token is a CSS custom property that holds one design value, such as --color-surface. Two things connect the component to Vanilla Breeze tokens.
First, the component itself reads seven VB tokens as fallbacks.
VB token
Drives
--color-surface
Window background, address bar background and content background
--color-surface-raised
Header background
--color-border
Border
--color-text
Text
--color-text-muted
Muted text, such as the address
--radius-m
Outer corner radius
--radius-s
Radius of the address bar and buttons
Second, the VB stylesheet contains a token bridge: a rule with the selector browser-window that sets the component's --browser-window-* properties from VB tokens. It ships in vanilla-breeze.css and vanilla-breeze-core.css, so there is no extra file to load and no attribute to add. Besides the tokens above, the bridge sets these.
VB token
Set on
--color-surface-sunken
Address bar background
--color-surface-alt
Button hover background
--color-interactive
Accent color
--color-error, --color-warning, --color-success
The close, minimize and maximize buttons
--font-sans, --font-mono
Interface font and the font of the source view
For each color the order is: the --browser-window-* property if it is set, then the VB token, then the component's built-in color. With VB loaded, the bridge is what sets the --browser-window-* properties.
Light or dark is chosen separately. With no modeattribute, the component follows the nearest data-mode on itself or an ancestor, then page-level signals such as data-theme on <html>, then the operating system preference. When the framed page is on the same origin, it sets that page's color-scheme to match.
The bridge sits in a cascade layer, so any rule you write outside a layer wins. To change one window, set the property on it.