Reference
Component library
Every <deck-*> element · attributes, slots, tokens, live preview. The default bundle has 36 core components; 35 optional elements are documented below.
Mental model · which one do I need?
The core elements you will meet first fit in five practical buckets; sub-elements and helpers follow in the catalogue. Start with the layout, then add only the building blocks the slide needs.
- Layouts (8) · the slide's overall shape ·
deck-cover,deck-section,deck-feature,deck-split,deck-feature-cards,deck-takeaway,deck-photo,deck-bento. - The five you'll always use · the talk-shaping blocks ·
deck-code,deck-md,deck-card,deck-callout,deck-badge. - Domain blocks (8) · reach for when the slide needs one ·
deck-stat,deck-metric,deck-tier-list,deck-step-list,deck-shortcut,deck-mermaid,deck-punch,deck-kicker. - Composition helpers · plumbing for spacing ·
deck-stack,deck-grid. - Presenter helpers (3) · for the day of the talk ·
deck-notes, plus the lazy-loadeddeck-overview(press O) anddeck-presenter(press P).
New to Rikiki? Read the 5-component cheatsheetfirst · don't try to learn the whole catalog before your first talk.
This catalogue details 8 layouts and 27 building blocks from the default bundle, then 26 optional modules and the 9 child elements those modules define. Layouts give a slide its overall structure; the building blocks fill the slots. Every group follows the same design-token contract · override--deck-<tag>-* on the host to retheme a single instance, or globally on :root.
Layouts
One per typical slide kind. Pick the layout that matches the slide's job.
<deck-cover>
Opening slide · XL title on dark, optional brand mark, meta block.
Attributes
| Attribute | Type | Notes |
|---|---|---|
brand | string | Text label · split on " · " (first segment = brand name) |
brand-src | URL | Optional logo path |
speaker | string | |
company | string | |
company-src | URL | Optional client logo · shown before the company name |
duration | string | |
audience | string | |
runtime | string | |
speaker-label | string | Override the meta label · the default follows the document language |
company-label | string | |
duration-label | string | |
audience-label | string | |
runtime-label | string |
Slots
| Slot | What goes in |
|---|---|
(default) | Title (h1) and subtitle (.sub) |
Example
<deck-cover brand="rikiki · docs" speaker="Jane">
<h1>Hello, <span class="accent">world</span>.</h1>
<p class="sub">Sub-title or opening question.</p>
</deck-cover>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-cover-bgBackground color or paint--deck-cover-textMain text color--deck-cover-softSecondary text or surface color--deck-cover-mutedMuted text color--deck-cover-faintLowest emphasis text color--deck-cover-borderBorder color or complete border value
Show an override example
deck-cover {
--deck-cover-bg: #f07020;
--deck-cover-text: #f07020;
}<deck-section>
Chapter separator · number + centered title on dark. Marks a 2D-nav boundary.
Attributes
| Attribute | Type | Notes |
|---|---|---|
num | string | Small label above the title |
Slots
| Slot | What goes in |
|---|---|
(default) | Title (h1) |
Example
<deck-section num="02">
<h1>Anatomy</h1>
</deck-section>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-section-bgBackground color or paint--deck-section-num-colorColor of the named element--deck-section-title-colorColor of the named element--deck-section-em-colorColor of the named element--deck-section-rule-colorColor of the named element
Show an override example
deck-section {
--deck-section-bg: #f07020;
--deck-section-num-color: #f07020;
}<deck-feature>
One focal block · code, table, mermaid, big stat.
Attributes
| Attribute | Type | Notes |
|---|---|---|
eyebrow | string | Small pill above the title |
spread | between | around | evenly | center | end | start | How the leftover vertical space of the body is distributed · default start |
fill | boolean | Let the body blocks take the leftover height instead · pair with a <deck-fit> child |
Slots
| Slot | What goes in |
|---|---|
title | h1 |
lead | one-line intro |
(default) | The focal block · usually deck-code, deck-mermaid, or a custom widget |
Example
<deck-feature eyebrow="Module">
<h1 slot="title">Side effects</h1>
<p slot="lead" class="lead">A module can act on import.</p>
<deck-code lang="ts" hero>
import './polyfill';
</deck-code>
</deck-feature>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-eyebrow-bgBackground color or paint--deck-eyebrow-colorColor of the named element--deck-eyebrow-radiusCorner radius--deck-eyebrow-padding-xHorizontal inner spacing--deck-eyebrow-padding-yVertical inner spacing
Show an override example
deck-feature {
--deck-eyebrow-bg: #f07020;
--deck-eyebrow-color: #f07020;
}<deck-split>
Two or three columns of cards.
Attributes
| Attribute | Type | Notes |
|---|---|---|
cols | "1-1" | "1-2" | "2-1" | "3" | Default 1-1 |
gap | 1..6 | maps to var(--rik-space-N) |
col-gap | 1..6 | gap between children inside a column |
eyebrow | string | Small pill above the title |
spread | between | around | evenly | center | end | start | How the leftover vertical space of the body is distributed · default start |
fill | boolean | Let the body blocks take the leftover height instead |
pivot | string | Symbol or word drawn between the two columns · turns a neutral split into a directed comparison. Two columns only |
winner | left | right | Which side carries the accent rule · absent for neither |
Slots
| Slot | What goes in |
|---|---|
title / lead | header above the columns |
left / right | 2-col layout |
a / b / c | 3-col layout |
Example
<deck-split cols="1-1">
<h1 slot="title">Two takes</h1>
<deck-card slot="left" color="red">Problem</deck-card>
<deck-card slot="right" color="green">Fix</deck-card>
</deck-split>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-split-gapSpacing between items--deck-split-col-gapSpacing between columns--deck-eyebrow-bgBackground color or paint--deck-eyebrow-colorColor of the named element
Show an override example
deck-split {
--deck-split-gap: 1.5rem;
--deck-split-col-gap: 1.5rem;
}<deck-feature-cards>
Hero on top, two detail cards underneath.
Attributes
| Attribute | Type | Notes |
|---|---|---|
eyebrow | string |
Slots
| Slot | What goes in |
|---|---|
title / lead | header |
(default) | the hero block · usually deck-code or deck-mermaid |
left / right | the two detail cards |
Example
<deck-feature-cards eyebrow="Deep dive">
<h1 slot="title">One thing at a time</h1>
<deck-code lang="ts" hero>function run() { return 42; }</deck-code>
<deck-card slot="left">What changes</deck-card>
<deck-card slot="right">What stays</deck-card>
</deck-feature-cards>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-feature-cards-gapSpacing between items--deck-feature-cards-col-gapSpacing between columns--deck-feature-cards-hero-flexFlex sizing of the named region--deck-feature-cards-detail-flexFlex sizing of the named region--deck-eyebrow-bgBackground color or paint--deck-eyebrow-colorColor of the named element
Show an override example
deck-feature-cards {
--deck-feature-cards-gap: 1.5rem;
--deck-feature-cards-col-gap: 1.5rem;
}<deck-takeaway>
Centered punchline on dark · the take-home line.
Attributes
| Attribute | Type | Notes |
|---|---|---|
kicker | string | Small caption above the punch |
spread | between | around | evenly | center | end | start | How the leftover vertical space of the body is distributed · default start |
fill | boolean | Let the body blocks take the leftover height instead |
Slots
| Slot | What goes in |
|---|---|
(default) | Use <deck-punch size="display"> for the big text |
Example
<deck-takeaway kicker="The whole point">
<deck-punch size="display">Source = output.</deck-punch>
<p class="caption on-dark">A deck is a folder.</p>
</deck-takeaway>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-takeaway-bgBackground color or paint--deck-takeaway-display-colorColor of the named element--deck-takeaway-caption-colorColor of the named element--deck-takeaway-gapSpacing between items
Show an override example
deck-takeaway {
--deck-takeaway-bg: #f07020;
--deck-takeaway-display-color: #f07020;
}<deck-photo>
Full-bleed image slide · slotted content sits on a dimmable overlay. Cover-style hero or mood section break.
Attributes
| Attribute | Type | Notes |
|---|---|---|
src | URL | Image URL · required |
position | CSS object-position | Default "center" |
darken | 0..1 | Overlay alpha · default 0.35 |
align | top | center | bottom | Vertical alignment of slotted content |
text-align | left | center | right | Text alignment inside the overlay · default left |
Slots
| Slot | What goes in |
|---|---|
(default) | Title (h1), subtitle (.sub), or any HTML to overlay on the image |
Example
<deck-photo src="/component-photo.svg" darken="0.4" align="center">
<h1>Mood opener</h1>
<p class="sub">One line caption.</p>
</deck-photo>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-photo-overlay-colorColor of the named element--deck-photo-text-colorColor of the named element--deck-photo-text-mutedMuted text color--deck-photo-content-max-widthWidth of the named element--deck-photo-padding-xHorizontal inner spacing--deck-photo-padding-yVertical inner spacing
Show an override example
deck-photo {
--deck-photo-overlay-color: #f07020;
--deck-photo-text-color: #f07020;
}<deck-bento>
Bento grid slide · cells share a multi-row, multi-column canvas.
Attributes
| Attribute | Type | Notes |
|---|---|---|
eyebrow | string | |
cols | 1..12 | template | default 2 |
rows | 1..12 | template | default 1 full-height row |
gap | 1..6 | CSS length | default 3 |
align | start | center | end | stretch | align-items on every cell |
justify | start | center | end | stretch | justify-items on every cell |
Slots
| Slot | What goes in |
|---|---|
title | Slide title (<h1>) |
(default) | deck-point children for words, deck-cell for anything measured |
Example
<deck-bento eyebrow="Layout" cols="3" rows="2">
<h1 slot="title">Cells share the space</h1>
<deck-cell col="1 / 3" row="1"><deck-punch fit>Measured</deck-punch></deck-cell>
<deck-cell col="3 / 4" row="1 / 3" tone="info"><h3>Tall</h3><p>Two rows.</p></deck-cell>
<deck-point col="1 / 2" row="2 / 3" tone="ok"><h3>A</h3><p>Placed explicitly.</p></deck-point>
<deck-point col="2 / 3" row="2 / 3" tone="warn"><h3>B</h3><p>No grid ambiguity.</p></deck-point>
</deck-bento>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-bento-gapSpacing between items
Show an override example
deck-bento {
--deck-bento-gap: 1.5rem;
}Building blocks
The building blocks you slot inside layouts, grouped by what they are for: first the ones that carry text, then the ones that carry data, then the ones that shape the slide, then the ones that embed code and diagrams.
<deck-md>
Markdown body · GFM, tables, lists, code, **bold**, *italic*.
Example
<deck-md>
**Markdown** body with `inline code`, lists, and links.
</deck-md>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-md-pre-bgBackground color or paint--deck-md-pre-borderBorder color or complete border value--deck-md-pre-textMain text color
Show an override example
deck-md {
--deck-md-pre-bg: #f07020;
--deck-md-pre-border: 1px solid #f07020;
}<deck-punch>
Big punchline text · sized via attribute, color via tone.
Attributes
| Attribute | Type | Notes |
|---|---|---|
size | lead | big | mega | stat | display | |
tone | warn | danger | ok | info | muted | accent | |
weight | 700 | 800 | 900 | |
align | left | center | right | |
fit | boolean | Shrink to fit the box · overrides size and the fluid cqw scaling |
fit-min | rem | Fit floor · default 1 |
fit-max | rem | Fit ceiling · default 12 |
Example
<deck-punch size="display">Source = output.</deck-punch>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-punch-colorColor of the named element--deck-punch-sizeSize of the named element
Show an override example
deck-punch {
--deck-punch-color: #f07020;
--deck-punch-size: 2rem;
}<deck-fit>
Shrink slotted text to fit its box by font-size · not for images.
Attributes
| Attribute | Type | Notes |
|---|---|---|
min | rem | default 1 |
max | rem | default 12 |
Example
<deck-fit max="6">
A line that shrinks until it fits its cell.
</deck-fit><deck-kicker>
Caption-style label above a section · uppercase, mono.
Attributes
| Attribute | Type | Notes |
|---|---|---|
on-dark | boolean | Switch to the inverse-surface palette · use on dark backgrounds |
Example
<deck-kicker>Before</deck-kicker>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-kicker-colorColor of the named element--deck-kicker-on-dark-colorColor of the named element--deck-kicker-font-sizeFont size--deck-kicker-trackingLetter spacing--deck-kicker-marginVisual value used by the named part
Show an override example
deck-kicker {
--deck-kicker-color: #f07020;
--deck-kicker-on-dark-color: #f07020;
}<deck-badge>
Status pill · bad / ok / info / warn / neutral.
Attributes
| Attribute | Type | Notes |
|---|---|---|
type | bad | ok | info | warn | neutral |
Example
<deck-badge type="ok">production-ready</deck-badge>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-badge-bgBackground color or paint--deck-badge-fgForeground color--deck-badge-borderBorder color or complete border value--deck-badge-radiusCorner radius--deck-badge-padding-xHorizontal inner spacing--deck-badge-padding-yVertical inner spacing
Show an override example
deck-badge {
--deck-badge-bg: #f07020;
--deck-badge-fg: #f07020;
}<deck-kbd>
One keyboard key chip · inline anywhere in body text, and the piece <deck-shortcut> draws its keys from.
Attributes
| Attribute | Type | Notes |
|---|---|---|
tone | accent | ok | Paint the chip when one key in a run deserves the emphasis |
Slots
| Slot | What goes in |
|---|---|
(default) | The key name · Esc, ⌘, PgDn |
Example
<p>Press <deck-kbd>P</deck-kbd> to open the presenter window.</p>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-kbd-bgBackground color or paint--deck-kbd-colorColor of the named element--deck-kbd-borderBorder color or complete border value--deck-kbd-radiusCorner radius--deck-kbd-padding-xHorizontal inner spacing--deck-kbd-padding-yVertical inner spacing--deck-kbd-accent-bgBackground color or paint--deck-kbd-ok-bgBackground color or paint
Show an override example
deck-kbd {
--deck-kbd-bg: #f07020;
--deck-kbd-color: #f07020;
}<deck-callout>
Boxed note with icon · info / warn / danger / ok.
Attributes
| Attribute | Type | Notes |
|---|---|---|
type | info | warn | danger | ok | |
on-dark | boolean | Readable surface and inverse text inside a dark layout |
Example
<deck-callout type="warn">
<strong>Heads up ·</strong> this changes the public API.
</deck-callout>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-callout-bgBackground color or paint--deck-callout-borderBorder color or complete border value--deck-callout-strokeVisual value used by the named part--deck-callout-radiusCorner radius--deck-callout-padding-xHorizontal inner spacing--deck-callout-padding-yVertical inner spacing--deck-callout-colorColor of the named element--deck-callout-strong-colorColor of the named element--deck-callout-code-bgBackground color or paint
Show an override example
deck-callout {
--deck-callout-bg: #f07020;
--deck-callout-border: 1px solid #f07020;
}<deck-notes>
Speaker notes for a slide · hidden by default, surfaced in the presenter window (press P). Free-form text content.
Slots
| Slot | What goes in |
|---|---|
(default) | Plain text or markup · displayed as-is in the presenter window |
Example
<deck-feature>
<h1 slot="title">My slide</h1>
<deck-notes>
Talking points:
- Mention the migration story
- Pause for laughter on the Java joke
</deck-notes>
</deck-feature><deck-stat>
Big-number visual · for promises, metrics, milestones.
Attributes
| Attribute | Type | Notes |
|---|---|---|
num | string | Huge display-font number |
tone | yellow|orange|green|red|purple|lime|cyan | |
compact | boolean | Smaller scale, for a row of stats rather than one hero figure |
Slots
| Slot | What goes in |
|---|---|
claim | Mid-size headline below the number |
(default) | One line of body text |
Example
<deck-stat num="01" tone="orange">
<h3 slot="claim">Serve a folder</h3>
No build, no toolchain.
</deck-stat>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-stat-colorColor of the named element--deck-stat-num-sizeSize of the named element--deck-stat-num-weightFont weight--deck-stat-claim-colorColor of the named element--deck-stat-body-colorColor of the named element--deck-stat-border-widthBorder thickness--deck-stat-padding-xHorizontal inner spacing--deck-stat-padding-yVertical inner spacing--deck-stat-gapSpacing between items
Show an override example
deck-stat {
--deck-stat-color: #f07020;
--deck-stat-num-size: 2rem;
}<deck-metric>
One-line metric · label + value · severity colored. Wrap several in <deck-metric-list> for the rule-divided list look.
Attributes
| Attribute | Type | Notes |
|---|---|---|
value | string | |
severity | bad | warn | ok | info | |
mono | boolean |
Example
<deck-metric-list>
<deck-metric value="5" severity="bad">Files parsed</deck-metric>
<deck-metric value="1" severity="ok">Used</deck-metric>
</deck-metric-list>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-metric-bgBackground color or paint--deck-metric-borderBorder color or complete border value--deck-metric-textMain text color--deck-metric-radiusCorner radius--deck-metric-padding-xHorizontal inner spacing--deck-metric-padding-yVertical inner spacing--deck-metric-shadowBox shadow--deck-metric-label-colorColor of the named element--deck-metric-value-{bad,warn,ok,info}Value color for this semantic state
Show an override example
deck-metric {
--deck-metric-bg: #f07020;
--deck-metric-border: 1px solid #f07020;
}<deck-metric-list>
Container · rule dividers between stacked <deck-metric> rows. No attributes · purely a layout grouping.
Example
<deck-metric-list>
<deck-metric value="5" severity="bad">Files parsed</deck-metric>
<deck-metric value="1" severity="ok">Used</deck-metric>
</deck-metric-list><deck-csv>
Inline CSV rendered as a styled table · cells are trimmed.
Attributes
| Attribute | Type | Notes |
|---|---|---|
delimiter | string | default "," |
no-header | boolean | first row is data |
fit | boolean | shrink the table to fit its box |
fit-min | rem | default 0.6 |
fit-max | rem | default 2 |
highlight-rows | string | 1-based body rows to emphasise · "2" or "2 5" |
highlight-cols | string | 1-based columns to emphasise · same grammar |
reveal | boolean | show one body row per step instead of the whole table |
Example
<deck-csv delimiter=";" highlight-rows="2" fit>
Region; Users; Plan
EMEA; 12 040; Pro
APAC; 9 310; Pro
</deck-csv>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-csv-borderBorder color or complete border value--deck-csv-header-bgBackground color or paint--deck-csv-padding-xHorizontal inner spacing--deck-csv-padding-yVertical inner spacing
Show an override example
deck-csv {
--deck-csv-border: 1px solid #f07020;
--deck-csv-header-bg: #f07020;
}<deck-tier-list>
Tier ladder · stacks <deck-tier> rows for JIT levels, severity ladders, ranking. No attributes · the rows carry the data.
Example
<deck-tier-list>
<deck-tier name="LLInt" speed="×1">Bytecode</deck-tier>
<deck-tier name="FTL" speed="×100" hot>LLVM</deck-tier>
</deck-tier-list><deck-tier>
One tier of a <deck-tier-list> · name on the left, speed on the right, description in the default slot.
Attributes
| Attribute | Type | Notes |
|---|---|---|
name | string | Left-hand label, in the mono face |
speed | string | Right-side figure · free text, not only a number |
severity | muted | warn | ok | Colors the speed figure |
hot | boolean | Marks the top tier · tints the row and the figure with the accent |
Slots
| Slot | What goes in |
|---|---|
(default) | Description line under the name |
Example
<deck-tier-list>
<deck-tier name="LLInt" speed="×1" severity="muted">Bytecode interpreter</deck-tier>
<deck-tier name="DFG" speed="×8" severity="ok">Optimizing JIT</deck-tier>
<deck-tier name="FTL" speed="×100" hot>Top-tier JIT</deck-tier>
</deck-tier-list>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-tier-bgBackground color or paint--deck-tier-borderBorder color or complete border value--deck-tier-radiusCorner radius--deck-tier-padding-xHorizontal inner spacing--deck-tier-padding-yVertical inner spacing--deck-tier-shadowBox shadow--deck-tier-name-colorColor of the named element--deck-tier-desc-colorColor of the named element--deck-tier-speed-{muted,warn,ok}Speed indicator color for this state--deck-tier-hot-bgBackground color or paint--deck-tier-hot-borderBorder color or complete border value--deck-tier-hot-colorColor of the named element
Show an override example
deck-tier {
--deck-tier-bg: #f07020;
--deck-tier-border: 1px solid #f07020;
}<deck-tier-arrow>
Separator note between two tiers of a deck-tier-list.
Example
<deck-tier-list>
<deck-tier name="S" speed="×1">Ships today</deck-tier>
<deck-tier-arrow>after ~6 runs</deck-tier-arrow>
<deck-tier name="A" speed="×10">Ships next</deck-tier>
</deck-tier-list><deck-step-list>
Numbered steps · stacks <deck-step> rows, or chains them across the width.
Attributes
| Attribute | Type | Notes |
|---|---|---|
direction | column | row | default column · row lays the steps as a chain across the width |
no-connectors | boolean | Drop the connector drawn between steps in row direction |
Slots
| Slot | What goes in |
|---|---|
(default) | <deck-step> children |
Example
<deck-step-list>
<deck-step n="1" note="opens the deck">Cover</deck-step>
<deck-step n="2" note="chapter break">Section</deck-step>
</deck-step-list>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-step-list-gapSpacing between items--deck-step-list-connectorVisual value used by the named part--deck-step-list-arrowVisual value used by the named part
Show an override example
deck-step-list {
--deck-step-list-gap: 1.5rem;
--deck-step-list-connector: #f07020;
}<deck-step>
One step of a <deck-step-list> · number, label, and the note that explains it.
Attributes
| Attribute | Type | Notes |
|---|---|---|
n | string | Number or letter carrying the sequence |
note | string | Supporting explanation, read after the label |
note-position | inline | below | default inline · below puts the note under its label, which keeps a row of steps readable |
Slots
| Slot | What goes in |
|---|---|
(default) | The step label |
Example
<deck-step-list direction="row">
<deck-step n="1" note="What the check measures" note-position="below">Inspect</deck-step>
<deck-step n="2" note="What it writes" note-position="below">Report</deck-step>
</deck-step-list>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-step-ruleDivider color or complete divider value--deck-step-padding-yVertical inner spacing--deck-step-num-colorColor of the named element--deck-step-num-sizeSize of the named element--deck-step-num-scaleVisual value used by the named part--deck-step-label-colorColor of the named element--deck-step-note-colorColor of the named element--deck-step-note-gapSpacing between items
Show an override example
deck-step {
--deck-step-rule: 1px solid #f07020;
--deck-step-padding-y: 1.5rem;
}<deck-shortcut-list>
Two-column grid of <deck-shortcut> rows, with a separator line under each.
Attributes
| Attribute | Type | Notes |
|---|---|---|
cols | string | Set to "1" for a single column · the default is two |
col-gap | 1..6 | Space between the two columns |
Slots
| Slot | What goes in |
|---|---|
(default) | <deck-shortcut> children |
Example
<deck-shortcut-list cols="1" col-gap="4">
<deck-shortcut keys="O" label="Overview" note="Path layout"></deck-shortcut>
<deck-shortcut keys="?" label="Help" note="Full shortcut overlay"></deck-shortcut>
</deck-shortcut-list><deck-shortcut>
Keyboard shortcut row · keys + label + note. Pairs with <deck-shortcut-list>.
Attributes
| Attribute | Type | Notes |
|---|---|---|
keys | string | Space-separated · e.g. "Space PgDn" |
label | string | |
note | string | Falls back to the default slot when absent |
tone | accent | ok | Paints the keys of this row |
Slots
| Slot | What goes in |
|---|---|
(default) | The note, when it is richer than a string attribute |
Example
<deck-shortcut-list>
<deck-shortcut keys="O" label="Overview" note="Path layout"></deck-shortcut>
<deck-shortcut keys="?" label="Help" note="Full shortcut overlay" tone="accent"></deck-shortcut>
</deck-shortcut-list><deck-stack>
Vertical (or horizontal) flex container · the most-used spacing helper.
Attributes
| Attribute | Type | Notes |
|---|---|---|
gap | 1..6 | |
direction | column | row | |
align | start | center | end | stretch | |
justify | start | center | end | between | around |
Example
<deck-stack gap="3">
<deck-callout>One</deck-callout>
<deck-callout>Two</deck-callout>
</deck-stack>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-stack-gapSpacing between items
Show an override example
deck-stack {
--deck-stack-gap: 1.5rem;
}<deck-grid>
Grid container · n columns by 1..12 or explicit template.
Attributes
| Attribute | Type | Notes |
|---|---|---|
cols | 1..12 | "1fr 2fr" | ... | |
rows | 1..12 | "auto 1fr" | ... | Optional explicit row template |
gap | 1..6 | |
align | start | center | end | stretch | align-items |
justify | start | center | end | stretch | justify-items |
fill | boolean | Take the parent slide's full height |
Example
<deck-grid cols="3" gap="3" fill>
<deck-card>a</deck-card>
<deck-card>b</deck-card>
<deck-card>c</deck-card>
</deck-grid>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-grid-gapSpacing between items
Show an override example
deck-grid {
--deck-grid-gap: 1.5rem;
}<deck-card>
Tinted card · yellow, orange, green, red.
Attributes
| Attribute | Type | Notes |
|---|---|---|
color | yellow | orange | green | red | |
center | boolean | |
compact | boolean | reduced padding |
Example
<deck-card color="green">
<h3>Tinted card</h3>
<p>Used inside splits and grids.</p>
</deck-card>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-card-bgBackground color or paint--deck-card-borderBorder color or complete border value--deck-card-textMain text color--deck-card-title-colorColor of the named element--deck-card-radiusCorner radius--deck-card-padding-xHorizontal inner spacing--deck-card-padding-yVertical inner spacing--deck-card-shadowBox shadow--deck-card-gapSpacing between items
Show an override example
deck-card {
--deck-card-bg: #f07020;
--deck-card-border: 1px solid #f07020;
}<deck-source>
A source or credit line, placed under any evidence block · deck-csv, deck-table, deck-bar, deck-kpi-grid, deck-annotate, or plain prose.
Attributes
| Attribute | Type | Notes |
|---|---|---|
href | string | Turns the credit into a link |
Slots
| Slot | What goes in |
|---|---|
(default) | The credit text, e.g. "Word, p. 12" |
Example
<deck-csv>
Region; Users
EMEA; 12 040
</deck-csv>
<deck-source href="https://example.com/report">Annual report, p. 4</deck-source>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-source-colorColor of the named element--deck-source-gapSpacing between items
Show an override example
deck-source {
--deck-source-color: #f07020;
--deck-source-gap: 1.5rem;
}<deck-cell>
Bento grid item · a size container, so child cqw/cqh type scales against the cell.
Attributes
| Attribute | Type | Notes |
|---|---|---|
span | "CxR" | column count | e.g. 2x1 |
col | integer | line syntax | per-axis override |
row | integer | line syntax | per-axis override |
tone | info | warn | ok | danger | |
plain | boolean | drop the card chrome |
flat | boolean | keep the surface, drop the border |
align | start | center | end | stretch | HORIZONTAL · align-items |
justify | start | center | end | between | VERTICAL · justify-content |
Example
<deck-cell span="2x1" tone="ok" justify="end">
<h3>Bottom-aligned</h3>
</deck-cell>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-cell-bgBackground color or paint--deck-cell-borderBorder color or complete border value--deck-cell-radiusCorner radius--deck-cell-padding-xHorizontal inner spacing--deck-cell-padding-yVertical inner spacing--deck-cell-gapSpacing between items
Show an override example
deck-cell {
--deck-cell-bg: #f07020;
--deck-cell-border: 1px solid #f07020;
}<deck-point>
Bento item sized BY its content · reach for it when the item holds words, and for deck-cell when it holds something measured.
Attributes
| Attribute | Type | Notes |
|---|---|---|
span | "CxR" | column count | e.g. 2x1 · col/row override it |
col | integer | line syntax | per-axis override |
row | integer | line syntax | per-axis override |
tone | info | warn | ok | danger | |
plain | boolean | stop painting the chrome · the gutter and border width stay, so the reading edge matches a painted sibling |
flat | boolean | keep the surface, drop the border |
align | start | center | end | stretch | HORIZONTAL · there is no justify, a point has no leftover height to distribute |
Slots
| Slot | What goes in |
|---|---|
(default) | A title (h3) and its body text |
Example
<deck-point tone="ok">
<h3>Sized by its words</h3>
<p>No hole under the text, whatever the title wraps to.</p>
</deck-point>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-cell-bgBackground color or paint--deck-cell-borderBorder color or complete border value--deck-cell-radiusCorner radius--deck-cell-padding-xHorizontal inner spacing--deck-cell-padding-yVertical inner spacing--deck-cell-gapSpacing between items
Show an override example
deck-point {
--deck-cell-bg: #f07020;
--deck-cell-border: 1px solid #f07020;
}<deck-code>
Code block with light syntax highlighting · js, ts, html, css.
Attributes
| Attribute | Type | Notes |
|---|---|---|
lang | js | ts | html | css | … | |
hero | boolean | centers vertically as the focal block |
nested | boolean | no shadow, lighter border (inside a card) |
step-groups | JSON | [[1,2],[3,4]] · highlight subsets of lines on each step |
Example
<deck-code lang="ts" hero>
const greet = (n: string) => `Hi, ${n}`;
</deck-code>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-code-bgBackground color or paint--deck-code-borderBorder color or complete border value--deck-code-textMain text color--deck-code-radiusCorner radius--deck-code-padding-xHorizontal inner spacing--deck-code-padding-yVertical inner spacing--deck-code-syntax-{kw,str,num,cmt,ty,prop,fn}Syntax color for this token category
Show an override example
deck-code {
--deck-code-bg: #f07020;
--deck-code-border: 1px solid #f07020;
}<deck-mermaid>
Mermaid diagram. Needs rikiki/dist/vendor/mermaid.min.js beside the runtime: start the deck with `init --with-mermaid` (or copy the file in), and pass --with-mermaid to bundle.
Attributes
| Attribute | Type | Notes |
|---|---|---|
compact | boolean | reduced padding and max-width |
Example
<deck-mermaid>
graph LR
a --> b --> c
</deck-mermaid>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-mermaid-bgBackground color or paint--deck-mermaid-borderBorder color or complete border value--deck-mermaid-paddingInner spacing--deck-mermaid-radiusCorner radius
Show an override example
deck-mermaid {
--deck-mermaid-bg: #f07020;
--deck-mermaid-border: 1px solid #f07020;
}Optional modules
These elements are not imported by the default bundle. They are compiled as separate modules and reach the browser only when a deck imports them, so a deck that does not use one pays nothing for it. Import the matching file fromrikiki/dist/ after the core runtime. Several modules also define child elements · those are documented under the module that defines them.
| Element | Purpose | Module |
|---|---|---|
<deck-agenda> | Agenda that follows the deck sections and marks the current chapter. | deck-agenda.js |
<deck-annotate> | Image or screenshot with numbered marks, progressive reveal, and an optional legend. | deck-annotate.js |
<deck-bar> | Single value or stacked horizontal bar for progress, proportions, or budgets. | deck-bar.js |
<deck-checklist> | Responsive checklist container for yes/no decisions and acceptance criteria. | deck-checklist.js |
<deck-figure> | Screenshot, diagram or chart with its caption and source credit attached to the image. | deck-figure.js |
<deck-flow> | Stage based process diagram with labels, notes, connectors, and reveal states. | deck-flow.js |
<deck-graph> | Positioned node and edge graph for architecture, dependencies, or relationships. | deck-graph.js |
<deck-icon> | Consistent icon slot or named glyph from the bundled icon set. | deck-icon.js |
<deck-kpi-grid> | Aligned KPI figures with optional rules between the values. | deck-kpi-grid.js |
<deck-persona> | Audience or user framing block with avatar, name, role, organisation, and context. | deck-persona.js |
<deck-pull> | Large pull quote that can occupy the full width or float to one side. | deck-pull.js |
<deck-quote> | Attributed quote with controlled mark, size, contrast, and author role. | deck-quote.js |
<deck-scene> | Composition of scenes · two or three side by side, or two stacked, with a link in each gutter and an optional closing band. One unit is the same length in every region, so a scene in half a row is laid out for half the canvas and keeps the size of its text. | deck-scene.js |
<deck-diagram> | An illustration written without a coordinate · marks (box, text, dots, bar, link, lane, gate, cursor, meter, queue, curve, and the marks that tell a story in their own words: terminal, table, switch, status, timer, band, people, screen, counter, and the charts: a pie, columns) in groups that name how their children are placed: a row, a column, a grid, layers for a graph, a ring, lanes that carry tokens past gates, an axis with a cursor. It measures, places, routes the links and the notes, times the motion (enter, after, step: a click brings what waits for it), and says when it does not fit. With dg-state each click is a picture of its own, and what two pictures name alike moves from one place to the other. Written as an intent (intent="barrier", each mark a role="…"), it chooses the layout, the one thing put forward and the motion itself, each of the sixteen its own way (a chain, lanes and a gate, a ring, a crowd, frames in frames, columns, a tree that turns rank by rank, a gauge and its line, a fork into two gauges, gaps from a line, bars, one band, a funnel…), and check proves the drawing demonstrates it (INT_* findings, errors whatever the score) · rikiki intent prints the skeleton. With play="enter" it tells a story instead of clicks: one scene played on entry, six to ten seconds written and played at the pace of the room, where the system runs (an established flow), an event lands, spreads, shows its effect, and the proof comes last in the target · each mark says its beat, and the picture at rest is the end of the story. With compose="…" it lays out several sub-pictures under one story, each a dg-panel with its own layout and a surface that says its part: a mechanism beside its track (split, 1.65 to 1), a model beside its incident, a body over its time axis, a panel inside a panel, a dashboard two by two · panels must share an entity or an axis (DG_PANEL_APART otherwise), and a dg-camera frames a mark or a panel then pulls back to the whole composition, its scale and margin computed. rikiki recipe prints twelve such stories ready to fill, each a graphic model (an incident frise, lanes and a gate, a probe, wiring, a switch-over, a race, records through a filter, lanes of versions, an escalation, a pulse, rings of scope, a replay of data): a skeleton whose fields are the facts of a brief, whose beats are the sequence the model imposes, and a brief that is refused when it is empty, generic or holds fewer than two precise values. | deck-diagram.js |
<deck-scene-band> | Animated scene · the sentence a composition answers to, one band on the inverse surface with an optional icon, a bold sentence and a line under it. | deck-scene-band.js |
<deck-scene-bars> | Animated scene · up to eight vertical bars with their figure above and label below, grouped by note. No axis: the bars carry the scale. | deck-scene-bars.js |
<deck-scene-cards> | Animated scene · two to five equal cards side by side, each with an icon, a label, a wrapped note and a tag. The emphasised card is filled with the accent. | deck-scene-cards.js |
<deck-scene-flow> | Animated scene · sources merge into a hub, the hub feeds one or two outcomes. The emphasised item is the hub; the items before it are sources, the items after it outcomes. | deck-scene-flow.js |
<deck-scene-lanes> | Animated scene · what happens when one thing changes: several lanes carry the same traffic, a gate comes down across all of them, and what was still on its way queues against it. A kill switch, a freeze, a rate limit. | deck-scene-lanes.js |
<deck-scene-matrix> | Animated scene · rows of status dots against columns, with optional column groups and a legend in the deck's language. | deck-scene-matrix.js |
<deck-scene-ranges> | Animated scene · durations or ranges on one shared scale, one row each. A row without values is drawn open, dashed, rather than left out. | deck-scene-ranges.js |
<deck-scene-steps> | Animated scene · one to six numbered rows joined by a connector, with an optional closing band on the inverse surface. | deck-scene-steps.js |
<deck-scene-units> | Animated scene · one cell per person. One to three grids of the same size, the first cells of each lit: 200 lit beside the same 200 switched off says a share without a percentage. The cells light column by column. | deck-scene-units.js |
<deck-table> | Progressive table wrapper that highlights rows or columns as steps advance. | deck-table.js |
<deck-timeline> | Chronological milestone track with row or column direction and progressive reveal. | deck-timeline.js |
<deck-versus> | Two sided decision layout with a central pivot and an optional winner. | deck-versus.js |
<deck-agenda>
Agenda that follows the deck sections and marks the current chapter.
Module
rikiki/dist/deck-agenda.js
Attributes
| Attribute | Type or value |
|---|---|
no-numbers | boolean |
no-jump | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | reads deck-section titles from the nearest deck-root |
Example
<deck-agenda></deck-agenda>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-agenda-gapSpacing between items--deck-agenda-sizeSize of the named element--deck-agenda-colorColor of the named element--deck-agenda-done-colorColor of the named element--deck-agenda-current-colorColor of the named element--deck-agenda-markerMarker color or paint--deck-agenda-ruleDivider color or complete divider value--deck-agenda-num-colorColor of the named element
Show an override example
deck-agenda {
--deck-agenda-gap: 1.5rem;
--deck-agenda-size: 2rem;
}<deck-annotate>
Image or screenshot with numbered marks, progressive reveal, and an optional legend.
Module
rikiki/dist/deck-annotate.js
Attributes
| Attribute | Type or value |
|---|---|
src | URL |
alt | string |
marks | JSON/string mark data |
all-at-once | boolean |
no-legend | boolean |
leader | boolean |
offset | x,y pixels or a named side (above, below, left, right) |
offsets | one displacement per mark, separated by | |
caption | figure caption |
source | credit line |
source-href | turns the credit into a link |
Slots and children
| Slot or child | What goes in |
|---|---|
default | optional legend content when marks do not provide one |
caption | boolean |
source | boolean |
Example
<deck-annotate src="/screen.png" alt="Product screen" marks="1:42,18,2:74,55"></deck-annotate>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-annotate-radiusCorner radius--deck-annotate-borderBorder color or complete border value--deck-annotate-mark-bgBackground color or paint--deck-annotate-mark-colorColor of the named element--deck-annotate-mark-sizeSize of the named element--deck-annotate-mark-ringVisual value used by the named part--deck-annotate-leaderVisual value used by the named part--deck-annotate-leader-widthWidth of the named element--deck-annotate-legend-colorColor of the named element--deck-annotate-legend-sizeSize of the named element--deck-annotate-gapSpacing between items
Show an override example
deck-annotate {
--deck-annotate-radius: 14px;
--deck-annotate-border: 1px solid #f07020;
}<deck-bar>
Single value or stacked horizontal bar for progress, proportions, or budgets.
Module
rikiki/dist/deck-bar.js
Attributes
| Attribute | Type or value |
|---|---|
value | number |
total | number |
label | string |
tone | accent|ok|warn|danger|info|muted |
segments | JSON |
no-value | boolean |
no-legend | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | optional legend content |
Example
<deck-bar label="Coverage" value="82" total="100" tone="ok"></deck-bar>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-bar-trackVisual value used by the named part--deck-bar-heightHeight of the named element--deck-bar-radiusCorner radius--deck-bar-gapSpacing between items--deck-bar-label-colorColor of the named element--deck-bar-value-colorColor of the named element--deck-bar-legend-colorColor of the named element--deck-bar-legend-sizeSize of the named element--deck-bar-fillVisual value used by the named part--deck-bar-dividerVisual value used by the named part
Show an override example
deck-bar {
--deck-bar-track: #f07020;
--deck-bar-height: 2rem;
}<deck-checklist>
Responsive checklist container for yes/no decisions and acceptance criteria.
Module
rikiki/dist/deck-checklist.js
Attributes
| Attribute | Type or value |
|---|---|
cols | number/string |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-check children |
Example
<deck-checklist cols="2">
<deck-check>Offline bundle</deck-check>
<deck-check no>External CDN</deck-check>
</deck-checklist>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-checklist-gapSpacing between items--deck-checklist-colsGrid column template--deck-checklist-ruleDivider color or complete divider value--deck-check-yesVisual value used by the named part--deck-check-noVisual value used by the named part--deck-check-sizeSize of the named element--deck-check-gapSpacing between items--deck-check-colorColor of the named element
Show an override example
deck-checklist {
--deck-checklist-gap: 1.5rem;
--deck-checklist-cols: #f07020;
}<deck-check>
One line of a checklist · a yes by default, a no when the attribute says so.
Attributes
| Attribute | Type | Notes |
|---|---|---|
no | boolean | Mark the line as not met · swaps the yes glyph for the no one |
Slots
| Slot | What goes in |
|---|---|
(default) | The criterion being checked |
Example
<deck-checklist cols="2">
<deck-check>Offline bundle</deck-check>
<deck-check no>External CDN</deck-check>
</deck-checklist><deck-figure>
Screenshot, diagram or chart with its caption and source credit attached to the image.
Module
rikiki/dist/deck-figure.js
Attributes
| Attribute | Type or value |
|---|---|
src | image URL |
alt | text alternative, required unless decorative |
caption | string |
source | string |
source-href | URL |
decorative | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
image | media used when src is absent |
caption | rich caption content |
source | rich credit content |
Example
<deck-figure
src="/build-duration.png"
alt="Build duration by pipeline stage"
caption="The cache removes most of the install cost."
source="CI benchmark"
></deck-figure>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-figure-gapSpacing between items--deck-figure-image-fitVisual value used by the named part--deck-figure-image-positionVisual value used by the named part--deck-figure-radiusCorner radius--deck-figure-borderBorder color or complete border value--deck-figure-bgBackground color or paint--deck-figure-caption-colorColor of the named element--deck-figure-source-colorColor of the named element--deck-figure-max-heightHeight of the named element
Show an override example
deck-figure {
--deck-figure-gap: 1.5rem;
--deck-figure-image-fit: #f07020;
}<deck-flow>
Stage based process diagram with labels, notes, connectors, and reveal states.
Module
rikiki/dist/deck-flow.js
Attributes
| Attribute | Type or value |
|---|---|
cols | number/string |
no-connectors | boolean |
reveal | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-flow-step children |
Example
<deck-flow cols="4">
<deck-flow-step label="Write" note="brief">
Source
</deck-flow-step>
<deck-flow-step label="Check" note="evidence">
Review
</deck-flow-step>
</deck-flow>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-flow-gapSpacing between items--deck-flow-step-accentVisual value used by the named part--deck-flow-step-label-colorColor of the named element--deck-flow-step-note-colorColor of the named element--deck-flow-step-pending-opacityOpacity--deck-flow-linkVisual value used by the named part
Show an override example
deck-flow {
--deck-flow-gap: 1.5rem;
--deck-flow-step-accent: #f07020;
}<deck-flow-step>
One stage of a flow · an index, a label, a note, and the body text under them.
Attributes
| Attribute | Type | Notes |
|---|---|---|
label | string | Stage name |
note | string | Short qualifier under the label |
plain | boolean | Stop the active stage from taking the block |
index | string | Position in the chain · written by deck-flow on every update, not by the author |
last | boolean | Written by deck-flow on the final stage · it has nothing to point at |
linked | boolean | Written by deck-flow from its own no-connectors attribute |
Slots
| Slot | What goes in |
|---|---|
(default) | The body text of the stage |
Example
<deck-flow cols="2">
<deck-flow-step label="Write" note="brief">Source</deck-flow-step>
<deck-flow-step label="Check" note="evidence">Review</deck-flow-step>
</deck-flow><deck-graph>
Positioned node and edge graph for architecture, dependencies, or relationships.
Module
rikiki/dist/deck-graph.js
Attributes
| Attribute | Type or value |
|---|---|
layout | free|row|column |
reveal | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-node, deck-group, deck-lane, and deck-edge children |
Example
<deck-graph layout="row">
<deck-node id="source" label="Brief"></deck-node>
<deck-edge from="source" to="proof" label="check"></deck-edge>
<deck-node id="proof" label="Verified deck" boxed tone="ok"></deck-node>
</deck-graph>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-graph-edgeVisual value used by the named part--deck-graph-edge-widthWidth of the named element--deck-graph-edge-labelVisual value used by the named part--deck-graph-ratioVisual value used by the named part--deck-node-colorColor of the named element--deck-node-ruleDivider color or complete divider value--deck-node-sizeSize of the named element--deck-node-bgBackground color or paint--deck-node-active-colorColor of the named element--deck-group-borderBorder color or complete border value--deck-group-bgBackground color or paint--deck-lane-ruleDivider color or complete divider value
Show an override example
deck-graph {
--deck-graph-edge: #f07020;
--deck-graph-edge-width: 2rem;
}<deck-node>
One node of a graph · placed by the layout, or by an explicit position.
Attributes
| Attribute | Type | Notes |
|---|---|---|
at | x,y percent | Position in the drawing area · ignored under a row or column layout |
label | string | |
note | string | Mono micro-label under the name · a protocol, a count, a latency |
width | CSS width | Wrap a long label before it collides with its neighbour |
boxed | boolean | Draw the node as a filled block rather than type under a rule |
tone | accent | ok | warn | danger | Fill color of a boxed node |
icon | icon name | Glyph above the label · needs dist/deck-icon.js loaded too |
Example
<deck-graph layout="row">
<deck-node id="source" label="Brief"></deck-node>
<deck-node id="proof" label="Verified deck" boxed tone="ok"></deck-node>
</deck-graph><deck-edge>
One edge of a graph · joins two nodes by their id.
Attributes
| Attribute | Type | Notes |
|---|---|---|
from | node id | |
to | node id | |
label | string | Caption drawn on the edge |
dashed | boolean | |
route | straight | ortho | ortho turns at right angles instead of cutting across |
label-offset | x,y | Pixel offset for the label when it collides with a node |
Example
<deck-graph layout="row">
<deck-node id="source" label="Brief"></deck-node>
<deck-edge from="source" to="proof" label="check"></deck-edge>
<deck-node id="proof" label="Verified deck"></deck-node>
</deck-graph><deck-group>
A labelled frame drawn behind a set of nodes · for a boundary or a subsystem.
Attributes
| Attribute | Type | Notes |
|---|---|---|
at | x,y,width,height percent | Position and size of the frame in the drawing area |
label | string | |
solid | boolean | A solid outline instead of the dashed default |
Example
<deck-graph>
<deck-group at="4,10,44,70" label="Authoring" solid></deck-group>
<deck-node at="14,40" label="Source"></deck-node>
</deck-graph><deck-lane>
A horizontal band across the graph · names a stage the nodes sitting in it belong to.
Attributes
| Attribute | Type | Notes |
|---|---|---|
at | top,height percent | Vertical position and height of the band in the drawing area |
label | string |
Example
<deck-graph>
<deck-lane at="10,30" label="Author"></deck-lane>
<deck-node at="20,25" label="Write"></deck-node>
</deck-graph><deck-icon>
Consistent icon slot or named glyph from the bundled icon set.
Module
rikiki/dist/deck-icon.js
Attributes
| Attribute | Type or value |
|---|---|
name | icon name |
size | sm|md|lg|xl |
tone | default|accent|ok|warn|danger|info|muted |
label | accessible label |
Slots and children
| Slot or child | What goes in |
|---|---|
default | custom SVG used when name is absent or unknown |
Example
<deck-icon name="check" size="lg" tone="ok" label="Ready"></deck-icon>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-icon-sizeSize of the named element--deck-icon-colorColor of the named element--deck-icon-strokeVisual value used by the named part
Show an override example
deck-icon {
--deck-icon-size: 2rem;
--deck-icon-color: #f07020;
}<deck-kpi-grid>
Aligned KPI figures with optional rules between the values.
Module
rikiki/dist/deck-kpi-grid.js
Attributes
| Attribute | Type or value |
|---|---|
cols | number/string |
ruled | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-kpi children; deck-kpi default slot accepts supporting text |
Example
<deck-kpi-grid cols="3" ruled>
<deck-kpi value="0" label="CDNs" tone="ok">
Runtime requests
</deck-kpi>
<deck-kpi value="20" label="slides"></deck-kpi>
</deck-kpi-grid>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-kpi-grid-gapSpacing between items--deck-kpi-grid-colsGrid column template--deck-kpi-grid-ruleDivider color or complete divider value--deck-kpi-value-sizeSize of the named element--deck-kpi-value-colorColor of the named element--deck-kpi-label-colorColor of the named element--deck-kpi-note-colorColor of the named element
Show an override example
deck-kpi-grid {
--deck-kpi-grid-gap: 1.5rem;
--deck-kpi-grid-cols: #f07020;
}<deck-kpi>
One figure of a KPI grid · the value, what it measures, and an optional qualifier.
Attributes
| Attribute | Type | Notes |
|---|---|---|
value | string | The figure itself |
label | string | What the figure measures |
note | string | Qualifier under the label |
tone | default | accent | ok | warn | danger | muted |
Slots
| Slot | What goes in |
|---|---|
(default) | Supporting text under the figure |
Example
<deck-kpi-grid cols="3" ruled>
<deck-kpi value="0" label="CDNs" tone="ok">Runtime requests</deck-kpi>
<deck-kpi value="20" label="slides"></deck-kpi>
</deck-kpi-grid><deck-persona>
Audience or user framing block with avatar, name, role, organisation, and context.
Module
rikiki/dist/deck-persona.js
Attributes
| Attribute | Type or value |
|---|---|
name | string |
person-role | string |
org | string |
context | string |
src | image URL |
on-dark | boolean |
compact | boolean |
inline | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | additional context content |
Example
<deck-persona name="Alex" person-role="Staff engineer" org="siliceum" context="Needs a deck that survives handover"></deck-persona>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-persona-avatar-sizeSize of the named element--deck-persona-initials-colorColor of the named element--deck-persona-ruleDivider color or complete divider value--deck-persona-name-colorColor of the named element--deck-persona-role-colorColor of the named element--deck-persona-context-colorColor of the named element--deck-persona-gapSpacing between items--deck-persona-compact-name-sizeSize of the named element
Show an override example
deck-persona {
--deck-persona-avatar-size: 2rem;
--deck-persona-initials-color: #f07020;
}<deck-pull>
Large pull quote that can occupy the full width or float to one side.
Module
rikiki/dist/deck-pull.js
Attributes
| Attribute | Type or value |
|---|---|
side | left|right|full |
Slots and children
| Slot or child | What goes in |
|---|---|
default | quoted text or slotted HTML |
Example
<deck-pull side="left">The source stays readable after delivery.</deck-pull>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-pull-colorColor of the named element--deck-pull-sizeSize of the named element--deck-pull-ruleDivider color or complete divider value--deck-pull-rule-widthDivider thickness--deck-pull-bgBackground color or paint--deck-pull-paddingInner spacing--deck-pull-widthWidth of the named element
Show an override example
deck-pull {
--deck-pull-color: #f07020;
--deck-pull-size: 2rem;
}<deck-quote>
Attributed quote with controlled mark, size, contrast, and author role.
Module
rikiki/dist/deck-quote.js
Attributes
| Attribute | Type or value |
|---|---|
author | string |
author-role | string |
size | lead|big|mega |
plain | boolean |
on-dark | boolean |
no-mark | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | quoted text |
Example
<deck-quote author="Jane Doe" author-role="Platform lead" size="big">Make the proof part of the delivery.</deck-quote>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-quote-colorColor of the named element--deck-quote-sizeSize of the named element--deck-quote-mark-colorColor of the named element--deck-quote-mark-sizeSize of the named element--deck-quote-ruleDivider color or complete divider value--deck-quote-rule-widthDivider thickness--deck-quote-gapSpacing between items--deck-quote-author-colorColor of the named element--deck-quote-role-colorColor of the named element--deck-quote-max-widthWidth of the named element
Show an override example
deck-quote {
--deck-quote-color: #f07020;
--deck-quote-size: 2rem;
}<deck-scene>
Composition of scenes · two or three side by side, or two stacked, with a link in each gutter and an optional closing band. One unit is the same length in every region, so a scene in half a row is laid out for half the canvas and keeps the size of its text.
Module
rikiki/dist/deck-scene.js
Attributes
| Attribute | Type or value |
|---|---|
layout | row (default, up to 3) or stack (2) |
split | the shares of a row, "2:1" |
link | arrow, vs, equals or plus |
align | start, center, end or stretch |
stagger | seconds between entrances |
Slots and children
| Slot or child | What goes in |
|---|---|
default | scenes (deck-scene-*) and at most one deck-scene-band, last |
Example
<deck-scene layout="row" link="arrow">
<deck-scene-units total="50" columns="10">
<deck-scene-item label="before" value="18"></deck-scene-item>
</deck-scene-units>
<deck-scene-units total="50" columns="10">
<deck-scene-item label="after" value="36" emphasis></deck-scene-item>
</deck-scene-units>
<deck-scene-band label="Twice as many stay"></deck-scene-band>
</deck-scene>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-line (the link)Visual value used by the named parteach scene keeps its ownVisual value used by the named part
Show an override example
deck-scene {
--deck-scene-line (the link): #f07020;
each scene keeps its own: #f07020;
}<deck-diagram>
An illustration written without a coordinate · marks (box, text, dots, bar, link, lane, gate, cursor, meter, queue, curve, and the marks that tell a story in their own words: terminal, table, switch, status, timer, band, people, screen, counter, and the charts: a pie, columns) in groups that name how their children are placed: a row, a column, a grid, layers for a graph, a ring, lanes that carry tokens past gates, an axis with a cursor. It measures, places, routes the links and the notes, times the motion (enter, after, step: a click brings what waits for it), and says when it does not fit. With dg-state each click is a picture of its own, and what two pictures name alike moves from one place to the other. Written as an intent (intent="barrier", each mark a role="…"), it chooses the layout, the one thing put forward and the motion itself, each of the sixteen its own way (a chain, lanes and a gate, a ring, a crowd, frames in frames, columns, a tree that turns rank by rank, a gauge and its line, a fork into two gauges, gaps from a line, bars, one band, a funnel…), and check proves the drawing demonstrates it (INT_* findings, errors whatever the score) · rikiki intent prints the skeleton. With play="enter" it tells a story instead of clicks: one scene played on entry, six to ten seconds written and played at the pace of the room, where the system runs (an established flow), an event lands, spreads, shows its effect, and the proof comes last in the target · each mark says its beat, and the picture at rest is the end of the story. With compose="…" it lays out several sub-pictures under one story, each a dg-panel with its own layout and a surface that says its part: a mechanism beside its track (split, 1.65 to 1), a model beside its incident, a body over its time axis, a panel inside a panel, a dashboard two by two · panels must share an entity or an axis (DG_PANEL_APART otherwise), and a dg-camera frames a mark or a panel then pulls back to the whole composition, its scale and margin computed. rikiki recipe prints twelve such stories ready to fill, each a graphic model (an incident frise, lanes and a gate, a probe, wiring, a switch-over, a race, records through a filter, lanes of versions, an escalation, a pulse, rings of scope, a replay of data): a skeleton whose fields are the facts of a brief, whose beats are the sequence the model imposes, and a brief that is refused when it is empty, generic or holds fewer than two precise values.
Module
rikiki/dist/deck-diagram.js
Attributes
| Attribute | Type or value |
|---|---|
compose | split |
model-incident | boolean |
body-axis | boolean |
inset | boolean |
dashboard (panels laid out by the composition, exclusive of layout and intent | an intent beside it is DG_PANEL_INTENT, dropped and said) |
intent | cause |
barrier | boolean |
bottleneck | boolean |
accumulate | boolean |
transform | boolean |
feedback | boolean |
scale | boolean |
contain | boolean |
parallel | boolean |
propagate | boolean |
threshold | boolean |
tradeoff | boolean |
drift | boolean |
compare | boolean |
partition | boolean |
merge (the intent places, so layout is its own) | boolean |
also | one or two secondary intents among cause (above), accumulate and threshold (below) |
barrier takes cause and accumulate, accumulate and threshold take each other and cause, cause takes accumulate and threshold, bottleneck, feedback and merge take accumulate, propagate takes cause, the others take none | boolean |
layout | row |
column | boolean |
grid | boolean |
layers | boolean |
ring | boolean |
lanes | boolean |
axis | boolean |
direction | right or down (layers, axis) |
columns | cells per row |
align | start, center, end or stretch |
gap | tight, normal or airy |
paint | none, outline, soft, solid or inverse, or the part a surface plays, its icon in a disc of its state: pale (context), gold (control), ink (target), ok (sound), bad (incident) |
weights | boolean |
wrap | boolean |
link | arrow chains the children |
bounds | "800x500" |
max-marks | tightens the 500 marks ceiling |
balance | free says an asymmetry is meant |
play | enter plays a story on entry, with no click (Pause, Replay and Loop buttons while it plays; seek(seconds) holds one instant) |
budget | what the story may last once played, "10s" by default, "12s" at most |
acts | the steps of the act separated by "·" (2 to 7) and act: the one the slide stands at, drawn as a strip above the picture |
pair | the id of the remedy slide an incident answers (it keeps half of the incident's named marks, ILL_PAIR_*) |
on the first dg-camera, zoom-from | "slide-id/mark", the picture opens on the frame the slide before showed that mark in, then pulls back (its own frame when the slide is reached another way, ILL_ZOOM_FROM_TARGET) |
Slots and children
| Slot or child | What goes in |
|---|---|
default | dg-box (tone: one word per click, it turns), dg-text, dg-dot (count; in a story one beat for the whole crowd, its cells in one wave), dg-bar, dg-link (route="straight" is a straight line, even in a graph), dg-group, dg-lane, dg-gate, dg-cursor (its word clear of the labels, its line never through one), dg-meter (value, max, unit, threshold, tone: one word per click), dg-queue (count, fill, tone: one word per click; in a ring, it stands in the middle) and dg-curve (values: 2 to 12 at equal steps, ticks, max, unit, threshold: the point it crosses is put forward; traced on entry) marks |
a dg-link may join marks of two groups | boolean |
stretches of an axis that lie end to end are one band cut into parts | boolean |
each reads enter (fade, rise, pop, draw), after (a name), step (a click) and role (its part in the intent) | boolean |
dg-state (step, role) holds the marks of its place from that click on | boolean |
in a story each mark also reads beat (steady, event, spread, effect, proof), with (a name it starts with, in the steady beat too), duration and dim (it pales on its beat); a dg-box reads swap and swap-icon (its word and icon change on its beat) and proof (a check and its words in the target); a dg-lane and a dg-link read steady="3s" (tokens pass that long before the event, and stop where it cuts them); a dg-link reads turn (its tokens change colour on the way) and lever (a lever turns there from the route that is cut) | boolean |
the marks that tell a story act on their beat | dg-terminal (label, lines one per line: a command after a prompt is typed with its caret, ✓ and ✗ in their colour), dg-table (label, icon, rows one per line, paint, strike; in a story from: its rows are carried from that mark, and swap: they change one by one), dg-switch (label, state on or off per click, on and off: its words), dg-status (for a mark, state ok, fail or wait, two in a story: it turns, label, note, side), dg-timer (label, value, unit: a ring fills, the figure counts), dg-band (label, note, from, to, cut, until, tag, brace, steady: the void after the cut grows as long as it lasted, braced), dg-person (label, count, absent: hollow for the missing), dg-screen (label: the address, note: the heading, count: figured lines), dg-counter (label, value, from, unit: a large figure that counts) |
the charts | dg-pie (label, slices: 2 to 6 parts, one per line, its words then its figure, unit, value: the figure in its hole, note, focus: the part in the accent; swept part after part) and dg-columns (label, columns: 2 to 12, one per line, its words then one figure per series, series: 1 to 3 names one per line, max, unit, threshold, focus: the column brought forward; they grow one after the other) and dg-waterfall (label, steps: 2 to 11, one per line, its words then its figure, the first a total with no sign then +n or −n, total: the words of the closing total, computed from the walk, unit, focus: the step brought forward; the steps are taken one after the other) |
in a composition | dg-panel (name, label, layout and the attributes of a group, paint: pale by default; its marks are named locally and reached from outside as panel.mark), entity on any mark (the same business object in several panels, one or more words), dg-camera (focus: the mark or panel the picture opens on, to: the one it moves to on its beat, all by default; beat, after, with, duration; a camera that ends on a detail goes back to the whole picture) |
Example
<deck-diagram layout="layers" direction="right">
<dg-box name="web" label="Web" icon="user"></dg-box>
<dg-box name="gw" label="Gateway" emphasis></dg-box>
<dg-box name="db" label="Postgres" icon="database"></dg-box>
<dg-link from="web" to="gw"></dg-link>
<dg-link from="gw" to="db" label="SQL"></dg-link>
</deck-diagram>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
the scenes’ own: --deck-scene-card-bgBackground color or paint--deck-scene-emphasis-bgBackground color or paint--deck-scene-lineVisual value used by the named part--deck-scene-band-bgBackground color or paintthe surfaces that say a part: --deck-scene-pale-bgBackground color or paint--deck-scene-gold-bgBackground color or paint--deck-scene-ok-bgBackground color or paint--deck-scene-bad-bgBackground color or paint
Show an override example
deck-diagram {
the scenes’ own: --deck-scene-card-bg: #f07020;
--deck-scene-emphasis-bg: #f07020;
}<deck-scene-band>
Animated scene · the sentence a composition answers to, one band on the inverse surface with an optional icon, a bold sentence and a line under it.
Module
rikiki/dist/deck-scene-band.js
Attributes
| Attribute | Type or value |
|---|---|
label | the sentence, up to two lines |
note | one line under it |
icon | a deck-icon name at its left |
Slots and children
| Slot or child | What goes in |
|---|---|
none | boolean |
Example
<deck-scene-band label="Twice as many stay" note="at the same headcount" icon="target"></deck-scene-band>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-band-bgBackground color or paint--deck-scene-band-textMain text color--deck-scene-band-mutedMuted text color--deck-scene-band-iconVisual value used by the named part
Show an override example
deck-scene-band {
--deck-scene-band-bg: #f07020;
--deck-scene-band-text: #f07020;
}<deck-scene-bars>
Animated scene · up to eight vertical bars with their figure above and label below, grouped by note. No axis: the bars carry the scale.
Module
rikiki/dist/deck-scene-bars.js
Attributes
| Attribute | Type or value |
|---|---|
unit | appended after a narrow no-break space |
max | top of the scale, default the largest value |
height | bar area in drawing units, default 280 |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-scene-item children reading value, label, tag (printed instead of the figure), note (the group caption), emphasis |
Example
<deck-scene-bars unit="%">
<deck-scene-item note="2025" label="AI visits" value="1,7" emphasis></deck-scene-item>
<deck-scene-item note="2025" label="other channels" value="2,3"></deck-scene-item>
</deck-scene-bars>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-card-bgBackground color or paint--deck-scene-card-strokeVisual value used by the named part--deck-scene-emphasis-bgBackground color or paint--deck-scene-mutedMuted text color--deck-scene-valueVisual value used by the named part--deck-scene-value-emphasisValue color for this semantic state
Show an override example
deck-scene-bars {
--deck-scene-card-bg: #f07020;
--deck-scene-card-stroke: #f07020;
}<deck-scene-cards>
Animated scene · two to five equal cards side by side, each with an icon, a label, a wrapped note and a tag. The emphasised card is filled with the accent.
Module
rikiki/dist/deck-scene-cards.js
Attributes
| Attribute | Type or value |
|---|---|
none | boolean |
the scene reads its items | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-scene-item children reading icon, label, note, tag, emphasis |
Example
<deck-scene-cards>
<deck-scene-item icon="target" label="MCP" tag="safe bet" emphasis note="one connector for every assistant"></deck-scene-item>
<deck-scene-item icon="cloud" label="UCP" tag="publish too" note="real volume, but American"></deck-scene-item>
<deck-scene-item icon="ban" label="AP2" tag="too early" note="no production deployment found"></deck-scene-item>
</deck-scene-cards>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-card-bgBackground color or paint--deck-scene-card-strokeVisual value used by the named part--deck-scene-emphasis-bgBackground color or paint--deck-scene-emphasis-textMain text color--deck-scene-mutedMuted text color--deck-scene-tagVisual value used by the named part--deck-scene-iconVisual value used by the named part
Show an override example
deck-scene-cards {
--deck-scene-card-bg: #f07020;
--deck-scene-card-stroke: #f07020;
}<deck-scene-item>
One entry of any deck-scene-* · it carries words and figures and draws nothing; each scene reads the attributes it draws.
Attributes
| Attribute | Type | Notes |
|---|---|---|
label | string | The name of the entry, one to three words |
note | string | One sentence, wrapped by the scene to the room it has |
icon | icon name | One of the 24 deck-icon glyphs · cards and flow |
tag | string | A short status in the accent |
value | number | A figure · bars |
level | statuses | One status per column, space-separated · matrix |
from | number | Start of a range · ranges |
to | number | End of a range, or a single point without from · ranges |
emphasis | boolean | The one entry the scene puts forward |
Example
<deck-scene-cards>
<deck-scene-item icon="target" label="MCP" tag="safe bet" emphasis note="one connector for every assistant"></deck-scene-item>
</deck-scene-cards><deck-scene-flow>
Animated scene · sources merge into a hub, the hub feeds one or two outcomes. The emphasised item is the hub; the items before it are sources, the items after it outcomes.
Module
rikiki/dist/deck-scene-flow.js
Attributes
| Attribute | Type or value |
|---|---|
none | boolean |
roles come from the order of the items | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-scene-item children reading icon, label, note, emphasis, and tag on an outcome (drawn on its arrow) |
Example
<deck-scene-flow>
<deck-scene-item icon="document" label="Product file" note="price, stock and specifications"></deck-scene-item>
<deck-scene-item icon="search" label="Pages and reviews" note="what the web says"></deck-scene-item>
<deck-scene-item icon="spark" label="The assistant" emphasis note="reads, compares, picks"></deck-scene-item>
<deck-scene-item icon="target" label="Two retailers cited" tag="cited" note="the rest are not seen"></deck-scene-item>
</deck-scene-flow>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-card-bgBackground color or paint--deck-scene-card-strokeVisual value used by the named part--deck-scene-emphasis-bgBackground color or paint--deck-scene-emphasis-textMain text color--deck-scene-mutedMuted text color--deck-scene-tagVisual value used by the named part--deck-scene-iconVisual value used by the named part--deck-scene-lineVisual value used by the named part
Show an override example
deck-scene-flow {
--deck-scene-card-bg: #f07020;
--deck-scene-card-stroke: #f07020;
}<deck-scene-lanes>
Animated scene · what happens when one thing changes: several lanes carry the same traffic, a gate comes down across all of them, and what was still on its way queues against it. A kill switch, a freeze, a rate limit.
Module
rikiki/dist/deck-scene-lanes.js
Attributes
| Attribute | Type or value |
|---|---|
gate | the word on the gate |
trigger | what brought it down, above the lanes |
passed | tokens per lane that get through, 0 to 8, default 3 |
blocked | tokens per lane that are stopped, 0 to 8, default 3 |
Slots and children
| Slot or child | What goes in |
|---|---|
default | 2 to 5 deck-scene-item lanes reading label, note, icon, tag (the outcome, written at the end of the lane) |
Example
<deck-scene-lanes gate="STOP" trigger="a drill flips the switch">
<deck-scene-item icon="code" label="API" tag="3 served, 3 refused"></deck-scene-item>
<deck-scene-item icon="clock" label="Jobs" tag="3 served, 3 held"></deck-scene-item>
</deck-scene-lanes>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-emphasis-bgBackground color or paint--deck-scene-mutedMuted text color--deck-scene-tagVisual value used by the named part--deck-scene-iconVisual value used by the named part--deck-scene-lineVisual value used by the named part
Show an override example
deck-scene-lanes {
--deck-scene-emphasis-bg: #f07020;
--deck-scene-muted: #f07020;
}<deck-scene-matrix>
Animated scene · rows of status dots against columns, with optional column groups and a legend in the deck's language.
Module
rikiki/dist/deck-scene-matrix.js
Attributes
| Attribute | Type or value |
|---|---|
columns | headers separated by |, 2 to 12 |
groups | name:count pairs separated by | |
statuses | status=word pairs separated by |, for prod, pilot, test, announced, none |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-scene-item children reading label, level (one status per column, space-separated), emphasis (the row on a tinted band) |
Example
<deck-scene-matrix columns="catalogue|basket|payment" statuses="prod=live|test=in test|none=nothing yet">
<deck-scene-item label="France" emphasis level="prod test none"></deck-scene-item>
<deck-scene-item label="United States" level="prod prod prod"></deck-scene-item>
</deck-scene-matrix>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-card-bgBackground color or paint--deck-scene-card-strokeVisual value used by the named part--deck-scene-emphasis-bgBackground color or paint--deck-scene-mutedMuted text color--deck-scene-tagVisual value used by the named part--deck-scene-lineVisual value used by the named part--deck-scene-row-emphasis-bgBackground color or paint--deck-scene-band-bgBackground color or paint
Show an override example
deck-scene-matrix {
--deck-scene-card-bg: #f07020;
--deck-scene-card-stroke: #f07020;
}<deck-scene-ranges>
Animated scene · durations or ranges on one shared scale, one row each. A row without values is drawn open, dashed, rather than left out.
Module
rikiki/dist/deck-scene-ranges.js
Attributes
| Attribute | Type or value |
|---|---|
scale | maximum of the shared scale |
unit | word after the maximum |
caption | header label in the accent |
open-label | tag of an open row, default "to be set" |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-scene-item children reading label, note, from, to (alone, a single point), tag |
Example
<deck-scene-ranges scale="12" unit="days" caption="approximate durations">
<deck-scene-item label="A1" note="Connected catalogue" from="5" to="10" tag="5 to 10 days"></deck-scene-item>
<deck-scene-item label="C2" note="Basket in one sentence"></deck-scene-item>
</deck-scene-ranges>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-emphasis-bgBackground color or paint--deck-scene-mutedMuted text color--deck-scene-tagVisual value used by the named part--deck-scene-lineVisual value used by the named part
Show an override example
deck-scene-ranges {
--deck-scene-emphasis-bg: #f07020;
--deck-scene-muted: #f07020;
}<deck-scene-steps>
Animated scene · one to six numbered rows joined by a connector, with an optional closing band on the inverse surface.
Module
rikiki/dist/deck-scene-steps.js
Attributes
| Attribute | Type or value |
|---|---|
conclusion | the closing sentence |
conclusion-note | one line under it |
conclusion-icon | a deck-icon name at its left |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-scene-item children reading label, note, tag, emphasis |
Example
<deck-scene-steps conclusion="No change without consent" conclusion-icon="lock">
<deck-scene-item label="measure" tag="no prerequisite" note="five assistants, typical questions, a score"></deck-scene-item>
<deck-scene-item label="advise" tag="once measured" emphasis note="what to fix first"></deck-scene-item>
</deck-scene-steps>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-card-bgBackground color or paint--deck-scene-card-strokeVisual value used by the named part--deck-scene-emphasis-bgBackground color or paint--deck-scene-emphasis-textMain text color--deck-scene-mutedMuted text color--deck-scene-tagVisual value used by the named part--deck-scene-band-bgBackground color or paint--deck-scene-band-textMain text color--deck-scene-band-mutedMuted text color--deck-scene-band-iconVisual value used by the named part
Show an override example
deck-scene-steps {
--deck-scene-card-bg: #f07020;
--deck-scene-card-stroke: #f07020;
}<deck-scene-units>
Animated scene · one cell per person. One to three grids of the same size, the first cells of each lit: 200 lit beside the same 200 switched off says a share without a percentage. The cells light column by column.
Module
rikiki/dist/deck-scene-units.js
Attributes
| Attribute | Type or value |
|---|---|
total | cells per grid, 1 to 400, default 100 |
columns | cells per row, 1 to 40, a landscape grid by default |
Slots and children
| Slot or child | What goes in |
|---|---|
default | 1 to 3 deck-scene-item panels reading label (the caption), icon, value (how many cells are lit, 0 to total), note, emphasis (the panel lit in the accent) |
Example
<deck-scene-units total="200">
<deck-scene-item icon="team" label="200 people" value="200" emphasis></deck-scene-item>
<deck-scene-item label="chose the right setting" value="0" note="not one of them"></deck-scene-item>
</deck-scene-units>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-scene-emphasis-bgBackground color or paint--deck-scene-lineVisual value used by the named part--deck-scene-card-strokeVisual value used by the named part--deck-scene-mutedMuted text color--deck-scene-iconVisual value used by the named part
Show an override example
deck-scene-units {
--deck-scene-emphasis-bg: #f07020;
--deck-scene-line: #f07020;
}<deck-table>
Progressive table wrapper that highlights rows or columns as steps advance.
Module
rikiki/dist/deck-table.js
Attributes
| Attribute | Type or value |
|---|---|
highlight-rows | comma-separated row numbers |
highlight-cols | comma-separated column numbers |
reveal | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | one table element |
Example
<deck-table highlight-rows="2,4" reveal>
<table>
<thead>
<tr><th>Check</th><th>Status</th></tr>
</thead>
<tbody>
<tr><td>Runtime</td><td>Pass</td></tr>
<tr><td>Offline bundle</td><td>Pass</td></tr>
</tbody>
</table>
</deck-table>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-table-mark-bgBackground color or paint--deck-table-mark-colorColor of the named element--deck-table-pending-opacityOpacity
Show an override example
deck-table {
--deck-table-mark-bg: #f07020;
--deck-table-mark-color: #f07020;
}<deck-timeline>
Chronological milestone track with row or column direction and progressive reveal.
Module
rikiki/dist/deck-timeline.js
Attributes
| Attribute | Type or value |
|---|---|
direction | row|column |
alternate | row only, milestones above and below the axis |
reveal | boolean |
Slots and children
| Slot or child | What goes in |
|---|---|
default | deck-milestone children |
Example
<deck-timeline direction="row">
<deck-milestone date="Now" label="Source" tone="accent">
Write the brief
</deck-milestone>
<deck-milestone date="Next" label="Proof">
Run the checks
</deck-milestone>
</deck-timeline>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-timeline-axisVisual value used by the named part--deck-timeline-axis-widthWidth of the named element--deck-timeline-gapSpacing between items--deck-milestone-dotVisual value used by the named part--deck-milestone-dot-sizeSize of the named element--deck-milestone-date-colorColor of the named element--deck-milestone-label-colorColor of the named element--deck-milestone-note-colorColor of the named element--deck-milestone-pending-opacityOpacity
Show an override example
deck-timeline {
--deck-timeline-axis: #f07020;
--deck-timeline-axis-width: 2rem;
}<deck-milestone>
One milestone of a timeline · a date, a label, and the body text under them.
Attributes
| Attribute | Type | Notes |
|---|---|---|
date | string | Free text · "Now", "Q3", a real date |
label | string | |
note | string | Qualifier under the label |
tone | default | accent | ok | warn | danger |
Slots
| Slot | What goes in |
|---|---|
(default) | The body text of the milestone |
Example
<deck-timeline direction="row">
<deck-milestone date="Now" label="Source" tone="accent">Write the brief</deck-milestone>
<deck-milestone date="Next" label="Proof">Run the checks</deck-milestone>
</deck-timeline><deck-versus>
Two sided decision layout with a central pivot and an optional winner.
Module
rikiki/dist/deck-versus.js
Attributes
| Attribute | Type or value |
|---|---|
pivot | string |
winner | left|right |
slide | boolean |
eyebrow | string, slide mode only |
Slots and children
| Slot or child | What goes in |
|---|---|
left / right | the two alternatives |
title / lead | heading and lead paragraph, slide mode only |
Example
<deck-versus pivot="OR" winner="right">
<div slot="left">
<h3>Source</h3>
<p>Readable and editable.</p>
</div>
<div slot="right">
<h3>Proof</h3>
<p>Checked and deliverable.</p>
</div>
</deck-versus>Customization tokens
Override these CSS custom properties on one component instance or in a shared stylesheet.
--deck-versus-gapSpacing between items--deck-versus-pivot-colorColor of the named element--deck-versus-pivot-sizeSize of the named element--deck-versus-ruleDivider color or complete divider value--deck-versus-winner-ruleDivider color or complete divider value--deck-versus-loser-colorColor of the named element--deck-versus-eyebrow-colorColor of the named element--deck-versus-slide-bgBackground color or paint--deck-versus-side-alignVisual value used by the named part
Show an override example
deck-versus {
--deck-versus-gap: 1.5rem;
--deck-versus-pivot-color: #f07020;
}Next
- Optional modules · what each module costs and how a deck imports it.
- Theming · the token contract these components read.
- API reference · the deck-root properties, events and extension hooks.