<!-- generated by scripts/gen-docs.mjs from docs/system/*.md. Edit the source and rerun. -->
# Cobalt design system

Tokens, components and rules for Cobalt. Read a page's .md twin before writing UI, and /systems/cobalt/rules.md before any change.

New UI uses a registry component. If none fits, open a gate before writing one. Check your work with `pnpm check`.

## Foundations
- [Brand](/systems/cobalt/brand.md): Cobalt has no brand.
- [Colors](/systems/cobalt/colors.md): Greys and one accent colour.
- [Elevation](/systems/cobalt/elevation.md): Cards have no shadow.
- [Feedback](/systems/cobalt/feedback.md): What a control shows after you act, and when.
- [Icons](/systems/cobalt/icons.md): Icons come from Hugeicons' free Stroke Rounded set on a 24px grid.
- [Layout](/systems/cobalt/layout.md): Spacing uses Tailwind's scale in 4px steps.
- [Motion](/systems/cobalt/motion.md): Most motion uses one easing curve, --curve.
- [Radius](/systems/cobalt/radius.md): How round each corner is.
- [Theming](/systems/cobalt/theming.md): How another system is built on Cobalt without forking it.
- [Typography](/systems/cobalt/typography.md): All text is Manrope Variable at Tailwind's default sizes.
- [Writing](/systems/cobalt/writing.md): Rules for the text inside components, such as button labels, dialog titles, toasts and empty states.

## Components
- [Alert](/systems/cobalt/alert.md): Tells the person something about the page they are on before they go on: a limit they reached, data that is behind, a load that failed and how to retry it.
- [AlertDialog](/systems/cobalt/alert-dialog.md): Asks you to confirm before continuing, usually before a delete.
- [AreaChart](/systems/cobalt/area-chart.md): Draws an amount over time as a line with the area under it filled from zero, so a person reads how much there is and how it changes, alone or piled into parts of a whole.
- [Avatar](/systems/cobalt/avatar.md): Shows who someone is: their picture, or the same silhouette for everyone without one, named once by the root or hidden when the name sits beside it.
- [BackLink](/systems/cobalt/back-link.md): Takes you one level up to the list you came from, the same way on every page.
- [Badge](/systems/cobalt/badge.md): Marks a thing with one word or a count that you read and do not press: new, draft, overdue, 12 unread.
- [Banner](/systems/cobalt/banner.md): Says one thing about the whole app that came while the person was reading, such as being offline or a new version being ready, in a line that floats at the foot of the window and moves nothing on the page. Covers UseOnline.
- [BarChart](/systems/cobalt/bar-chart.md): Draws an amount per period or per group as bars measured from zero, so a person compares groups by length and reads any one of them.
- [BarList](/systems/cobalt/bar-list.md): Ranks names by value as rows of text, each filled as far as its share of the largest and each carrying its figure written out, so the fill is a picture of the text.
- [Button](/systems/cobalt/button.md): Starts an action now: the one primary action of a view, and the grey, ghost or red forms for the rest.
- [Calendar](/systems/cobalt/calendar.md): Shows a month of days, or two side by side, to pick one day, a start and an end, or several days, with today marked and the days you cannot pick held back.
- [Card](/systems/cobalt/card.md): A white box that groups one item's title, details and actions.
- [Chart](/systems/cobalt/chart.md): The frame every chart draws in: it holds the chart's box at a fixed height in every state, lets a person read any point by pointer, touch or keyboard, and gives a screen reader the same numbers as a sentence and a table.
- [ChartCard](/systems/cobalt/chart-card.md): Frames one chart with what it is about: the title, the headline figure with its change, a note and one control, so a person knows what the picture shows before they read it.
- [Checkbox](/systems/cobalt/checkbox.md): One choice that is on or off, or stands for a set that is partly on, and takes effect when the form is saved.
- [ChipRow](/systems/cobalt/chip-row.md): Narrows a list to one of any number of choices, each a link to the same page with that choice in its address, in a row that scrolls sideways.
- [Collapsible](/systems/cobalt/collapsible.md): A row that opens under itself to the details it holds, so a list, a card or a page can keep what you read only sometimes one press away.
- [Combobox](/systems/cobalt/combobox.md): Picks one value, or several, out of a list too long to scroll through: you type, and the list narrows to what matches.
- [CommandPalette](/systems/cobalt/command-palette.md): Jumps to any record or runs any command from one search field, opened from anywhere with Command K or Control K.
- [Composer](/systems/cobalt/composer.md): Writes the next message, or a question to an agent: the words, the people, agents, files and commands they name, any files that go with them, and the press that sends them, with a reason whenever it cannot send yet and a Stop while an answer streams.
- [CompositionBar](/systems/cobalt/composition-bar.md): Shows the parts of one whole in a single bar, each part as wide as its share, with every part's amount and share written under it, so a person reads what the whole is made of at a glance and the exact figures beside it.
- [Content changes](/systems/cobalt/content-changes.md): Changes what a box shows while the box keeps its size, so nothing around the change moves. Covers Swap, Crossfade, IconSwap, TextSwap.
- [CopyButton](/systems/cobalt/copy-button.md): Copies a value a person needs somewhere else, such as a link, an id, a key or a command, and answers in place whether it worked.
- [DataList](/systems/cobalt/data-list.md): Lists the facts about one thing as label and value pairs, such as a fund's domicile and auditor or a booking's guest and room.
- [DataTable](/systems/cobalt/data-table.md): Lists records with the same fields, as many as a server holds: it renders only the rows in view, sorts and filters through each column's header, selects rows to act on together, and turns into a two-line list on a phone.
- [DatePicker](/systems/cobalt/date-picker.md): Holds a day, a start and an end, or several days in a form field that opens a calendar to pick them and sends them with the form.
- [Dialog](/systems/cobalt/dialog.md): A window over the page for one short task, such as a form.
- [DropdownMenu](/systems/cobalt/dropdown-menu.md): A list of commands opened from a button, or by a right click on an area. Covers ContextMenu.
- [EmojiPicker](/systems/cobalt/emoji-picker.md): Finds one emoji among nearly two thousand, by its name, a word people use for it, its group or what you picked lately, and picks it with a press or the keyboard.
- [Empty](/systems/cobalt/empty.md): What a list shows when it has nothing in it.
- [Field](/systems/cobalt/field.md): Names a control and ties its description and error to it. Covers Label.
- [FileDrop](/systems/cobalt/file-drop.md): Takes files from a drag or from the device's picker, and shows each one's upload as it goes, so a person knows which files arrived, which are still on their way, and which failed and why.
- [FileTile](/systems/cobalt/file-tile.md): Shows one file as one tile, with its kind, its name and one line about it, so a person can tell which file it is, download it once it is there, and see how its upload is going.
- [FileTypeIcon](/systems/cobalt/file-type-icon.md): Tells a person what kind of file they are looking at, such as a PDF or a spreadsheet, and shows in the same place how far the file's upload has gone or that it failed.
- [FilterBar](/systems/cobalt/filter-bar.md): Narrows a list by several fields at once, each a pill that opens its options and names what it holds, so a person sees which filters are on without opening any.
- [First use](/systems/cobalt/first-use.md): Fills a place the person has never put anything in: what will appear there once they do, the one action that starts it, and up to three ready-made beginnings to open instead.
- [Flag](/systems/cobalt/flag.md): Shows a country by its flag at the size of the text: beside the country's name, or named on its own beside a code, with a grey box where there is no flag.
- [Grow](/systems/cobalt/grow.md): A button that grows into the one small form it opens, such as a link to add or a name to save, and shrinks back when you are done.
- [Heatmap](/systems/cobalt/heatmap.md): Lays values out on a grid and shades each cell by size, as two sets of names crossed or as days across a year, so a person can see where the values gather.
- [Histogram](/systems/cobalt/histogram.md): Counts how many rows fall into each range of one value, so a person reads the shape of a distribution and the range where most rows lie.
- [IconButton](/systems/cobalt/icon-button.md): Names a button that is only an icon once, so the one string is read aloud by a screen reader and shown on hover as the tooltip.
- [ImageField](/systems/cobalt/image-field.md): Lets a person choose the picture that stands for them or their organisation, such as a face, a logo or a cover, place it in its frame, and see it upload and save. Covers ImageCrop.
- [Inbox](/systems/cobalt/inbox.md): Collects what happened while the person was away, such as filings, mentions and alerts, under a bell that counts the unread ones, grouped by day, with the unread ones marked and one press to mark them all read.
- [InlineEdit](/systems/cobalt/inline-edit.md): Lets a person change one saved value where it is shown, such as a watchlist's name or one figure in a record, and says whether the change was saved.
- [Input](/systems/cobalt/input.md): Takes one line of typed text, such as a name, an address or a search term. Covers InputGroup.
- [InviteField](/systems/cobalt/invite-field.md): Collects the email addresses of people to invite and the role they will get, then sends the invitations in one request and says how it went. Covers Emails.
- [Item](/systems/cobalt/item.md): Shows one thing in a list as a row: its name, a line about it, and a time or an action at the end. Covers DateTile.
- [Kbd](/systems/cobalt/kbd.md): Shows a key, or keys pressed together or in turn, beside the action they run, so a person can learn the shortcut.
- [Keyboard shortcuts](/systems/cobalt/keyboard-shortcuts.md): Gives a product's keyboard shortcuts one map that binds every key and lists them in a dialog the "?" key opens, so the keys the page answers and the keys it lists never disagree. Covers ShortcutsDialog, Shortcuts.
- [Lightbox](/systems/cobalt/lightbox.md): Shows pictures one at a time as large as the window allows, so a person can look at a photo properly, move through the others with it and come back to where they were.
- [LineChart](/systems/cobalt/line-chart.md): Draws a value over time, or over any ordered position, as one line per series, so a person reads the shape of the change and any point on it.
- [List and detail](/systems/cobalt/list-detail.md): Shows a list and the row chosen in it: the detail stands beside the list on a wide screen and replaces it on a phone, with a way back, and the arrow keys move the choice.
- [MediaTile](/systems/cobalt/media-tile.md): Shows a thing by its picture first: a room, a venue, an event, a listing.
- [MemberList](/systems/cobalt/member-list.md): Lists the people who have access to something shared and the invitations still open, each with a role that can be changed and a way to take the access away.
- [Message](/systems/cobalt/message.md): Shows one message in a conversation, from a person or from an assistant: what was said, the pictures and files sent with it, how people reacted, where it sits among the messages around it, and whether yours arrived. Covers MessageAttachment, Reactions.
- [Meter](/systems/cobalt/meter.md): Shows how much of a fixed allowance is used, such as seats on a plan or requests against a limit, as a thin bar that fills toward its limit with the amount written beside it.
- [MissingValue](/systems/cobalt/missing-value.md): Says why a value is not there, in words in the place where the value would stand, so a reader can tell a figure the source did not give from one that is zero or none.
- [Nav](/systems/cobalt/nav.md): Takes you between the app's sections, marking the one you are on, as a row of links at the top and as a bar of tabs along the bottom of a phone.
- [NumberField](/systems/cobalt/number-field.md): Takes a count or an amount that a person nudges more often than types, such as guests, nights or a size threshold, with a minus and a plus beside the figure.
- [PageHeader](/systems/cobalt/page-header.md): Heads a record's page: what kind of thing it is, its name as the page's heading, one line about it, its picture and the actions on it, the same height while it loads as when it has loaded.
- [Page layout](/systems/cobalt/page-layout.md): One page shape: titled sections in a main column, and cards in a side column that sits beside it when the page's box has room for both, 840px, and under it at full width otherwise. Covers PageColumns, Section, RailCard.
- [PageProblem](/systems/cobalt/page-problem.md): Takes the place of a page that could not load: what happened in plain words, and the one way on, such as Try again or Sign in again. Covers LongWaitNotice, Failure, UseLongWait.
- [Pagination](/systems/cobalt/pagination.md): Moves through a list a page at a time and says which items are on screen. Covers ListBody.
- [Popover](/systems/cobalt/popover.md): A small panel attached to a button, for one field or setting, that opens as a bottom sheet on a phone.
- [Progress](/systems/cobalt/progress.md): Shows how much of a known amount is done, as a bar that fills toward its end.
- [RadioGroup](/systems/cobalt/radio-group.md): Picks one of two to six choices that are each shown with their words, and sends the pick with the form when it is saved.
- [RelativeTime](/systems/cobalt/relative-time.md): Says when something happened the way people say it, "5 minutes ago" or "yesterday", and from seven days on gives the date, with the full date and time on hover.
- [ResultCount](/systems/cobalt/result-count.md): Says how many items match a list: the exact count, an estimate, a floor while the end is not known yet, or how many of them can be shown when the server caps it, and reads each new count to a screen reader.
- [SaveLine](/systems/cobalt/save-line.md): Says whether what a person edited is saved, in one line that never changes size: Saving, Saved, Not saved with Retry, Could not confirm with Check, or Changed elsewhere with Show latest. Covers UseAutosave.
- [SaveToggle](/systems/cobalt/save-toggle.md): Saves a thing for later, such as a room, a paper or a fund, and shows whether it is saved: a bookmark that fills with the accent.
- [ScatterChart](/systems/cobalt/scatter-chart.md): Plots two measures of many things at once, one dot each, so a person can see how one measure relates to the other across the whole set.
- [SegmentedControl](/systems/cobalt/segmented-control.md): Chooses one of a few fixed options, as a radio group that changes state in place or as links that change the URL.
- [Select](/systems/cobalt/select.md): Picks one of up to 10 known options and sends it with the form.
- [SettingsLayout](/systems/cobalt/settings-layout.md): Lays out a settings page: the list of sections beside the one that is open on a wide screen, and on a phone the list as a page of its own that each section replaces, with a link back. Covers UseUndoable.
- [Sheet](/systems/cobalt/sheet.md): A panel that slides in from the edge of the screen.
- [Sidebar](/systems/cobalt/sidebar.md): Frames an app: the product's places in groups down one side, a bar above the page, and the page itself, with the side folding to a rail of glyphs and opening as a sheet on a phone.
- [Skeleton](/systems/cobalt/skeleton.md): Holds the place of content that is still on its way, so the page does not jump when it arrives.
- [Slider](/systems/cobalt/slider.md): Sets a number, or a low and a high bound, by its place along a scale, and lets the bounds of a range be typed exactly. Covers RangeFilter, Range.
- [SourceLine](/systems/cobalt/source-line.md): Says where the figures on screen came from and when they were read, so a reader can check them against the original.
- [Sparkline](/systems/cobalt/sparkline.md): Draws the trend of a series as a line with no axes, in a table cell or beside a figure, as a picture with a name.
- [Spinner](/systems/cobalt/spinner.md): Says that something is being read, in the slot where the answer will land, for people who see and for people who listen.
- [Stat](/systems/cobalt/stat.md): Shows one figure that matters on a page, with its name, how it changed since the last period and what it counts.
- [StateButton](/systems/cobalt/state-button.md): Reports a slow action inside the button that started it: after 250ms the label gives way to a spinner and the pending word, then to a check and the success word or a cross and the failure word on a red wash, while the box, the accessible name and keyboard focus stay where they were.
- [Steps](/systems/cobalt/steps.md): Shows the steps of a setup or a form in parts, in order, and where each one stands: done, current, still to come, being checked or failed. Covers StepSwap.
- [Switch](/systems/cobalt/switch.md): A setting that takes effect the moment it flips, on or off, with nothing to save.
- [Table](/systems/cobalt/table.md): Shows a few rows a person reads whole, such as the charges on a booking, the parameters of an endpoint or a fund's largest holdings in a card.
- [Tabs](/systems/cobalt/tabs.md): Switches between views of one thing in place, with one list of tabs and one panel showing at a time.
- [Tag](/systems/cobalt/tag.md): Names a category or a topic in a colour that follows the name, so the same key wears the same tint on every page and every visit, and leads to its topic when given a link.
- [TextLink](/systems/cobalt/text-link.md): Takes you to another page from a word inside a sentence or beside a heading, such as "See all".
- [Textarea](/systems/cobalt/textarea.md): Takes text that runs past one line, such as notes or an agenda, and grows with it.
- [Thread](/systems/cobalt/thread.md): Holds a conversation that grows while you read it: it opens at the newest message, keeps what you are reading still when more comes, tells you how many came, and says when someone is writing.
- [Timeline](/systems/cobalt/timeline.md): Lists what happened to one thing, in order, each event with its time, a title and an optional line about it: a fund's filings, a booking's changes, an audit trail.
- [Toast](/systems/cobalt/toaster.md): A short message about something that happened in the background.
- [Toggle](/systems/cobalt/toggle.md): A button that stays on or off, such as a filter over a list or a tool in a toolbar. Covers Pill.
- [Tooltip](/systems/cobalt/tooltip.md): Names a control that has no visible name, on hover and on keyboard focus, after one shared delay.
- [Trace](/systems/cobalt/trace.md): Shows what an agent did to reach its answer, step by step, so a person can check where an answer came from or see where it went wrong, folded away until they want it.
- [WaterfallChart](/systems/cobalt/waterfall-chart.md): Shows how a total moved from one amount to another, step by step, so a person reads what added to it, what took from it and where it ended.

## Rules
- [Coverage gaps](/systems/cobalt/coverage-gaps.md): What the system has not decided yet, and what to build meanwhile.
- [Rules](/systems/cobalt/rules.md): every trap and rule ID, the page that answers it and the check that enforces it

## Other
- [Decisions](/systems/cobalt/decisions.md): Settled conflicts between pages, specs and code, with the precedence that settled them.
