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.
Typography specimen web component with character grid, weight scale, type scale, and editable sample text.
The <type-specimen> component displays a font specimen for exploring typefaces. It renders an editable sample, a character grid, a weight scale, and the VB 9-step type scale.
<type-specimen font-family="Georgia" label="Georgia" show-characters show-weights></type-specimen>
| Attribute | Type | Default | Description |
|---|---|---|---|
font-family |
string | system-ui |
CSS font-family value. |
label |
string | Derived from font-family | Display name for the font. |
sample |
string | The quick brown fox… | Custom sample text. |
show-scale |
boolean | — | Show VB type scale (xs–5xl). |
show-weights |
boolean | — | Show weight scale with “Aa” samples. |
show-characters |
boolean | — | Show uppercase, lowercase, digit, and punctuation grids. |
weights |
string | 300,400,500,600,700 |
Comma-separated font weights to display in the weight scale. |
Shows uppercase, lowercase, digits, and punctuation in the specified font.
Renders “Aa” at each specified weight for quick comparison.
Displays the 9-step VB type scale from xs to 5xl.
<type-specimen font-family="system-ui" label="System UI" show-scale></type-specimen>
The large sample text is contenteditable — click it and type your own text to preview the font.
Enable all features at once for a comprehensive view.
<type-specimen font-family="system-ui" label="System UI" show-characters show-weights show-scale weights="300,400,500,600,700"></type-specimen>
<type-specimen font-family="'Courier New', monospace" label="Courier New" sample="Pack my box with five dozen liquor jugs" show-characters weights="400,700"></type-specimen>
Add the editable attribute to turn the font label into a live input with quick-pick chips. Changes write to a CSS custom property (default: --font-family-base) on the target selector (default: :root), so any element using that token updates immediately.
<type-specimen font-family="Georgia" editable show-characters show-weights></type-specimen>
Restrict overrides to a scoped subtree by pointing target at any selector:
<div id="preview-scope"> <h2>Preview</h2> <p>Edits only affect this block.</p></div> <type-specimen font-family="Georgia" editable target="#preview-scope" token="font-family-base" show-scale></type-specimen>
Listen for type-specimen:change events to collect the edits elsewhere:
document.querySelector('type-specimen') .addEventListener('type-specimen:change', (e) => { console.log(e.detail); // { fontFamily: "Inter, sans-serif", token: "font-family-base", target: ":root" } });
contenteditable="plaintext-only" with spellcheck="false" to avoid intrusive browser features.