Repository navigation
Conversation
yasell
requested review from
MikeRyanDev,
davidmckayv,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 2, 2026 17:24
…rough render Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
…lat; the radio's hover too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the solid focus ring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tton Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# 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>
…323A dark) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 3, 2026
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
mutedstrip with smaller headings, and aheading 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.tsxaddsRadioGroupandRadioGroupItem: shadcn's radio group in itsBase 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, theshared 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.
input, the faint line of a field: 1.25:1against 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-foregroundinstead, 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.
primaryand an 8pxprimarydot sitson 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.
ringand 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 theradio stands on: 3.11:1 or more in light and 6.05:1 or more in dark. shadcn's
ring-ring/50is1.75:1 on the page in light.
destructiveedge on adestructive/10fill, and once chosen a
destructivedot too. shadcn'sring-destructive/20halo 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.
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 nodark:color.group-has-[:focus-visible]/field-label:*classes, which take the radio's ring away inside achoice card (
FieldLabelaround aField). OurFieldLabeldraws no focus of its own, so thecard would show none.
after:box that widens the click target, which the checkbox doesn't have either: a radiocomes with its label, and the label is the target.
Rules and tests
docs/design-system.md: keyboard focus is a solid ring inring, drawn outside the control, anda 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 ismuted-foregroundand neverinput;a chosen radio is a
primaryedge with no fill; an invalid one is red, chosen or not; itsfocus is
border-ring,ring-3andring-ring, chosen or not, with no faded ring and no halo.tokens/tests/contrast.test.ts: the ring is held at 3:1 onpopoverandmutedtoo, where aradio'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:
the Checkbox section's sheets, below the checkbox;
FieldLabelaround aField), one focused from the keyboard;On main at b0f6c3d,
bun run lint,bun run format:checkandbun run typecheckpass, and sodo the look, look-guard, token contrast, skin and checkbox tests, the browser ones in Chromium and
WebKit.
Badge
main added
components/ui/badge.tsxin #2807: shadcn's badge withmutedandwarningbesideshadcn's variants, used by a memory that needs review and by a paused plan. This changes it, and
adds
successandin-progress.This part depends on #2879 (the colors), which brings the
in-progresstoken,a darker
successand lightwarningat the kit's warning/25: merge #2879 first. The screenshotsbelow are taken with #2879's colors.
What changes
success,warning,destructiveand the newin-progress(the kit's blue status), with nodot. 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.
font-normal), 12px, as the kit's badge writes them; main hadmedium.
success, new, for what worked or is working, andin-progress, new, for what is stillgoing.
ring-ring/50and noring-destructive/20halo over it.render). Only then does it changeunder the pointer, its tint deepening to 12% as the kit's chip does (main deepened
destructiveto 20%), and disabled is
opacity-50. main'sghostandlinkchanged as a plain label too.memory/memories.tsx): its words staywarning, in regular weight.muted.secondaryandmutedare one color, so asecondaryormutedbadge on a muted rowshows only its words, as a
secondarybutton 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 own10% tint over every surface, as a badge's words do; otherwise the words are
foregroundand thecolor 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 itscolor's words on its
/10tint with no dot, deepening to/12as 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 (foregroundon atint, 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:
in-progressincluded, as a badge, with an icon at each end, and as a chip atrest, under the pointer, with keyboard focus and disabled, with Colors: the scheme follows the Figma UI Kit, light and dark #2879's colors;
On main at b0f6c3d,
bun run lint,bun run format:checkandbun run typecheckpass, and sodo the look, look-guard, token contrast, skin, checkbox, memory and plan tests, the browser ones in
Chromium and WebKit.
Alert
components/ui/alert.tsxadds shadcn'sAlert,AlertTitleandAlertDescription, andAlertActionfor 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 theirscreens.
What it looks like
rounded-lg,border, and noshadow. The design's toast floats over the app, at 20px with a soft shadow; that is
toast.tsx,left for later.
defaultis a card, withmuted-foregroundwords under the title, as shadcn draws it.destructive,successandwarningare a 10% tint, with their color on the icon and itstile, and
foregroundwords, as the design draws them.successandwarningfail as wordson their tint (see the badge), and a red title on a red tint shouts.
foregroundreads at 15:1or 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 tile around the svg it is given, so the markup stays shadcn's: an icon,
AlertTitle,AlertDescription.successandwarningare ours, beside shadcn'sdefaultanddestructive.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
/10tint with its color on the icon, and its words areforeground.tokens/tests/contrast.test.ts:foregroundon each status tint, and each status color on itstile 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:
description only;
words wrap.
On main at b0f6c3d,
bun run lint,bun run format:checkandbun run typecheckpass, and sodo the look, look-guard, token contrast, skin and checkbox tests, the browser ones in Chromium and
WebKit.
Checkbox
components/ui/checkbox.tsxis main's, with the states the design draws and main didn't.What changes
indeterminate) is filled as a ticked box is, with a dash for the tick. maindrew a tick on an empty box for it.
foreground, and a ticked or partly ticked one'sfill eases to
primary/80, as the button's does. The radio does the same now, its dot too. Aninvalid box keeps its
destructiveedge. The design darkens the edge to 40% ink, but ours isalready
muted-foregroundat rest, for 3:1, and 40% would make it lighter.ring-ring/50, and noring-destructive/20halo over an invalid box.destructiveedge on adestructive/10fill, a ticked or partly ticked one is filled withdestructive. Focused, itkeeps its edge under the ring, and the pointer doesn't change it.
shadow-xsis gone, as in the design and on the radio.muted-foregroundedge thatapp/tests/checkbox-contrast.test.tsxmeasures, and disabled atopacity-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-xsis for an outlined button, a switch's knob and the chosentab; 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 thesolid 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:
rest, hover, focus, invalid, invalid and focused, disabled;
On main at b0f6c3d,
bun run typecheckpasses,bun run lintandbun run format:checkpass onthe 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.
Tabs
components/ui/tabs.tsxis main's, drawn as the design draws a row of tabs.What changes
(
rounded-lg) and a tab the control corner (rounded-md), both from--radius.card, white in light as in the design, on the list'smuted,with
foregroundwords, no line and noshadow-xs.mutedmixed 5%toward
foreground, as asecondarybutton's hover). main only darkened its words.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.
linekeeps shadcn's underline and no fill, and takes the same focus ring.muted-foreground, as the design writes them, where main hadmedium in
foreground/60.muted-foregroundonmutedis one of the pairs the contrast testholds at 4.5:1.
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, andshadow-xsis 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 andregular
muted-foregroundwords, the chosen tab is acardwith no line and no shadow, a tabnot 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:
tab not chosen, with keyboard focus, and with a tab disabled;
On main at b0f6c3d,
bun run typecheckpasses,bun run lintandbun run format:checkpass onthe 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.
Table
components/ui/table.tsxis main's, with the header drawn as the design draws it, and a newTableSortButtonfor a heading that sorts.What changes
muted, with no line under it, in place of the panel's color and a1px line drawn as an inset shadow.
muteddiffers from the panel, a card and a popover in lightand 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.
text-xsin regular weight andmuted-foreground, as the design writesthem and as
app-guidelines.mdhas labels, where main hadtext-smmedium.muted-foregroundonmutedis one of the pairs the contrast test holds at 4.5:1. The header stays 40px tall.TableSortButtonis a heading that sorts, as the design's table header draws it: the wordsand 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 arrowturn
foreground. Keyboard focus is the button's solid ring, and disabled is half strength. Thebutton reaches into the cell's padding, so its words line up with the column's. The heading cell
carries
aria-sort.roundedcorner, thewords darkening under the pointer, the browser's own focus outline), and its cell now also
carries
aria-sort. A Bot's tablehad 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.
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 amutedfill marks.docs/app-guidelines.md: a table's column headings are labels, sotext-xs.app/tests/ui-primitives-look.test.ts: a table's header is amutedstrip with no shadow andno hover, its headings
text-xs, regular,muted-foreground; a sorting heading has no fill andthe 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 oldbutton's
rounded.Looked at
At 2x, in light and dark, with no skin and under OpenDuet, OpenDots and OpenFuse:
disabled, and a header with headings that sort beside ones that don't;
On main at b0f6c3d,
bun run typecheckpasses,bun run lintandbun run format:checkpass onthe 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.
Item rows
components/ui/item.tsxis main's, with a row that opens something drawn the same whether it is alink or a button.
What changes
muted, the fill the design's card takes under the pointer ([a,button]:hover:bg-muted). About50 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.
ring-ring/50, on a rowthat is a link or a button.
[a,button]:hover:, so it replaces therow's: a plain
hover:loses to it. OpenFuse's rows, which draw no fill under the pointer and afill 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-muteddrop it.Rules and tests
.claude/skills/openbot-screen-layout/SKILL.md: a row that opens something takes the hover andthe 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 fillsmutedunder thepointer, 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:
with keyboard focus and disabled; a row rendered as a link; a row that only shows something;
main's;
On main at b086b40,
bun run typecheckpasses,bun run lintandbun run format:checkpass onthe 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 sevenOpenBot Desktop commands with no page default.
Focus rings: switch, bubble, questionnaire
The last primitives in this series that drew shadcn's faded ring (
ring-ring/50, 1.75:1 on thepage in light) draw the button's solid ring instead:
focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring.What changes
components/ui/switch.tsx): the solid ring. An invalid switch keeps itsdestructiveedge and loses thering-destructive/20halo, which lay over the focus ring; itstrack is a fill, so it takes no tint.
components/ui/bubble.tsx): a chat bubble drawn as a link or a button takes thesolid ring.
components/ui/questionnaire.tsx): a choice and the field take the solidring. An invalid field is white with a
destructiveedge, as the design's kit draws everyfield, with no 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 toastdraw 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.
Toast
components/ui/toast.tsxis main's, drawn as the design's notification: the corner card it alreadywas, with its status on its icon.
What changes
success,warninganddestructiveat 10% with the glyph in the color, information and loading onmuted. The wordsstay
foregroundandmuted-foreground. main drew a bare glyph, indestructivefor an errorand in the words' color otherwise.
outline. An error'saction 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.
(
text-sm, as an alert), the close button, and an error staying until it is closed. The design'sother kind, a tinted bar at the top, isn't used: every toast the app raises is the corner card.
docs/design-system.mdnames the toast beside the alert where it says a status color goes on amark, 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 typecheckpasses,bun run lintandbun run format:checkpass onthe 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.
Lines
border,inputandsidebar-borderare the design kit's one line color,Lines/border: anopaque gray, #E7E7E8 in light and #2B323A in dark, where main drew the text color at 10% in light
and 12% in dark.
What changes
tokens/src/scheme.tsand every copy it writes: the webapp'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.
before), 1.36:1 in dark (1.38).
light, about 1.09:1 on
muted,secondaryandaccentand 1.06:1 on the sidebar, where thetranslucent 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.oklch(0.928 0.001 252), the same #E7E7E8), so therule that every light gray sits on slate's hues still holds.
Rules and tests
docs/design-system.mdanddocs/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 colorat one strength.
app/tests/ui-look-theme.test.ts:border,inputandsidebar-borderare that gray in lightand in dark.
tokens/tests/generated.test.ts: an RGB copy still blends a translucent color over the card (nowshown 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 typecheckpasses,bun run lintandbun run format:checkpass on the repository'sfiles, 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.