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…
Displays the result of a calculation or user action. Semantically ideal for form validation messages, computed values, and dynamic results. Used extensively in the form-field custom element for validation feedback.
Any result that is derived from other form controls
Why Output over div/span?
The <output> element is purpose-built for displaying results of calculations and user actions. It has three advantages that <div> and <span> lack:
Semantic meaning: Browsers and assistive technology understand that output contains a computed result
A live region by default: Output has the implicit role status, which carries aria-live="polite" and aria-atomic="true", so screen readers announce the whole new value when its content changes
Labelable and form-associated: A <label for> names it, form.elements lists it, and form.reset() restores its default value
forattribute: Records which inputs produced the result (readable from script as output.htmlFor). Browsers do not expose this relationship to assistive technology; use aria-describedby or aria-controls for that
Approach
Semantics
Accessibility
Recommendation
<output>
Result of action
Implicit status live region, labelable
Recommended
<span class="error">
None
Requires manual ARIA
Avoid
<div class="message">
None
Requires manual ARIA
Avoid
Basic Usage
Vanilla Breeze styles output as an inline-block element with monospace font, subtle raised background, and small border radius. Display a simple calculated or dynamic value:
Variants can be combined: class="large highlight" or class="block success".
State Variants
Semantic colors for different message types. Each state pairs a subtle tinted background token (--color-success-subtle, --color-warning-subtle, --color-error-subtle) with its matching text token, so they follow light/dark mode and themes. Color is not the only signal: the text itself must say what happened. In forced-colors mode the tints are dropped and every chip gets a system-color border instead.
The primary use case in Vanilla Breeze. Pair with form-field and aria-describedby for CSS-only validation feedback. Inside form-field, output.hint and output.error are messages, not results: they skip the monospace chip and take form-field's small message styling. The same applies to output.error-summary, checkbox-group outputs, and the data-empty / data-loading / data-error feedback outputs.
Output for form validation
12345678910
<form-field><labelfor="email">Email</label><inputtype="email"id="email"requiredaria-describedby="email-msg" /><outputid="email-msg"class="error"for="email"> Enter a valid email address</output></form-field>
With Range Slider
Display the current value of a range input. Keep the <label> pointed at the slider with for: a label that wraps an output labels the output (the first labelable element inside it), leaving the slider unnamed. The slider already announces its own value, so aria-live="off" stops the output from repeating every step.
Display computed results from multiple inputs. The forattribute accepts a space-separated list of input IDs; give the output an id so a <label for> can name it.
Output for calculated values
123456
<labelfor="qty">Quantity</label><inputtype="number"id="qty"value="2" /><labelfor="price">Price per item</label><inputtype="number"id="price"value="29.99" /><labelfor="total">Total</label><outputid="total"for="qty price"class="large highlight">$59.98</output>
Live Status Updates
An output is already a polite live region, so status text written into it is announced without extra ARIA. Keep the element in the page from the start and change its content; a live region inserted at the same moment as its text is often not announced.