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 captures the page's console calls and shows them in a panel, with color for each log level and value type, tables, timers, groups and stack traces. The Vanilla Breeze stylesheet sets all of its colors from the active theme.
Or install it from npm and import it in your own script.
npm
npm install @profpowell/browser-console
Import
import'@profpowell/browser-console';
Demo
A console panel on a Vanilla Breeze page. The buttons call console methods in the page, and the panel shows each call.
Usage
Add the element and give it a height. It fills the height of its container, so without one it has no room to show logs. From the moment it is on the page it captures every console call the page makes. The calls still reach the browser's own console.
Capture the page's console
<browser-console></browser-console><scripttype="module">console.log('Cart loaded', { items: 3, total: 42.5 });console.warn('Stock is low for item 1182');</script>
Give it a height
browser-console {block-size: 25rem;}
To show only entries you choose, turn off capture and add entries yourself.
A token is a CSS custom property that holds one design value, such as --color-surface. This component does not read VB tokens itself. Each color is a --bc-* property with a built-in dark or light value behind it.
The connection is a token bridge in the VB stylesheet: a rule with the selector browser-console that sets every --bc-* property from a VB token. It ships in vanilla-breeze.css and vanilla-breeze-core.css, so there is no extra file to load and no attribute to add.
VB token
Set on
--color-surface
Panel background and scrollbar track
--color-surface-raised
Header, inputs, buttons and table header
--color-hover-bg
Hover background of rows and buttons
--color-text
Text, and the accent of log and table entries
--color-text-muted
Timestamps and labels, debug and timer entries, and null values
--color-border
Borders, table borders and the scrollbar thumb
--color-info
info entries, numbers and dates
--color-warning
warn entries and their row tint, and booleans
--color-error
error entries and their row tint, and regular expressions
--color-success
Strings
--color-accent
Functions
--color-primary
DOM elements
--color-interactive
Active filter button and focus outline
The order is: the --bc-* property if it is set, then the built-in color for the current theme. With VB loaded, the bridge sets all 34 properties, so the panel follows the VB theme in both light and dark mode. The themeattribute and the theme button in the panel's header then change none of those colors.
Without the VB stylesheet the panel is dark by default and does not follow the page. Set theme="light" for the light palette.
The bridge sits in a cascade layer, so any rule you write outside a layer wins. To change one panel, set the property on it.