Component presentation
This page shows the everyday components side by side with their compact
variants, so you can judge how each looks before choosing it: switch between
Paper, Slate, GitHub, Ink, News and Terminal, light or dark, from the
Appearance menu and compare. Each variant is one extra class or a variant parameter on the
Markdown you already write. None loads a script or changes links, keyboard
use, copied text, print or Markdown output, and an unknown variant warns and
falls back to the regular look.
Cards and card lists
The regular card grid:
-
Install the theme and preview a first page locally.
-
Set navigation, languages, appearance, and search.
For a compact directory of resources, {.cards .td-cards-list} turns the
same link list into a single framed list with dividers, each row as tall as
its description needs.
- Writing content — Organize articles, guides, and release notes; see also the configuration guide.
- Component reference with a longer title — Choose native Markdown or a compound shortcode.
When the rows need icons, badges or longer descriptions, use the shortcode
form with cards variant="list":
Build a local preview before changing the site configuration.
Read the configuration guide or the writing guide. A card without a title link remains ordinary content.
Notes and disclosures
Callouts have no variants; compare their colors and the disclosure row in each preset.
Review the page at a narrow width as well as on your desktop.
Confirm the destination before publishing a new version.
How does this work without JavaScript?
The disclosure is a native HTML details element. It remains usable with scripts disabled.
The title, chevron, and focus outline share one stable summary row.
Longer titles can wrap without displacing the chevron or reducing the interactive area
Each disclosure opens independently. Other content stays in its current state.
Tabs and commands
Add {class="td-code-command"} to a one-line fence to make it a command
strip. The copy button gets its own column, so a long command scrolls or wraps
without running under it.
wrap, copy and accessible labels work as on any code block. A command
strip holds exactly one line, so a multiline, numbered or collapsed block with
this class warns and renders as a regular code block.
Short procedures
For a short procedure, add .td-steps-compact to the marker:
{.steps .td-steps-compact}. Keep the regular .steps for long tutorials,
where the extra spacing helps.
- Review the configuration.
- Run the local preview.
- Check the generated output.
A procedure with headings uses the shortcode with variant="compact", written
with percent delimiters:
Preview
Run the development server and open the changed page.
Review
Check the page in the language and appearance your readers use.
Tables and metadata
Tables, field lists, badges and key sequences have no variants either; they are here so you can check them against the rest of the preset.
| View | Purpose | Input |
|---|---|---|
| Cards | Related resources | Link list |
| Steps | Ordered procedure | Ordered list |
| Tabs | Equivalent alternatives | Adjacent blocks |
Preview Validated Review needed
Open search with Ctrl with K and move between results with the arrow keys.