Welcome to Vanilla Breeze
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
This bell pulls live notifications from /go/notify/messages — the same contract documented at /docs/concepts/service-contracts/. Static articles like this one are the no-JS / no-backend fallback.
Collects VB custom property overrides from a scope and emits them as a theme.css block or JSON. The assembly glue for the Theme Composer.
The <theme-export> component turns a page full of editable specimens into a downloadable theme. It scans a scope (default :root) for VB custom property overrides and emits either a :root { ... } CSS block or a flat JSON object.
When paired with editable type-specimen, spacing-specimen, token-specimen, and semantic-palette components, it forms the backbone of the Theme Composer: specimens write overrides, theme-export collects them.
Edit any token below to see it appear in the export above.
<theme-export live label="Live Theme Output"></theme-export> <spacing-specimen editable tokens="xs,s,m,l" label="Spacing"></spacing-specimen>
| Attribute | Type | Default | Description |
|---|---|---|---|
scope |
string | :root |
CSS selector for the element to read overrides from. |
selector |
string | :root |
Selector written in the emitted CSS output. |
include |
string | All VB prefixes | Comma-separated prefixes to collect: --color-,--hue-,--lightness-,--chroma-,--font-,--size-,--radius-,--shadow-,--border-width-,--ease-,--duration-. |
format |
enum | css |
css or json. |
label |
string | — | Optional heading label. |
live |
boolean | — | Re-scan whenever an editable specimen on the page fires a :change event. |
Pass scope and selector to collect overrides from a subtree and emit them targeting a different selector — useful for building theme stylesheets from a preview block.
<div id="preview" data-theme="custom"> <type-specimen editable target="#preview"></type-specimen> <spacing-specimen editable target="#preview"></spacing-specimen></div> <theme-export scope="#preview" selector="[data-theme='custom']" live label="Custom Theme CSS"></theme-export>
Switch to format="json" for a design tokens pipeline.
<theme-export format="json" live></theme-export>
| Event | Detail | Description |
|---|---|---|
theme-export:change |
{ output, format, tokens } |
Fires whenever the output is regenerated. |