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
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. No token is added, renamed 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#08684fborder,input,sidebar-border#010313at 10%#0b121aat 10%card,popoverandprimary-foregroundstay white;destructive(#a31526) andwarning(
#a84900) are already the kit'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)border,input,sidebar-border#eef1f3at 12%#edf3faat 12%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
Every pair in
tokens/tests/contrast.test.tspasses in light and in dark:foregroundonbackgroundforegroundoncardmuted-foregroundonbackgroundmuted-foregroundoncardmuted-foregroundonmutedprimary-foregroundonprimarysidebar-foregroundonsidebarsidebar-accent-foregroundon the selected rowdestructiveoncardsuccessoncardwarningoncardringonbackgroundringoncardsidebar-ringonsidebarThe values were also run against #2801's version of that test, which adds badges and alerts on
their tints and the ring on a dialog and on a muted row: 155 of 155 pass. With the kit's own dark
destructive (
#f6a8af) one of them fails: its words on adestructive/20hover over a muted rowreach 4.29:1. The destructive here keeps the kit's hue and chroma, a shade lighter (OKLCH
lightness 0.809 to 0.829), and reaches 4.52:1.
One pairing fails that no test holds: in light,
warningwords on awarning/10tint overmutedare 4.20:1 (4.44:1 on main: the warning is the same, the muted is deeper). The badge'swarning variant, the setup checklist and What if draw warning words on that tint; on the page and
on a card they read at 4.82:1 and 5.02:1. #2801 moves the badge's words to
foreground.Not in this pull request
sidebar-accent(lavender/70 at 30%), itsempty-pattern-color, its six chart colorsand its in-progress status (a new token) come separately.
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 dark warning, pinned there, is#ff9e40.docs/app-guidelines.md: the paragraph on the grays.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, statuses, the ring and a line. main beside this pull request, light and
dark, then this pull request under each skin. Hover and focus are forced through DevTools.
Checks
bun testintokens/(68 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.