Repository navigation
Conversation
Sets the scheme's colors to the Light and Dark modes of the Figma UI Kit's Semantic collection (2026-12-03) and writes them into every app's copy. The lines stay the text color at 10% and 12%, now of the new text color; the dark destructive is the kit's, a shade lighter, so its words read at 4.5:1 on a destructive/20 hover over a muted row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yasell
requested review from
MikeRyanDev,
davidmckayv,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 3, 2026 17:13
Light warning takes the kit's warning/25 (#a03e00), so a badge's words in the status color on its 10% tint read at 4.5:1 over a muted row and the sidebar. The kit's Status/in-progress becomes a token beside success, warning and destructive: light #0b49bb, dark #a5c5ff, in the web app's @theme and the colors the artifacts bridge passes. The contrast test holds every status's words on its own tint, on each surface a badge stands on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A badge drawn as a chip (a link or a button) deepens its tint to 12% under the pointer, as the kit's chip does. The contrast test holds each status's words on that tint too, on every surface a badge stands on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Dec 4, 2026
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 Figma UI Kit now has a dark theme: the Light and Dark modes of its
Semanticvariablecollection (2026-12-03). This pull request sets the scheme's colors to it in
tokens/src/scheme.ts, andbun run tokens:generatewrites them into every copy: the web app,OpenBot Desktop, OpenBot Mobile, the manifest and the artifacts' kit. It also adds the kit's
fourth status,
in-progress, as a token besidesuccess,warninganddestructive. No token isrenamed or removed, and no primitive or screen changes: every screen takes the new values from the
tokens.
Each of the kit's hex values was converted to OKLCH and back through
tokens/src/color.tsandthrough Color.js, and both give the kit's hex exactly.
Light
background#f8fafb#fafafaforeground,primaryand every*-foregroundon a light fill#010313#0b121asecondary,accent#ecf1f6#edf3famuted#ecf1f6#e7eaf0muted-foreground#55667f#525960ring,sidebar-ring#727eef#6f7fb9sidebar#e9eef4#e7eaf0success#12795b#08684fwarning#a84900#a03e00Semantichas warning/30,#a84900: see Contrast)in-progress(new)#0b49bbborder,input,sidebar-border#010313at 10%#0b121aat 10%card,popoverandprimary-foregroundstay white, anddestructive(#a31526) is already thekit's.
Dark
background#0d1319#0b121acard,popover#131920#111820foreground,primaryand every*-foregroundon a dark fill#eef1f3#edf3faprimary-foreground,sidebar-primary-foreground#020409#0b121asecondary#1c232a#1d232amuted#1c232a#30363daccent#232a31#30363dmuted-foreground#949ca5#9fa5acring,sidebar-ring#8d97ff#6f7fb9sidebar#070d14#030508success#5fe3bb#45d3b0warning#ffb900#ff9e40destructive#ff9aa0#fdafb6#f6a8af, a shade lighter (see Contrast)in-progress(new)#a5c5ffborder,input,sidebar-border#eef1f3at 12%#edf3faat 12%A fourth status:
in-progressThe kit marks what is still running in a status of its own,
Status/in-progress, a blue. Itbecomes a token like the other three: it means what is under way and has no outcome yet, a run, a
task or a step that hasn't finished.
bg-in-progress/10,text-in-progressandbg-in-progresswork in the web app and in an artifact's page (
--color-in-progressintheme.css's@theme, andthe bridge passes it to a page like every other color of the scheme). OpenBot Mobile's
src/scheme.tshas it too. OpenBot Desktop's stylesheets and OpenBot Mobile's HeroUI Native namestake only the colors they draw, and neither draws it yet. Nothing on a screen uses it yet either.
app/tests/design-tokens.test.tsletstheme.cssdeclare it besidesuccessandwarning, anddocs/design-system.mdanddocs/app-guidelines.mdname it and what it means.What changes in the levels
The levels keep their order in both modes, frame darker than panel, panel darker than card
(
app/tests/design-tokens.test.ts), and in dark the fills stay lighter than the card. Two thingsread differently:
secondaryandaccentare one pale blue andmutedis a step deeper, the sidebar'stint. On main all three were one color.
mutedandaccentare a step abovesecondaryrather than equal to it, and the frameis close to black.
The grays stay one family (
tokens/tests/slate.test.ts): in light every tinted gray sits betweenhues 248 and 265 and the panel has no tint; in dark every gray sits at hue 252 with chroma 0.02 or
less.
Lines
The kit draws its lines opaque (
#e7e7e8,#2b323a). The rule here is that every line is thetext color at one strength (
app/tests/ui-look-theme.test.ts), so this pull request keeps thatrule and only moves the lines to the new text color: 1.23:1 against a card in light (1.25:1 on
main) and 1.38:1 in dark, as before. The opaque lines come with #2801, which
changes the rule. Whichever of the two lands second takes #2801's lines in
scheme.tsandregenerates.
Contrast
tokens/tests/contrast.test.tsgains three sets of pairs:in-progressas text on the page and on a card, as the other statuses have.page, a card, a menu, a muted row and the sidebar, at 4.5:1. That is how the kit draws a badge.
pointer, as the kit's chip does: 4.59:1 at the lowest in light (warning over a muted row), 4.77:1
in dark.
Every pair passes in light and in dark. The badge pairs, at their lowest:
mutedand the sidebar)muted)successwarningdestructivein-progressTwo values move off the kit's
Semanticto pass:warningis the kit's warning/25 (#a03e00) whereSemantichas warning/30(
#a84900):#a84900's words on its tint reach 4.20:1 over a muted row and over the sidebar.#a03e00reads at 5.43:1 over the page, 5.65:1 over a card and 4.73:1 over a muted row and thesidebar, and 6.60:1 as text on white. The kit's
Semanticwarning in Light should takewarning/25 too.
destructivekeeps the kit's hue and chroma, a shade lighter (OKLCH lightness 0.809 to0.829): with the kit's
#f6a8af, its words on adestructive/20hover over a muted row (a pairBase components: radio group, badge, alert, checkbox, tabs, table, Item rows and toast #2801 adds) reach 4.29:1; with
#fdafb6, 4.52:1.The rest of the pairs, main beside this pull request:
foregroundonbackgroundforegroundoncardmuted-foregroundonbackgroundmuted-foregroundoncardmuted-foregroundonmutedprimary-foregroundonprimarysidebar-foregroundonsidebarsidebar-accent-foregroundon the selected rowdestructiveoncardsuccessoncardwarningoncardin-progressoncardringonbackgroundringoncardsidebar-ringonsidebarThe values were also run against #2801's version of that test, which adds alerts on their tints
and the ring on a dialog and on a muted row: 155 of 155 pass.
Not in this pull request
sidebar-accent(lavender/70 at 30%), itsempty-pattern-colorand its six chartcolors come separately.
success,warninganddestructivebut notin-progress: that is a change to the artifact theme's shape, for later.terminal-theme.ts), tuned for its own dark ground.Other changes
mobile/app.config.ts: the splash's background, written out by hand, follows the scheme(
mobile/tests/launch-splash.test.tsholds them equal).tokens/tests/generated.test.ts: the phone's warnings, pinned there, are#a03e00and#ff9e40.app/src/lib/artifacts/bridge/wire.ts:in-progressin the colors the bridge passes(
app/tests/artifact-bridge-tokens.test.tsholds that list to the scheme).docs/app-guidelines.md: the paragraph on the grays, andin-progressin the token list andin what each color means.
docs/design-system.md:in-progressbesidesuccessandwarning.app/tests/skins.test.ts: a comment that said secondary, muted and accent are one color in light.What I looked at
A gallery built from the app's own primitives: the sidebar with a selected row, a row under the
pointer and a row with keyboard focus; a card with a focused field, a checkbox, switches and every
button variant; a menu with its highlighted row; the badges; rows with statuses; and every surface
with text, quieter text, the statuses, the ring and a line. main beside this pull request, light
and dark, then this pull request under each skin. The
in-progressrow and chip are drawn only inthis pull request, since main has no such color. Hover and focus are forced through DevTools.
Checks
bun testintokens/(152 tests).app/:design-tokens,ui-look-theme,skins,skins-opendots-a11y,artifact-theme-contrast,artifact-bridge-tokens,color-scheme(168 tests); in Chromium andWebKit, the skins' browser tests,
checkbox-contrastanddesktop-window-theme(124 pass, 1skipped: it only takes screenshots).
mobile/:launch-splash(3 tests).bun run typecheckinapp/;biome lintandbiome formaton the changed files.