Skip to content

Internal ID software

React components for the tools ID builds for itself: forms, tables, dialogs, navigation and status. Converted from the old system and rebuilt only from the tokens.

Not drawn in Figma. Kasper decided on 20 November 2026 that internal software gets this set now, built only from the tokens. The look is ours until Peter draws it, and every open choice is a question in docs/SPOERGSMAAL-TIL-PETER.md. The public site, campaigns and brand surfaces use only the components drawn in Figma.

How to use it

Import a component from components/software, lay the page out with Grid and Stack, and use the components drawn in Figma (Button, UtilityButton, VariationPicker, ProductCard, Icon) beside them. A dark ground is data-theme="dark" on a container.

In another app, install @id-identity-as/design-system and import from '@id-identity-as/design-system/software'. The set has its own entry point, so an app for the public does not get it by accident. Import theme.css, fonts.css and components.css from the package as its README says.

import { Button } from '@/components/ui/button';
import { Actions } from '@/components/software/actions';
import { Card, CardHeader } from '@/components/software/card';
import { Input, Select } from '@/components/software/form';
import { Stack } from '@/components/software/layout';

<Card as="form" padding="lg">
  <CardHeader title="Ny bruger" level={2} />
  <Stack gap="inline-5">
    <Input label="Navn" name="name" autoComplete="name" required />
    <Input label="E-mail" name="email" type="email" autoComplete="email" required />
    <Select label="Afdeling" name="department" autoComplete="off" required placeholder="Vælg en afdeling" options={departments} />
    <Actions>
      <Button type="submit">Opret bruger</Button>
      <Button variant="outline">Annullér</Button>
    </Actions>
  </Stack>
</Card>

The components

33 components in 9 groups. Each has its own page with a live example in light and dark, its props and its rules.

Layout

ComponentWhat it isFrom the old system
StackRhythm as a decision: one gap between the children, taken from the spacing steps.Stack in @id-identity-as/ui/layout
GridThe nine-column grid, with cells that span thirds or the split four and five.Grid in @id-identity-as/ui/layout (twelve columns, now nine)

Text

ComponentWhat it isFrom the old system
HeadingA heading where the level in the outline and the text style are two decisions.Heading and Eyebrow in @id-identity-as/ui/layout
TextBody text in one of the body styles, default or muted.Text in @id-identity-as/ui/layout
LinkA link that looks like one: underlined inside a sentence, plain when it stands alone.Link in @id-identity-as/ui/layout

Surfaces

ComponentWhat it isFrom the old system
CardA surface with a hairline border that knows nothing about what is in it.Card in @id-identity-as/ui
CardHeaderThe top of a card: what it is, and at most one thing to do with it.CardHeader in @id-identity-as/ui
ActionsA row for the actions that share a moment, such as save and cancel.Actions in @id-identity-as/ui

Status and waiting

ComponentWhat it isFrom the old system
BadgeA status chip. The word carries the meaning; the colour never does alone.Badge in @id-identity-as/ui (ten coloured variants, now three)
SkeletonA placeholder with the shape of the content that has not arrived yet.Skeleton and SkeletonText in @id-identity-as/ui
PendingNoteA sentence that says a region is working, announced once.PendingNote in @id-identity-as/ui
EmptyStateThe empty case of a list or a search: what is missing, why, and one way out.EmptyState in @id-identity-as/ui/data
CalloutA note that belongs to the content around it: a condition, a reminder, a source.Callout in @id-identity-as/ui/data (five coloured variants, now two)
FlashMessageWhat the page says about the thing you just did. In the flow, not a toast.FlashMessage in @id-identity-as/ui/commerce

Data

ComponentWhat it isFrom the old system
StatCardOne number with its name, its change and its source.StatCard in @id-identity-as/ui/data
TableA data table with hairlines between the rows, numbers right aligned, and its own sideways scroll.Table in @id-identity-as/ui/commerce
BarListA ranked list with a bar behind each number. Layout, not a chart.BarList in @id-identity-as/ui/data

Navigation

ComponentWhat it isFrom the old system
PaginationMoving through a long list, as a list of links.Pagination in @id-identity-as/ui/commerce
BreadcrumbThe trail from the front of the app to this page.Breadcrumb in @id-identity-as/ui/commerce
NavigationThe way around an app: a named list of links with the current page marked.Navigation in @id-identity-as/ui/chrome (the list of links, without the public site chrome)

Forms

ComponentWhat it isFrom the old system
FormFieldA label, a control and the one message under it, wired together.FormField in @id-identity-as/ui/form
InputA single line of text, with its label, its helper and its error.Input in @id-identity-as/ui/form
TextareaSeveral lines of text.Textarea in @id-identity-as/ui/form
SelectOne choice from a list, as the native select.Select in @id-identity-as/ui/form
CheckboxOne checkbox: a consent, a preference, a setting.Checkbox in @id-identity-as/ui/form
RadioGroupOne question with a few answers, all shown.RadioGroup in @id-identity-as/ui/form
ErrorSummaryWhat a rejected form says first: every problem, each a link to its field.ErrorSummary in @id-identity-as/ui/form
QuantityStepperA number chosen with minus and plus, around a real number field.QuantityStepper in @id-identity-as/ui/buy

Overlays

ComponentWhat it isFrom the old system
DialogA question that must be answered before the work goes on.Dialog in @id-identity-as/ui/overlay
DrawerThe same dialog against an edge, as tall as the screen.Drawer in @id-identity-as/ui/overlay
TabsViews of the same thing, one at a time, with the whole keyboard model.Tabs in @id-identity-as/ui/overlay

Tools

ComponentWhat it isFrom the old system
CopyButtonCopies a text to the clipboard and says whether it worked.CopyLinkButton in @id-identity-as/ui
PrintButtonOpens the print dialog of the browser, and stays out of the print itself.PrintButton in @id-identity-as/ui

The rules

The rules of the old system, converted to the new one. They apply to every page built with this set, and every agent gets them.

RuleWhat to doWhy
scopeUse this set only in internal ID software: tools behind a login that ID's own people use. On id.dk, in campaigns, emails, slides and print, only the components drawn in Figma exist.Figma decides the look of the brand. This set is a working tool, not a brand surface.
tokens-onlyBuild only from the tokens. The software tokens (color.software.muted, component.field.*) are aliases of Figma values and never values of their own. Do not add one without asking.A value that is not in Figma is a value Peter has not decided. A test fails if a software token holds a value of its own.
no-status-colourThere is no red for errors, no green for success and no yellow for warnings. Say the status in words, and mark what needs attention with weight: a solid Badge, a doubled edge, the heading style. Flare is for the logo only.The old system had a status colour family; Figma has none. Meaning that sits in the word also survives greyscale, a screen reader and a colour blind reader.
tintsA tint is the 200 shade of one colour family with Ink text. Keep to the lead and the accent family of the page, and to pairs that go together.Peter's rule for 200 shades, and the colour pair rule. A tint decorates or groups; it does not carry a meaning on its own.
flatSurfaces are flat: a hairline in border/default, the base surface, radius/sm. No shadow, no gradient, no second radius.Figma has no shadows, and radius/md and radius/lg have no decided use yet.
native-firstUse the native element: input, select, textarea, checkbox, radio, dialog, table, a link. A form posts without script.The browser brings validation, autofill, keyboards, the focus trap and translations for free, and a native control never drops its value on the way to the server.
formsEvery field has a visible label and an autocomplete token. Optional fields are marked; required ones are not. An error says what to do, replaces the helper, and is repeated in an ErrorSummary first in the form.Carried over from the old form rules: a field the browser cannot fill is typed wrong, and a reader should not hunt for what went wrong.
links-and-actionsNavigation is a link, a change is a Button. One solid Button per view. Pages, filters and tabs that should be shareable live in the address.Back, bookmarks and shared links only work when a place is a link.
messagesThe outcome of an action is a FlashMessage in the flow of the page, until the next navigation. No toasts and no timers. A note that is part of the content is a Callout. A decision that cannot wait is a Dialog.A confirmation that disappears before it is read was never given.
waitingA wait is shown where it happens: a Skeleton with the shape of the content, or a PendingNote for a region. Never disable a submit button to show a wait; set aria-busy.A disabled submit is left out of the form data, and a placeholder of the wrong shape only postpones the jump.
dataNumbers come in formatted, the Danish way (1.234,56, kr. 139,00, 14. august 2026), and are never computed in a component. Mark example data as example data. Never invent a figure, a customer or a product fact.A component cannot know the currency, the rounding or the source.
chartsStatCard and BarList are layout: text and one colour of bar. For axes, time series and several series, ask first. Charts are not in the system yet.Figma has no chart colours, and the eight families are not a data palette.
text-as-propsEvery text a component shows or reads aloud is a prop. The built-in defaults are Danish and can be replaced.Fixed strings in a component were a mistake in the old system.
themesA dark ground is data-theme="dark" on a container. The components turn themselves; do not restyle them. Secondary text is the muted tone, never an opacity or a grey chosen by hand.The muted tone is measured in both themes at every build.
motionNothing moves except the two waiting marks, and they stand still for a reader who asks for less motion. No transition on a dialog, a drawer or a tab.Motion is not decided in Figma yet.
layoutLay a page out on the nine-column grid with Grid, and set rhythm with Stack: inline steps inside a group, section steps between groups. The old twelve-column grid and its spacing scale are gone.Peter's rules for grid and spacing.
server-firstEverything renders on the server except Dialog, Drawer, Tabs, QuantityStepper, CopyButton and PrintButton, which are Client Components. Pass the link of the framework with the as prop.A page that needs no state should need no script.
missingIf what you need is not in this set, say so and ask. Do not build a new component from loose values, and do not bring one in from another library.The same rule as for the Figma components.

The tokens it adds

The set adds no value to the system. These roles and sizes are aliases of values from Figma, kept apart in tokens/software/, and a test fails if one of them gets a value of its own.

TokenLightDarkCSS variableUse
component.field.padding-topcomponent/button/padding-topcomponent/button/padding-top--spacing-field-padding-topA form field is as tall as the CTA button beside it: the same padding above the text.
component.field.padding-bottomcomponent/button/padding-bottomcomponent/button/padding-bottom--spacing-field-padding-bottomA form field is as tall as the CTA button beside it: the same padding below the text.
component.field.padding-xcomponent/button/padding-xcomponent/button/padding-x--spacing-field-padding-xA form field has the CTA button's padding at the sides.
color.software.mutedneutral/600neutral/300--color-software-mutedSecondary text in internal software: helper text, captions, timestamps. Light: Charcoal. Dark: Ash. Ours until Peter draws one; not for the public site.

What became of the old system

The old React catalogue is at id-partner-room.vercel.app/brand/react. What was carried over is named on each component above. This is the rest: what was replaced, and what waits for Figma.

In the old systemNowWhy
Button variants ghost, approve and reject, the small size and the pending propButton from Figma: solid and outline.Figma draws two variants and no states yet (question 7). Approve and reject are words on a solid and an outline Button. A wait is aria-busy on the button and a PendingNote beside it.
Container, Bleed, SectionGrid and Stack.The page width, the margins and the breakpoints are not in Figma yet (question 10). The grid runs across the whole width with no gutter.
EyebrowThe eyebrow prop on CardHeader, or Text in the muted tone.The mono capitals of the old overline are not a text style in Figma.
Badge variants nyhed, bestseller, eco, campaign, signal, info, success, warning, dangerBadge: outline, solid and tint.There are no status or commerce colours in Figma. The word carries the meaning.
StatCard sparkline and the green or red delta chipStatCard with the change as text and an arrow.No pasted svg, and no status colours.
ChartFrame, TimeSeriesChart, CategoryBarChart, ShareDonut, SERIESNot carried over. BarList covers a ranked list.Figma has no chart colours. Ask before a chart is built.
ProductCard, ProductGrid, ProductGridItem, ProductImage, ProductImagePlaceholder, image-contractProductCard from Figma.The product card is drawn in Figma. Packshots sit on Snow, uncropped.
SizeChoiceVariationPicker from Figma.The variant selector is drawn in Figma, with the brackets.
DealerPrice, StockIndicator, ArticleNumber, CertBadgeRow, VolumePriceTable, FreightProgress, SizeGuideTable, NotifyMe, BuyBar, QuickBuy, SearchSuggest, FilterBar, FilterPanel, SortSelect, ShowMoreNot carried over.They belong to the public shop. They are drawn in Figma first, and they are on the list of what id-site needs.
Hero, HeroMedia, EditorialSplit, EditorialMedia, StatsBand, GarmentStrip, NewsletterSignup, Footer, ErrorPage, CookieConsent, and the public site NavigationNot carried over. Navigation here is the plain list of links for an app.They are the face of the public site. They are drawn in Figma first.
Icon, ICONS (49 icons), IDLogoIcon from Figma (21 icons). The logo is in public/brand.The icon set is closed and comes from Figma. A missing icon is drawn there first.