Skip to content

Base components: radio group, badge, alert, checkbox, tabs, table, Item rows and toast - #2801

Open
yasell wants to merge 15 commits into
CopilotKit:mainfrom
yasell:redesign/radio-group
Open

yasell wants to merge 15 commits into
CopilotKit:mainfrom
yasell:redesign/radio-group

Conversation

@yasell

@yasell yasell commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

The base components that are left, one commit each: a radio group, a badge, an alert, the
checkbox's missing states, the tabs' look, the table's header, a row's hover, the solid focus ring
on the switch, the chat bubble and the questionnaire, the toast, and the lines' color. They come in
one pull request rather than one each, as an exception agreed for this series. The radio group and
the alert are new, and nothing uses them yet. The badge is the one main added in #2807, changed
to the kit's colored words on a tint (with the colors of #2879, which merges first), and the one
screen it changes is a memory that needs review. The checkbox gains a dash when partly
ticked, a hover and the solid focus ring, and loses its shadow; the tabs get a flat chosen tab,
regular words and a hover; a table's header becomes a muted strip with smaller headings, and a
heading that sorts is one button shared by both tables; a row that opens something lights under
the pointer whether it is a link or a button, with the solid focus ring; the switch, the bubble and
the questionnaire take that ring too; a toast carries its status on its icon's tile, with its
action as the main button; and every line is the design kit's one opaque gray. Every screen with
one of these shows the change. Other screens move to these components in later pull requests, one
screen at a time.

Radio group

components/ui/radio-group.tsx adds RadioGroup and RadioGroupItem: shadcn's radio group in its
Base UI flavor, copied from the registry and drawn as the checkbox beside it is drawn. Nothing uses
it yet. The six native <input type="radio"> in the Bot's default model, the decision card, the
shared approval fields and the provider pages move to it in a later pull request, one screen at a
time, so this one changes no screen.

What it looks like

16px and round, as shadcn draws it.

  • An edge that can be seen. shadcn draws the edge in input, the faint line of a field: 1.25:1
    against a card in light and 1.38:1 in dark, under the 3:1 a control with no other cue needs. A
    radio nobody has chosen is nothing but that edge, so it takes the checkbox's muted-foreground
    instead, as the rule on contrast asks: 5.14:1 or more in light and 5.71:1 or more in dark, on the
    page, a card, a dialog and a muted row.
  • A chosen radio is a ring with a dot. The edge turns primary and an 8px primary dot sits
    on whatever the radio stands on, rather than shadcn's filled disc, so a chosen radio doesn't read
    as a ticked checkbox next to it. 18:1 or more in light, 14:1 or more in dark.
  • Keyboard focus is the button's solid ring (Give every button a semibold label and a solid focus ring #2629): the edge turns ring
    and 3px more is drawn outside, 4px in all (focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring), for a chosen radio too. Drawn outside, it is read against what the
    radio stands on: 3.11:1 or more in light and 6.05:1 or more in dark. shadcn's ring-ring/50 is
    1.75:1 on the page in light.
  • Invalid is red, as the design's kit draws it: a destructive edge on a destructive/10
    fill, and once chosen a destructive dot too. shadcn's ring-destructive/20 halo is left out:
    it sits where the focus ring goes and hides it. Focused, an invalid radio keeps its edge and gets
    the same ring, and the pointer doesn't change it.
  • Disabled is opacity-50, as on every control, and there is no shadow, as in shadcn's.
    Under the pointer it does what the checkbox does (see Checkbox, below).

Also left out of shadcn's copy:

  • dark:bg-input/30: a primitive draws no dark: color.
  • The group-has-[:focus-visible]/field-label:* classes, which take the radio's ring away inside a
    choice card (FieldLabel around a Field). Our FieldLabel draws no focus of its own, so the
    card would show none.
  • The after: box that widens the click target, which the checkbox doesn't have either: a radio
    comes with its label, and the label is the target.

Rules and tests

  • docs/design-system.md: keyboard focus is a solid ring in ring, drawn outside the control, and
    a shadcn component copied in may need its focus ring made solid, as it may need its corners and
    shadow. Unify fields and menus across themes #2632 adds the same words for the fields: whichever of the two lands
    first brings them, and the other keeps only its own lines. The rule on contrast names the radio
    beside the checkbox.
  • app/tests/ui-primitives-look.test.ts: the radio's edge is muted-foreground and never input;
    a chosen radio is a primary edge with no fill; an invalid one is red, chosen or not; its
    focus is border-ring, ring-3 and ring-ring, chosen or not, with no faded ring and no halo.
  • tokens/tests/contrast.test.ts: the ring is held at 3:1 on popover and muted too, where a
    radio's ring falls in a dialog or a muted row (the same two pairs as in Unify fields and menus across themes #2632).

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse:

  • every state, chosen and not (rest, hover, focus, invalid, invalid and focused, disabled), in
    the Checkbox section's sheets, below the checkbox;
  • a group of three on the page, a card, a muted row and a dialog;
  • two choice cards (FieldLabel around a Field), one focused from the keyboard;
  • the native radios main's screens draw today, beside the new one.

On main at b0f6c3d, bun run lint, bun run format:check and bun run typecheck pass, and so
do the look, look-guard, token contrast, skin and checkbox tests, the browser ones in Chromium and
WebKit.

02-surfaces

03-choice-cards

04-today

05-skins-choice-cards

Badge

main added components/ui/badge.tsx in #2807: shadcn's badge with muted and warning beside
shadcn's variants, used by a memory that needs review and by a paused plan. This changes it, and
adds success and in-progress.

This part depends on #2879 (the colors), which brings the in-progress token,
a darker success and light warning at the kit's warning/25: merge #2879 first. The screenshots
below are taken with #2879's colors.

What changes

  • A status is its color's words on its 10% tint, as the design's kit draws every badge:
    success, warning, destructive and the new in-progress (the kit's blue status), with no
    dot. With Colors: the scheme follows the Figma UI Kit, light and dark #2879's colors the words hold 4.5:1 on their tint over the page, a card, a menu, a
    muted row and the sidebar, in light and dark: 4.73:1 or more at rest and 4.59:1 or more under
    the pointer in light (warning over a muted row), 4.77:1 or more in dark. Colors: the scheme follows the Figma UI Kit, light and dark #2879's contrast test
    holds those pairs; this pull request drops its own badge pairs.
  • The words are regular (font-normal), 12px, as the kit's badge writes them; main had
    medium.
  • success, new, for what worked or is working, and in-progress, new, for what is still
    going.
  • Keyboard focus is the button's solid ring, with no ring-ring/50 and no
    ring-destructive/20 halo over it.
  • A chip is the same badge, rendered as a link or a button (render). Only then does it change
    under the pointer, its tint deepening to 12% as the kit's chip does (main deepened destructive
    to 20%), and disabled is opacity-50. main's ghost and link changed as a plain label too.
  • The one screen change is a memory's "Needs review" (memory/memories.tsx): its words stay
    warning, in regular weight.
  • Unchanged: the pill, the one size and muted.
  • Known: secondary and muted are one color, so a secondary or muted badge on a muted row
    shows only its words, as a secondary button does there.

Rules and tests

  • docs/design-system.md: a status color is used for words only where it holds 4.5:1 on its own
    10% tint over every surface, as a badge's words do; otherwise the words are foreground and the
    color goes on a mark, as an alert or a toast carries it on its icon's tile.
  • app/tests/ui-primitives-look.test.ts: a badge is a pill in one size; a status badge is its
    color's words on its /10 tint with no dot, deepening to /12 as a chip; the words are regular;
    only a link or a button changes under the pointer; focus is the solid ring, with no faded ring.
  • tokens/tests/contrast.test.ts: the badge pairs this pull request added before (foreground on a
    tint, a dot on its tint) are gone; Colors: the scheme follows the Figma UI Kit, light and dark #2879 holds the status words on their tints at 10% and 12%.

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse:

  • every variant, in-progress included, as a badge, with an icon at each end, and as a chip at
    rest, under the pointer, with keyboard focus and disabled, with Colors: the scheme follows the Figma UI Kit, light and dark #2879's colors;
  • the status badges on the page, a card, a muted row, a menu and the sidebar;
  • a list of rows with a status each, and chips that filter, as a screen would use them;
  • the memory that needs review, before and after, on a card and on a muted row.

On main at b0f6c3d, bun run lint, bun run format:check and bun run typecheck pass, and so
do the look, look-guard, token contrast, skin, checkbox, memory and plan tests, the browser ones in
Chromium and WebKit.

badge-01-variants

badge-02-surfaces

badge-03-example

badge-04-needs-review

badge-05-skins-variants

badge-05-skins-surfaces

Alert

components/ui/alert.tsx adds shadcn's Alert, AlertTitle and AlertDescription, and
AlertAction for what the alert asks for, on its right. It is a notice that stands in the page,
drawn as the design's Notifications draw a toast. About a dozen notices that screens draw by hand
today, each with a status tint, a colored edge at 30% or 40% and a corner of its own
(computers-page, shared-computers-notice, workspace-snapshots-section, tool-boundary,
gallery/refused, task-thread, the Needs you board, load-failure), move to it with their
screens.

What it looks like

  • It stands in the page, so it has a card's corner and hairline: rounded-lg, border, and no
    shadow. The design's toast floats over the app, at 20px with a soft shadow; that is toast.tsx,
    left for later.
  • default is a card, with muted-foreground words under the title, as shadcn draws it.
  • destructive, success and warning are a 10% tint, with their color on the icon and its
    tile, and foreground words,
    as the design draws them. success and warning fail as words
    on their tint (see the badge), and a red title on a red tint shouts. foreground reads at 15:1
    or more on every tint in light and 11:1 or more in dark, and the icon at 3.67:1 or more on its
    tile, on the page, a card, a dialog and a muted row.
  • The icon sits on a 32px tile (the design's is 44px, beside its larger type). The alert draws
    the tile around the svg it is given, so the markup stays shadcn's: an icon, AlertTitle,
    AlertDescription.
  • The action stays on the right, centered, and the words wrap beside it.
  • success and warning are ours, beside shadcn's default and destructive.

Rules and tests

  • docs/design-system.md: the rule on contrast names the alert's icon beside the badge's dot.
  • app/tests/ui-primitives-look.test.ts: an alert has a card's corner and hairline and no shadow;
    each status is a /10 tint with its color on the icon, and its words are foreground.
  • tokens/tests/contrast.test.ts: foreground on each status tint, and each status color on its
    tile over the tint, on the page, a card, a menu and a muted row, in light and dark.

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse:

  • every variant with an icon, a title, a description and an action, and with a title and a
    description only;
  • an alert of each variant on the page, a card, a muted row and a dialog;
  • an alert above a settings page's rows, with two actions, and one in a narrow column, where the
    words wrap.

On main at b0f6c3d, bun run lint, bun run format:check and bun run typecheck pass, and so
do the look, look-guard, token contrast, skin and checkbox tests, the browser ones in Chromium and
WebKit.

alert-01-variants

alert-02-surfaces

alert-03-example

alert-04-skins-variants

alert-04-skins-surfaces

Checkbox

components/ui/checkbox.tsx is main's, with the states the design draws and main didn't.

What changes

  • Partly ticked (indeterminate) is filled as a ticked box is, with a dash for the tick. main
    drew a tick on an empty box for it.
  • Under the pointer an empty box's edge turns foreground, and a ticked or partly ticked one's
    fill eases to primary/80, as the button's does. The radio does the same now, its dot too. An
    invalid box keeps its destructive edge. The design darkens the edge to 40% ink, but ours is
    already muted-foreground at rest, for 3:1, and 40% would make it lighter.
  • Keyboard focus is the button's solid ring, ticked or not, in place of ring-ring/50, and no
    ring-destructive/20 halo over an invalid box.
  • Invalid is red, as the design's kit draws it: an empty box is a destructive edge on a
    destructive/10 fill, a ticked or partly ticked one is filled with destructive. Focused, it
    keeps its edge under the ring, and the pointer doesn't change it.
  • Flat: shadow-xs is gone, as in the design and on the radio.
  • Unchanged: 16px, the 6px corner, the muted-foreground edge that
    app/tests/checkbox-contrast.test.tsx measures, and disabled at opacity-50.

Every screen with a checkbox (14 files) shows the hover, the focus ring and no shadow.

Rules and tests

  • docs/app-guidelines.md: shadow-xs is for an outlined button, a switch's knob and the chosen
    tab; a checkbox and a radio are flat.
  • app/tests/ui-primitives-look.test.ts: a partly ticked box is filled, with a dash; focus is the
    solid ring, and an invalid box is red, ticked or not; the checkbox and the radio answer the
    pointer and have no shadow.

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse:

  • every state of the checkbox, ticked, partly ticked and not, and of the radio, chosen and not:
    rest, hover, focus, invalid, invalid and focused, disabled;
  • main's checkbox in the same states, beside this one;
  • a list whose box is partly ticked over two of four chosen.

On main at b0f6c3d, bun run typecheck passes, bun run lint and bun run format:check pass on
the repository's files, and so do the look, look-guard, skin and checkbox-contrast tests and the
tests of the screens with a checkbox, the browser ones in Chromium and WebKit.

checkbox-01-states

checkbox-02-main-and-this

checkbox-03-example

checkbox-04-skins-states

Tabs

components/ui/tabs.tsx is main's, drawn as the design draws a row of tabs.

What changes

  • The corners stay main's, as the design's kit draws them: the list has the card corner
    (rounded-lg) and a tab the control corner (rounded-md), both from --radius.
  • The chosen tab is flat: a card, white in light as in the design, on the list's muted,
    with foreground words, no line and no shadow-xs.
  • Under the pointer a tab not chosen takes the list's fill a step darker (muted mixed 5%
    toward foreground, as a secondary button's hover). main only darkened its words.
  • Keyboard focus is the button's solid ring, in place of the faded ring and the 1px outline.
    The tab panel's focus ring, which Shared components: faster motion, less motion when asked, focus and wrapping #2806 added in main, is drawn solid too.
  • line keeps shadcn's underline and no fill, and takes the same focus ring.
  • The words are regular, in muted-foreground, as the design writes them, where main had
    medium in foreground/60. muted-foreground on muted is one of the pairs the contrast test
    holds at 4.5:1.
  • Unchanged: the size and the corners.

Every screen with tabs (7 files) shows the regular words, the flat chosen tab and the hover.

Rules and tests

  • docs/app-guidelines.md: the chosen tab is flat, with the checkbox and the radio, and
    shadow-xs is left to an outlined button and a switch's knob.
  • app/tests/ui-primitives-look.test.ts: a row of tabs has the card and control corners and
    regular muted-foreground words, the chosen tab is a card with no line and no shadow, a tab
    not chosen fills under the pointer, and focus is the solid ring. The check that a chosen tab is
    raised is gone.

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse:

  • the default list, with and without icons, and the line variant: at rest, with the pointer on a
    tab not chosen, with keyboard focus, and with a tab disabled;
  • main's tabs in the same states, beside these;
  • a row of tabs on the page, a card and a dialog.

On main at b0f6c3d, bun run typecheck passes, bun run lint and bun run format:check pass on
the repository's files, and so do the look, look-guard, skin and theme tests and the tests of the
screens with tabs, the browser ones in Chromium and WebKit.

tabs-01-states

tabs-02-main-and-this

tabs-02-surfaces

tabs-03-skins-states

Table

components/ui/table.tsx is main's, with the header drawn as the design draws it, and a new
TableSortButton for a heading that sorts.

What changes

  • The header is a strip of muted, with no line under it, in place of the panel's color and a
    1px line drawn as an inset shadow. muted differs from the panel, a card and a popover in light
    and dark, so the strip alone sets the header apart, as in the design. That line was the look
    test's one shadow allowed in a primitive, and the exception goes. The strip stays pinned while
    the rows scroll, and its row no longer lights under the pointer, so the two tables stop turning
    that off themselves.
  • Headings are labels: text-xs in regular weight and muted-foreground, as the design writes
    them and as app-guidelines.md has labels, where main had text-sm medium. muted-foreground on
    muted is one of the pairs the contrast test holds at 4.5:1. The header stays 40px tall.
  • TableSortButton is a heading that sorts, as the design's table header draws it: the words
    and an arrow, with no fill. Up for ascending, down for descending, and a pair (↑↓) when the column
    isn't sorted; the sorted column's arrow is foreground. Under the pointer the words and the arrow
    turn foreground. Keyboard focus is the button's solid ring, and disabled is half strength. The
    button reaches into the cell's padding, so its words line up with the column's. The heading cell
    carries aria-sort.
  • Both tables use it. Activity's When heading had a button of its own (a rounded corner, the
    words darkening under the pointer, the browser's own focus outline), and its cell now also
    carries aria-sort. A Bot's table
    had full-cell buttons with a 5% fill under the pointer, an outline inside for focus and a faded
    sort icon; a printed one still shows the heading alone.
  • Unchanged: the cells, a row's hover, and where a table sits: Activity's stays on the panel with
    no card, as main has it. The table a Bot draws in a chat and a Bot's spreadsheet draw their own
    headings and don't use this primitive, so they don't change here.

Activity (Settings and Admin) and every table a Bot draws in an artifact (a table, and the tables in
a document, a dashboard and a slide) show the strip, the smaller headings and the new sort arrows.

Rules and tests

  • docs/design-system.md: a table's header is one of the parts a muted fill marks.
    docs/app-guidelines.md: a table's column headings are labels, so text-xs.
  • app/tests/ui-primitives-look.test.ts: a table's header is a muted strip with no shadow and
    no hover, its headings text-xs, regular, muted-foreground; a sorting heading has no fill and
    the solid focus ring. The exception for the header's inset line is gone.
  • app/tests/ui-look-guard.allowlist.json: Activity's table has one corner step fewer, the old
    button's rounded.

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse:

  • a sorting heading not sorted, ascending, descending, under the pointer, with keyboard focus and
    disabled, and a header with headings that sort beside ones that don't;
  • the Activity page, drawn from the app's own page on six events, beside main's;
  • a Bot's table, not sorted and sorted by one column, beside main's;
  • a table on the page, a card and a dialog.

On main at b0f6c3d, bun run typecheck passes, bun run lint and bun run format:check pass on
the repository's files, and so do the look and look-guard tests and the tests of every screen with
a table (Activity, Admin's audit, the artifacts and the gallery), the browser ones in Chromium and
WebKit.

table-01-headings

table-02-activity-main-and-this

table-03-artifacts-main-and-this

table-04-surfaces

table-05-skins-headings

Item rows

components/ui/item.tsx is main's, with a row that opens something drawn the same whether it is a
link or a button.

What changes

  • A row rendered as a button lights under the pointer, as a row rendered as a link already did:
    muted, the fill the design's card takes under the pointer ([a,button]:hover:bg-muted). About
    50 rows open a dialog or a sheet from a button and didn't answer the pointer at all, while the
    rows beside them that open a screen did. A row that only shows something still doesn't light.
  • Keyboard focus is the button's solid ring, in place of the faded ring-ring/50, on a row
    that is a link or a button.
  • A screen's own hover on such a row names the same [a,button]:hover:, so it replaces the
    row's: a plain hover: loses to it. OpenFuse's rows, which draw no fill under the pointer and a
    fill of their own when chosen, now say so that way and look as they did. Admin → Components' two
    rows drop their lighter muted/50, which the link row had already lost to the row's own hover,
    and two rows that repeated hover:bg-muted drop it.
  • Unchanged: the sizes, the corners, the variants, and rows that only show something.

Rules and tests

  • .claude/skills/openbot-screen-layout/SKILL.md: a row that opens something takes the hover and
    the focus ring on its own; a screen that draws its own names [a,button]:hover:.
  • app/tests/ui-primitives-look.test.ts: a row that is a link or a button fills muted under the
    pointer, a row that isn't doesn't, and focus is the solid ring with no faded one.

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse:

  • a row rendered as a button in each variant (default, outline, muted) at rest, under the pointer,
    with keyboard focus and disabled; a row rendered as a link; a row that only shows something;
  • rows in a list as a settings screen draws them, one under the pointer and one focused, beside
    main's;
  • a row under the pointer on the page, a card and a dialog;
  • OpenFuse's own row under the pointer, beside main's.

On main at b086b40, bun run typecheck passes, bun run lint and bun run format:check pass on
the repository's files, and so do the app's unit tests and the browser tests of the screens with
such rows, the skins and the theme, in Chromium and WebKit. One unit test fails the same way on
main at b086b40 without this change: app/workbench/pageDefaults.test.ts, which finds seven
OpenBot Desktop commands with no page default.

item-01-states

item-02-rows-main-and-this

item-03-surfaces

item-04-openfuse-main-and-this

item-05-skins-states

Focus rings: switch, bubble, questionnaire

The last primitives in this series that drew shadcn's faded ring (ring-ring/50, 1.75:1 on the
page in light) draw the button's solid ring instead: focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring.

What changes

  • Switch (components/ui/switch.tsx): the solid ring. An invalid switch keeps its
    destructive edge and loses the ring-destructive/20 halo, which lay over the focus ring; its
    track is a fill, so it takes no tint.
  • Bubble (components/ui/bubble.tsx): a chat bubble drawn as a link or a button takes the
    solid ring.
  • Questionnaire (components/ui/questionnaire.tsx): a choice and the field take the solid
    ring. An invalid field is white with a destructive edge, as the design's kit draws every
    field, with no halo.
  • Unchanged: their sizes, colors and every other state. The slider's thumb keeps its faded halo
    for now: it is a hover and pressed state as much as a focus one, and moves with the design's
    slider.

Rules and tests

  • app/tests/ui-primitives-look.test.ts: the switch, the bubble, the questionnaire and the toast
    draw the solid focus ring and no faded ring or halo.

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse: the switch off,
on, focused, invalid with and without focus, and disabled; a bubble drawn as a button in three
variants with focus; a questionnaire's choice and field with focus, and its field invalid. The
switch and the questionnaire beside main's.

focus-01-switch-main-and-this

focus-02-bubble

focus-03-questionnaire-main-and-this

Toast

components/ui/toast.tsx is main's, drawn as the design's notification: the corner card it already
was, with its status on its icon.

What changes

  • The status is on the icon's 32px tile, as an alert carries it: success, warning and
    destructive at 10% with the glyph in the color, information and loading on muted. The words
    stay foreground and muted-foreground. main drew a bare glyph, in destructive for an error
    and in the words' color otherwise.
  • The action is the main button, as the design draws it, where main had outline. An error's
    action is destructive, the design's soft red button. Three toasts have an action: Try again,
    Sign in again, and OpenBot Desktop's Show in Finder for a download.
  • Keyboard focus is the button's solid ring, in place of the faded one.
  • Unchanged: where toasts stand (the corner), the card, the stack and the swipe, the sizes
    (text-sm, as an alert), the close button, and an error staying until it is closed. The design's
    other kind, a tinted bar at the top, isn't used: every toast the app raises is the corner card.

docs/design-system.md names the toast beside the alert where it says a status color goes on a
mark, not on the words. Each glyph on its tile over a popover is a pair the contrast test already
holds (the badge's).

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse: the app's own
Toaster with a stack of three, expanded under the pointer — a confirmation, information and an
error with an action; then a warning, loading and information with an action — beside main's.

On main at b086b40, bun run typecheck passes, bun run lint and bun run format:check pass on
the repository's files, and so do the look and look-guard tests and the tests of the screens that
raise a toast or draw a bubble, the browser ones in Chromium and WebKit.

toast-01-main-and-this

toast-02-main-and-this

toast-03-skins

Lines

border, input and sidebar-border are the design kit's one line color, Lines/border: an
opaque gray, #E7E7E8 in light and #2B323A in dark, where main drew the text color at 10% in light
and 12% in dark.

What changes

  • One opaque gray for every line, in tokens/src/scheme.ts and every copy it writes: the web
    app's theme, the artifacts' tokens, OpenBot Desktop's first paint and sign-in window (which
    already drew an opaque approximation, #E6E6E7 / #2D3339) and OpenBot Mobile.
  • On a card, a dialog and the page it looks the same: 1.24:1 against a card in light (1.25
    before), 1.36:1 in dark (1.38).
  • On a gray fill it is fainter, because an opaque line no longer darkens what it stands on: in
    light, about 1.09:1 on muted, secondary and accent and 1.06:1 on the sidebar, where the
    translucent line was 1.25:1 everywhere; a box drawn only by its line on a muted fill or in the
    sidebar all but disappears (the first image). In dark the lines stay visible everywhere (1.12 to
    1.50). This is the design's choice; no control relies on a line alone: a checkbox's and a radio's
    edge are muted-foreground, and a field has its fill and its focus ring.
  • The light gray is written on slate's hue (oklch(0.928 0.001 252), the same #E7E7E8), so the
    rule that every light gray sits on slate's hues still holds.

Rules and tests

  • docs/design-system.md and docs/app-guidelines.md: every line is one opaque gray,
    Lines/border, fainter on a gray fill. This replaces the rule that every line is the text color
    at one strength.
  • app/tests/ui-look-theme.test.ts: border, input and sidebar-border are that gray in light
    and in dark.
  • tokens/tests/generated.test.ts: an RGB copy still blends a translucent color over the card (now
    shown on sidebar-accent, the one translucent color left), and writes the opaque border as it is.

Looked at

At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse: a box, a divider,
a field and an outline button on the page, a card, a dialog, a muted fill and the sidebar; and a
settings screen in miniature with the sidebar's lines, a card and a table; each beside main's.

bun run typecheck passes, bun run lint and bun run format:check pass on the repository's
files, and so do the token tests, the theme and look tests, and the tests that read the lines or
draw them in the skins, the browser ones in Chromium and WebKit.

lines-01-surfaces-main-and-this

lines-02-screen-main-and-this

lines-03-skins

…rough render

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yasell yasell changed the title Add a radio group, drawn as the checkbox is Base components: a radio group and a badge Dec 3, 2026
yasell and others added 2 commits December 3, 2026 09:19
main added a Badge of its own (CopilotKit#2807). The branch's badge is rebuilt on it: main's `muted` stays,
`success` joins, `warning` becomes a dot with foreground words, focus the solid ring, and a chip
changes under the pointer as a link or a button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… an action on the right

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yasell yasell changed the title Base components: a radio group and a badge Base components: a radio group, a badge and an alert Dec 3, 2026
…lat; the radio's hover too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yasell yasell changed the title Base components: a radio group, a badge and an alert Base components: a radio group, a badge, an alert and checkbox states Dec 3, 2026
… the solid focus ring

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yasell yasell changed the title Base components: a radio group, a badge, an alert and checkbox states Base components: radio group, badge, alert, checkbox and tabs Dec 3, 2026
…tton

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yasell yasell changed the title Base components: radio group, badge, alert, checkbox and tabs Base components: radio group, badge, alert, checkbox, tabs and table Dec 3, 2026
yasell and others added 4 commits December 3, 2026 18:10
# Conflicts:
#	app/src/components/ui/tabs.tsx
…tton, with the solid focus ring

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d edge with no halo

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…action the main button, the solid focus ring

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yasell yasell changed the title Base components: radio group, badge, alert, checkbox, tabs and table Base components: radio group, badge, alert, checkbox, tabs, table, Item rows and toast Dec 3, 2026
…323A dark)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yasell and others added 3 commits December 3, 2026 21:52
… rounded-lg, tab rounded-md)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… draws them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… kit draws it, and in-progress

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant