The preview above is the live component gallery. Open it full size to switch between desktop and phone widths.
Blocks also take the usual
id, title and span. A text block has no height: it is as tall
as its words, and check warns when that would stretch its row (HM5051).
You choose the words; Hatchmark chooses the form. There are no font, colour, size or alignment
options: a note uses the theme’s body text (13/18 px) and a lede its page-title size (20/28 px), so
every text card on every page looks the same.
Markdown
- Paragraphs, separated by a blank line. Lines in one paragraph join with a space.
- Lists:
-,*or+for bullets,1.or1)for numbers. A numbered list keeps its first number. A line that follows an item without a blank line continues that item. - Bold with
**two asterisks**. - Links with
[text](url). A link opens anhttp,httpsormailtoaddress, or a path on the same site; any other target, such asjavascript:, keeps only its text. - A backslash makes the next character literal:
\#,\<,\*,\{\{.
title, numbers
by category belong in a table block, and HTML would not follow the theme. Anything else, such as
_italic_, prints as written.
References
- The same numbers as a KPI. Each reference reads the metric over the page’s period, with its
filters and segments, through the same planner as a
kpiblock, and is formatted with the metric’s ownformatat the KPI’s headline precision. A KPI and a reference to the same metric print the same value. They print the same previous value and change when the KPI uses the page’s comparison; a KPI with its owncompareshows that comparison instead. - The comparison is the dashboard’s
period.compare. A comparison reference withcompare: noneis an error (HM2011), and so is one on a metric with no time column (HM2005). - No value prints a dash: no data in the period, no previous value, or a previous value of zero
for
change_pct. On a custom date range, a metric that cannot be added up from days (a distinct count, a median) prints a dash too, and the card says to pick a preset. - An unknown metric (HM2003) or field (HM2007) is an error.
Fitting the page
Text sits among charts, so check keeps it in proportion. The numbers come from the theme’s type scale and a 1280 px wide page.- Length (HM5050, warning). A lede is one paragraph of one or two sentences and at most 140 characters, one line at full width. A note holds about five list items: at most 7 paragraphs or list items and 600 characters, which fills a default-height row beside a chart. A reference counts as 5 characters.
- Height (HM5051, warning). Cards in a row share one height. When a text card, title included,
would be more than 8 px taller than every other card in its row at a 1280 px page, Hatchmark says
by how much and how to fix it: shorten the text, widen its
span, or move it to its own row. Check compares it with line, area, scatter and vertical bar charts, whose height is their preset. Beside a table, build compares once the table’s rows are known. Rows with KPIs, horizontal bars, pies or maps, whose height depends on the data, are not checked. - Width (HM5052, warning). A text block takes at least 4 of the 12 columns; a smaller
spanis drawn 4 wide. In wider cards a line stops at 70 characters, so long lines stay readable. - The lede opens the page (HM5053, warning). A page has at most one lede, and it is the first block.
- Typed numbers (HM5054, warning). A currency amount or a percentage written into the prose
(
$1.2M,12%,0.4 pp) stays the same when the data or the filters change. Build also warns when a plain number such as21,874equals a value a KPI or reference on the page prints. Dates, years, times, list numbers and small counts are never flagged. Use a reference instead. - One comparison (HM5055, warning). References compare with the page’s
period.compare. When a KPI of the same metric sets its owncompare, the page would state two changes for one metric.
What it draws
- A card with the title, when there is one, and the prose. A lede draws at the page-title size.
- References never break across lines. Bold is semibold; links are underlined in the text colour.
- Phones get the same card at full width.