Use Brokkr
Use
How an app loads Brokkr. Pin one version, then take its CSS, Tailwind theme, tokens and icons from this site, with the Noto fonts beside them. Every NPC tool takes the same files, so a client sees one studio.
Pin a version
Every release is a version under /v/, and a published version never changes. Link one version, and move to a new one on purpose. A removed or renamed token is a new major version, a new token a minor one, a corrected value a patch. The latest is <version>; every release is listed in /v/index.json.
| File | What it holds |
|---|---|
brokkr.css | Every token as a CSS custom property, light and dark. |
tailwind/theme.css | The Tailwind theme, mapped to the same custom properties. |
doc.css | The fonts, every token and the reading styles for a Brokkr doc: a document written as plain HTML. |
doc.js | Optional for a Brokkr doc: the light and dark switch, the width switch, and the page index, sticky beside the text. |
doc.html | The Brokkr doc template: every part once, to copy from. |
tokens.json | Every token resolved, light and dark, for scripts and tools that do not read CSS. |
icons/sprite.svg | Every icon as a symbol, npc-icon-<name>. |
icons/icons.json | Icon names, groups, uses and the Tabler source. |
icons/svg/<name>.svg | One file per icon. |
icons/LICENSE-tabler.txt | Tabler Icons license (MIT). |
Each file is at https://brokkr.noprettycolors.com/v/<version>/<file>, with open CORS and CORP, so apps that send COEP can load it.
What's new
What each version adds, changes, deprecates and removes, in plain words. A deprecated token still works: it stays for at least one minor version, is marked Deprecated wherever the site lists it, and goes only in a major version. The version marked Next is not released yet.
1.2.0 – November 28, 2026
Added
- Brokkr doc: with doc.js, a width switch beside the light and dark switch. It flips the reading width and the full width of the window, and lasts for the visit.
<html class=full>opens a doc at full width. - Brokkr doc: the footer ends with the Brokkr doc version that styles the page, such as “Brokkr doc 1.2.0”. Nothing to write.
- Icons:
width-fullandwidth-reading.
Changed
- Brokkr doc: the line beside the sub-sections in the page index is 1 px instead of 2 px.
1.1.1 – November 8, 2026
Added
- Brokkr doc: with doc.js, a light and dark switch at the top right. It lasts for the visit; without a choice the doc follows the computer.
Changed
- Brokkr doc: bullets are a bold plus and list numbers are bold.
1.1.0 – November 1, 2026
Added
- Neutral status role,
color.status.neutral.*, for closed, not started and low, with thestatus-neutralicon. - Components: segmented control (
segmented.*), dialog with its backdrop (dialog.*), notice (notice.*), tag (tag.*), legend (legend.*), board (board.*) and timeline (timeline.*). - Chart tooltip (
chart.tooltip.*), range input (form.range.*), a caution change on KPIs (kpi.delta.caution) and theupanddownicons. - Viewer: status colors on the model (
viewer.status.*), and a hover background and active rule for the tools (viewer.tool.hover-background,viewer.tool.active-indicator-*). - Toasts: an Undo or Retry action (
toast.action.*). - Busy button (
control.button-busy.*), table sort (table.sort.*), a nav count for what needs the person (nav.count.*) and an Arabic label style (type.label-arabic). - Touch density: set
data-density=“touch”on the root and every control and target becomes 44 px (size.touch.*). - Increased contrast: with the computer's setting on, subtle text, the UI border and hairlines step one shade stronger. Nothing to set.
- Right-to-left icons: eleven icons that show a direction have an
-rtlcopy. - Brokkr doc:
doc.cssstyles a document written as plain HTML with one link, anddoc.jsadds an optional sticky index of the page, anddoc.htmlis the template. See Write a doc on the Use page.
Changed
- Type and icon sizes are in rem, so they follow the person's text size. Check any
calc()that assumed px, keep the root font size at the browser default, and let text containers grow (min-height, notheight). - The 3D selection is an outline in the text color, no longer Signal, and the rest of the model fades while something is selected.
- Toasts close after 8 seconds instead of 5, counted only while the page is visible.
- Control corners are 4 px instead of 2 px.
- A button's icon uses
icon.size.dense. - Toasts: at most three on screen, none animates out, positive and info are announced politely and caution and risk at once. Undo only when the result leaves the view; Retry only when trying again can work. Undo and Retry are
<button>elements drawn as links, as is Clear all. - Status words keep one role everywhere: Open and In progress are info; the timeline and the model legend show In progress in info, no longer caution. In a table, status is the word with its dot; tags are for cards, lists, headings and the inspector.
Deprecated
viewer.selection.fillandviewer.selection.fill-opacity: the selection has no fill now, so nothing replaces them. Removed in 2.0.0.
1.0.3 – October 25, 2026
Changed
- Skeleton lines take the hairline color, so they show on a panel too.
1.0.2 – October 25, 2026
Changed
- The danger button's edge in dark is Brick 300, so it shows on the page and the panel (3:1 or more).
1.0.1 – October 25, 2026
Changed
- With reduced motion on, every motion duration is 0 ms.
1.0.0 – October 24, 2026
Added
- The first release: the color, type, layout and component tokens as CSS custom properties, a Tailwind theme and
tokens.json, and the icon set.
CSS
Link the CSS once, in the head. Apps use the role tokens (surface, text, border, status), never a brand hex.
<link rel="stylesheet" href="https://brokkr.noprettycolors.com/v/<version>/brokkr.css">
.panel {
background: var(--npc-color-surface-panel);
color: var(--npc-color-text-default);
border-top: 1px solid var(--npc-color-border-hairline);
}
Keep the root font size at the browser's default. Brokkr's type and icon sizes are in rem, so they follow the person's text size; a root font-size: 62.5% would shrink every NPC screen. Control heights are minimums: let them grow with the text.
Tailwind
The theme maps Tailwind's utilities to Brokkr's custom properties, and clears Tailwind's own colors, so only Brokkr's exist. Copy tailwind/theme.css from the same version into the app, import it after Tailwind, and keep brokkr.css linked: the theme reads its variables.
@import "tailwindcss";
@import "./brokkr/theme.css";
<div class="bg-surface-panel text-text-default">…</div>tokens.json
For scripts and tools that do not read CSS: every token by name, with its type, its CSS name and its value in light and dark.
"board.card.background": {
"type": "color", "tier": "component",
"css": "--npc-board-card-background",
"value": "#FBF7F5", "dark": "#43403A"
}Fonts
Noto Sans and Noto Sans Arabic load from this site, in three weights each. The CSS names the families; the app declares the files. Preload the regular weight. Licenses: Noto Sans and Noto Sans Arabic (SIL Open Font License).
<link rel="preload" href="https://brokkr.noprettycolors.com/fonts/noto-sans/2.015/NotoSans-Regular.woff2" as="font" type="font/woff2" crossorigin>
@font-face {
font-family: "Noto Sans"; font-weight: 400; font-style: normal; font-display: swap;
src: url("https://brokkr.noprettycolors.com/fonts/noto-sans/2.015/NotoSans-Regular.woff2") format("woff2");
}
@font-face {
font-family: "Noto Sans"; font-weight: 500; font-style: normal; font-display: swap;
src: url("https://brokkr.noprettycolors.com/fonts/noto-sans/2.015/NotoSans-Medium.woff2") format("woff2");
}
@font-face {
font-family: "Noto Sans"; font-weight: 700; font-style: normal; font-display: swap;
src: url("https://brokkr.noprettycolors.com/fonts/noto-sans/2.015/NotoSans-Bold.woff2") format("woff2");
}
@font-face {
font-family: "Noto Sans Arabic"; font-weight: 400; font-style: normal; font-display: swap;
src: url("https://brokkr.noprettycolors.com/fonts/noto-sans-arabic/2.013/NotoSansArabic-Regular.woff2") format("woff2");
}
@font-face {
font-family: "Noto Sans Arabic"; font-weight: 500; font-style: normal; font-display: swap;
src: url("https://brokkr.noprettycolors.com/fonts/noto-sans-arabic/2.013/NotoSansArabic-Medium.woff2") format("woff2");
}
@font-face {
font-family: "Noto Sans Arabic"; font-weight: 700; font-style: normal; font-display: swap;
src: url("https://brokkr.noprettycolors.com/fonts/noto-sans-arabic/2.013/NotoSansArabic-Bold.woff2") format("woff2");
}Icons
Browsers do not load an SVG sprite from another site, so each app copies icons/sprite.svg from its pinned version and references icons by their Brokkr name. The set, its rules and the markup are on the Icons page: use the icons.
Light and dark
With nothing set, brokkr.css follows the computer's light or dark setting. To let people choose, set data-theme on the root element, and save the choice before the first paint so the page does not flash. With the computer's increased-contrast setting on, subtle text, the UI border and hairlines step one shade darker on light and lighter on dark; nothing to set.
<html data-theme="dark"> <!-- or "light"; leave it off to follow the computer -->Write a doc
A Brokkr doc is a plan, report, handoff or note written as plain HTML with one link: no build, no scripts, no styles of its own. It reads like this site and costs about what its Markdown would, so people and agents can both use it, in any NPC project. Start from the template, which shows every part once: doc.html in the same version. HTML lets it be written short: no head or body tags, no closing tags for paragraphs, list items and table cells, no quotes around one-word values. The script is optional: it adds a light and dark switch and a width switch at the top right and, with three or more H2s, a sticky index of the page beside the text; the doc reads the same without it. The width switch flips the reading width and the full width of the window, for the visit. The footer of a doc ends with the Brokkr doc version that styles it.
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Title</title>
<link rel=stylesheet href=https://brokkr.noprettycolors.com/v/<version>/doc.css>
<script src=https://brokkr.noprettycolors.com/v/<version>/doc.js defer></script>
<header><p>Project | Kind<h1>Title</h1><p>The lead.</header>
<main>…</main>
The classes: figures on a definition list of key figures; info, positive, caution, risk or tag on a span for a status tag, and the first four on an aside for a callout; data-num on a table for its columns of figures; note, label, lead, and wide or full on the root. A claude.ai artifact loads no stylesheet from this site, so there the stylesheet goes inside the page when it is published.
Touch density
An app used on tablets on site sets data-density="touch" on the root element: every control and target becomes 44 px, and everything built on the size tokens follows. It is chosen once per app, like the theme, never per screen. Leave it off for desktop apps.
<html data-density="touch">Ask for a change
Every app asks for a change the same way, so a decision is made once for all of them.
- Keep a
docs/BROKKR-FINDINGS.mdin the app: one row per gap or problem, with the screen, what was missing or wrong, and the local workaround (an app variable, never a hard-coded value). Brokkr's plugin will add a row there when it meets a gap. - Brokkr reads the rows into its own findings for that app, each with a recommendation. NPC decides: agreed, or declined with the reason. Agreed changes ship in a version and are listed above.
- A part only one app needs stays in that app. It moves into Brokkr when a second app needs it.
- A part is retired by deprecating its tokens, with the replacement named under What's new.
- Before an app moves to Brokkr, take an inventory: a screenshot of every distinct part in the app, sorted under the Components page's groups. Anything that fits no group is a row in the findings.