Skip to content

Component presentation

Cards, disclosures, tabs, and compact procedures across OINK’s six visual presets.

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:

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.

When the rows need icons, badges or longer descriptions, use the shortcode form with cards variant="list":

InstallationStart here

Build a local preview before changing the site configuration.

Notes and disclosures

Callouts have no variants; compare their colors and the disclosure row in each preset.

Keep a local preview

Review the page at a narrow width as well as on your desktop.

Check the destination

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

macOS / Homebrew
brew install hugo
Debian / Ubuntu
sudo apt install hugo

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.

hugo server --bind 127.0.0.1 --port 1313
hugo --environment production --baseURL https://example.com/documentation/ --destination public

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.

  1. Review the configuration.
  2. Run the local preview.
  3. 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
title , Typestring
A concise title that may wrap naturally.
description , Typestring
Supporting information, separate from the main label.

Preview Validated Review needed

Open search with Ctrl with K and move between results with the arrow keys.