Token shorthand for RevealJS slideshows generated by litoria. Replaces common HTML/CSS patterns
with concise {token} syntax in Markdown slide files.
Convention: token name = CSS class name. If a class exists in tokens.css, the token works.
| Open the live token preview to see all tokens rendered as actual RevealJS slides. |
CSS Files
| File | Purpose |
|---|---|
|
Base RevealJS theme overrides (fonts, headings, tables) |
|
All token CSS classes + complex layout classes |
Templates
| File | Purpose |
|---|---|
|
Simple template without tokens |
|
Template demonstrating token syntax |
Token Reference
Inline Tokens
Wrap text in a styled <span>. Use inline within any content.
| Token | Produces | Visual |
|---|---|---|
|
|
Bold, Quarkus blue (#4695EB) |
|
|
Bold, Spring green (#6DB33F) |
|
|
Bold, teal (#009596) |
|
|
Bold, orange (#D4874D) |
|
|
Bold, red (#EE0000) |
|
|
Bold, dark (#1a1a2e) |
|
|
Muted gray (#8c8c8c) |
|
|
Bold, green badge (#3E8635) |
|
|
Bold, red badge (#EE0000) |
|
|
Bold, teal badge (#009596) |
Block Tokens
Used on their own line. Produce block-level elements.
| Token | Produces | Visual |
|---|---|---|
|
|
Blue-teal gradient bar (3px) |
|
|
Slide subtitle (0.75em, gray) |
|
|
Category label (0.5em, uppercase, spaced) |
|
|
Centered small text (0.6em, gray) |
Callout Tokens
Block-level boxes with colored borders and backgrounds.
| Token | Produces | Visual |
|---|---|---|
|
|
Gray border, neutral background |
|
|
Red border, red-tinted background |
|
|
Teal border, teal-tinted background |
|
|
Orange border, orange-tinted background |
Flow Tokens
Used inside a <div class="flow"> container for step diagrams.
| Token | Produces | Visual |
|---|---|---|
|
|
Rounded pill with border |
|
|
Gray arrow between steps |
Image Token
Embed images with size and position control.
| Token | Produces |
|---|---|
|
|
|
|
|
|
|
|
Parameters:
-
src(required) — local path or URL -
width— pixels (200) or percentage (80%) -
alt— alt text (alt="My caption") -
center/right/left— horizontal alignment (default: left) -
rounded— addsborder-radius: 8px
Examples:
{img src="image/Quarkus.png" width="85%" center rounded}
{img src="image/photo.jpg" width="300" alt="Team photo"}
{img src="https://cdn.example.com/logo.svg" width="120"}
Video Token
Embed video with RevealJS media attributes.
| Token | Produces |
|---|---|
|
|
|
|
|
|
|
|
Parameters:
-
src(required) — local path or URL -
controls— show playback controls (without this, RevealJS usesdata-autoplay) -
autoplay— auto-play when slide is shown (addsdata-autoplay) -
loop— loop the video -
muted— start muted -
width— pixels (480) or percentage (90%) -
center/right/left— horizontal alignment (default: left) -
rounded— addsborder-radius: 8px -
preload— preload strategy:auto,metadata,none(default:auto) -
type— MIME type override, e.g.type="video/webm"(default: inferred from extension)
RevealJS behavior:
-
data-autoplaymakes the video play automatically when the slide is shown and pause when navigating away -
Without
controlsorautoplay, RevealJS addsdata-autoplayby default -
Background videos use a different mechanism (slide-level
data-background-videoattribute) — not covered by this token
Examples:
{video src="image/migrate-sb-to-quarkus-ibm-bob.mp4" controls width="90%" center rounded}
{video src="image/demo.mp4" autoplay loop muted width="100%"}
{video src="https://cdn.example.com/intro.webm" controls center}
Token Resolution Order
-
Frontmatter placeholders resolved first:
{author},{title},{date},{email} -
Media tokens resolved:
\{img …},\{video …} -
Paired tokens resolved:
{xxx}text\{/xxx}→ CSS class wrappers -
Self-closing tokens resolved:
{xxx}alone (no closing tag, no frontmatter match) → block element
Collision safety: frontmatter keys are semantic (author, date) while CSS classes are visual
(green, highlight). No practical overlap.
Complex Layouts (remain as HTML)
These patterns have multi-child structure that cannot be expressed as tokens.
| Pattern | Element | Why HTML |
|---|---|---|
Grid layouts |
|
Children need structure |
Cards |
|
Rich content: headings, paragraphs, lists |
Stat rows |
|
Nested structure |
Person bios |
|
Image + structured info |
Legend |
|
Multiple colored dots |
Colored flows |
|
Per-step styling overrides |
Tables |
|
Standard HTML |
Example: Before and After
Before (raw HTML):
<div class="brand-bar"></div>
<p class="dimmed" style="font-size: 0.5em; text-transform: uppercase;
letter-spacing: 2px;">Tech Sales Enablement</p>
# AI-Powered<br><span class="green">Spring Boot</span>
to <span class="blue">Quarkus</span><br>Migration
<p style="font-size: 0.75em; color: #666;">From weeks of manual work to minutes</p>
After (tokens):
{brand-bar}
{supertitle}Tech Sales Enablement{/supertitle}
# AI-Powered<br>{green}Spring Boot{/green}
to {blue}Quarkus{/blue}<br>Migration
{subtitle}From weeks of manual work to minutes{/subtitle}
Both produce identical rendered output.