gui: black's dark page is #000000, and a dark colour darkens the page in its hue (CHENGJIAHEGOXIS on X)

CHENGJIAHEGOXIS on X (tweet 2121543612278472704), on the dark theme:
「现在的纯黑……感觉色对不上」 beside Chrome's black, and the darkest navy of
the system's picker 「感觉是有浅灰存在,所以导致深变浅」. Their screenshots:
black's page (2,1,7), Chrome's (0,0,0); navy #191047's page (24,23,29),
card (31,30,36), the grey of Graphite's.

Why (appearance.go ground()):
- the dark grounds went down by the same amount on every channel, so
  app.css's cool grey cast stayed: black's page was #000003, its card
  #08080c, a blue-black next to Chrome's #000000;
- how dark a pick is was its mean channel against the page's. #191047's
  mean (37) is above the page's (27), so a deep navy counted as light
  and only got a breath of hue (0.08): the same grey page as Graphite.

What changes:
- darkness(): a pick's OKLab lightness under 0.4 (Graphite #52525b is
  0.44, every preset 0.51 or more) is how far the dark grounds go
  toward black; 1 for black. #191047 is 0.23, so 0.43.
- as a ground goes down it loses the grey's cool cast by as much, and
  takes more of the pick's hue (0.08 + 0.25 x darkness). Black's page
  is #000000 with neutral steps above it (card #090909); navy's page is
  a near-black navy.
- Graphite, the presets, colours lighter than 0.4 and the light theme
  are unchanged; lifted() (where the ink starts) is unchanged.

Measured (Settings > General zh, dark, 1200px; screenshot pixels, the
same in Chromium and WebKit), before -> after:
- black: page #000003 -> #000000, card #08080c -> #090909
- #191047: page #191821 -> #0c0b17, card #22212a -> #151420
- #130830: page #17161e -> #0b0813, card #201f27 -> #14111c
- Default, Graphite (#1a1a1e / #232327), teal, #7f1d1d: unchanged

Tests:
- TestDarkPickDarkensPage: black's grounds are neutral greys; three
  dark blues draw a darker, blue page with text >= 7:1 and the accent
  >= 4.4:1; Graphite and the presets have darkness 0.
- TestBlackIsBlack: black's page is #000000 exactly.
- appearance-look: black's dark page is rgb(0, 0, 0); #191047 draws a
  dark navy page with Settings' list on its card (dark), and keeps the
  light page's lightness (light). Fixture gains #191047.

Run on mote (load ~22-35 over its 18 cores; mica's disk is full, 116MB
free), at this change on origin/main dbac411b2:
- gofmt -l internal/gui clean; go vet -tags nogui ./internal/gui, the
  same with GOOS=linux, GOOS=windows go vet ./internal/gui: ok.
- go test -tags nogui -count=1 -timeout 45m ./internal/gui: ok (112s).
- Whole GUI suite (node --test internal/gui/tests/*.test.cjs, both
  engines, every language): cut short at 8650 of ~8700 results to push
  (coordinator); 8279 ok, 371 not ok. appearance-look 20/20 here and
  every accent, look and Settings case ok. Reds outside this change
  (accounts, keys, Check in, quick panel shortcut, gateway card, under
  the box's load); api-key-theme (#6444) and omarchy (#6027) are the
  reds named on origin/main by 90ad90646. Not rerun on a base copy.
- Broken by hand: with the old ground(), TestBlackIsBlack and
  TestDarkPickDarkensPage are red (#000003, blue-grey grounds), and
  appearance-look's dark case is red in both engines ("black's page is
  black").

Not tried: the real macOS app, WebView2, WebKitGTK; the full Go suite;
the GUI reds' base comparison.
This commit is contained in:
yetone
2026-11-14 19:10:06 +08:00
parent 106a24b95e
commit ee6352b638
5 changed files with 119 additions and 18 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ three.
1. `magpie` with no arguments, `magpie app` or `magpie tray` calls `runGUI`, which starts the app's log (`startLog`, above) and calls `gui.Run`. A `nogui` build runs the TUI instead. A second launch hands over to the instance already running. On Windows, before any window is made, `webView2Check` asks Wails whether the WebView2 runtime is there (`Env.Info().PlatformInfo["WebView2"]`, "" when its lookup fails; a key Wails doesn't set counts as there). Without it Wails would exit on the first window with nothing on screen, so magpie logs it, shows a Windows message box in the reader's language naming the runtime, Microsoft's download page (`webView2Page`) and `magpie web` / `magpie tui`, opens the page on Yes, and `Run` ends (#1806, `webview2.go`, `TestWebView2MissingFromWails` on Windows). The box can't come from `ErrorHandler`, which runs on the thread Wails makes its windows on.
2. `startBackend` brings up the gateway, or finds another magpie serving it.
3. The panel and the window load `index.html` from `Handler`. `boot.js` passes the saved language, theme, colorblind mode, text size and desktop font choices before the first paint. It also puts in the look of the reader's own (`appearance.go`, CHENGJIAHEGOXIS on X): Settings › General's Accent color (`accent`, `#rrggbb`; `accentVars` darkens it on the light theme and lightens it on the dark one until it reads as text at 4.5:1; it also sets `--mark`, the ink of what is chosen: the open page's sidebar icon, a switch's or tab's chosen option, Library's switches and radios. `--mark` is `var(--fg)`, graphite, until the user picks an accent, so a picked colour shows on the page it is picked on. A picked colour also tints the theme's grounds, the window's and the tray panel's (`--bg`, `--card`, the pills, lines and the dark menus' `--pop-bg`; `tintVars`): each takes 5% (light) or 8% (dark) of the colour's hue, its own lightness kept, so a grey pick changes nothing and text keeps its contrast. A pick darker than the dark theme's background darkens the dark grounds by as much (`ground`, `depth`): black draws a black page with its cards, pills, lines and menus the same steps above it, and its ink starts most of the way to white (`lifted`), so it is not Graphite's grey; on the light theme black is black ink, and white the light theme's dark ink (`TestBlackIsBlack`); with no accent, or under Omarchy, they are app.css's own. `TestTintBasesAreAppCSS` holds the Go bases to app.css, and `TestLookFixture` the GUI tests' `fixtures/look-accents.json` to `lookCSS`) and Background image (a PNG, JPEG, GIF or WebP of 16 MB at most, saved as `wallpaper` in magpie's folder by `POST /api/appearance/wallpaper` as base64 JSON, `{remove: true}` to take it away; `settings.Wallpaper` is its stamp), drawn behind the window's pages under a veil of the theme's background, never in the tray panel or under Omarchy. `bootPrefs.look` says which look was drawn; `applyPrefs` asks `/api/appearance/css` again only when the settings' look differs, and the rows are drawn by the lazy `appearance.js` (`appearance-look.test.cjs`, `appearance_test.go`).
3. The panel and the window load `index.html` from `Handler`. `boot.js` passes the saved language, theme, colorblind mode, text size and desktop font choices before the first paint. It also puts in the look of the reader's own (`appearance.go`, CHENGJIAHEGOXIS on X): Settings › General's Accent color (`accent`, `#rrggbb`; `accentVars` darkens it on the light theme and lightens it on the dark one until it reads as text at 4.5:1; it also sets `--mark`, the ink of what is chosen: the open page's sidebar icon, a switch's or tab's chosen option, Library's switches and radios. `--mark` is `var(--fg)`, graphite, until the user picks an accent, so a picked colour shows on the page it is picked on. A picked colour also tints the theme's grounds, the window's and the tray panel's (`--bg`, `--card`, the pills, lines and the dark menus' `--pop-bg`; `tintVars`): each takes 5% (light) or 8% (dark) of the colour's hue, its own lightness kept, so a grey pick changes nothing and text keeps its contrast. A dark pick, one whose OKLab lightness is under 0.4 (Graphite and every preset are lighter), takes the dark grounds as far toward black as it is dark (`ground`, `darkness`), losing app.css's cool grey cast and taking more of the pick's hue as they go: black draws a #000000 page with its cards, pills, lines and menus the same neutral steps above it, and a deep navy a near-black navy page (`TestDarkPickDarkensPage`). Black's ink starts most of the way to white (`lifted`, by `depth`), so it is not Graphite's grey; on the light theme black is black ink, and white the light theme's dark ink (`TestBlackIsBlack`); with no accent, or under Omarchy, they are app.css's own. `TestTintBasesAreAppCSS` holds the Go bases to app.css, and `TestLookFixture` the GUI tests' `fixtures/look-accents.json` to `lookCSS`) and Background image (a PNG, JPEG, GIF or WebP of 16 MB at most, saved as `wallpaper` in magpie's folder by `POST /api/appearance/wallpaper` as base64 JSON, `{remove: true}` to take it away; `settings.Wallpaper` is its stamp), drawn behind the window's pages under a veil of the theme's background, never in the tray panel or under Omarchy. `bootPrefs.look` says which look was drawn; `applyPrefs` asks `/api/appearance/css` again only when the settings' look differs, and the rows are drawn by the lazy `appearance.js` (`appearance-look.test.cjs`, `appearance_test.go`).
4. The page reads `GET /api/state` and writes through `POST` routes. Each write answers with the new state, built under `held`.
5. Closing the window hides it. On the Mac a full-screen window first leaves full screen (`closeStep`). The system's close on the panel (a title bar's X, Alt+F4, a window manager's close key) hides it as Escape does, so the tray icon opens it again; a panel lightweight mode let go, no longer `h.panel`, closes (`makePanel`, `TestPanelCloseHidesIt`). A hidden macOS window keeps its WKWebView's page marked visible, so `hideWebview` tells the page it is out of sight before `orderOut`; that makes `document.hidden` and `visibilityState` true, stops the page's polling and frame loops, and pauses CSS animations. `showWebview` tells it it is visible again (#4293). Lightweight mode lets go only of a window closed this way: one covered by another app's window, minimised, or open as magpie was hidden is still open (`windowUp`, not Wails' `IsVisible`, which is the occlusion state), and so is it for the Dock while the window is open and for a restart (#1381, `TestCoveredWindowStaysUp`). On the Mac the tray icon and a usage cell close an open panel by the same test (`windowOpen` in `togglePanelNow` and `trayCellClick`, not Wails' `ToggleWindow`), so under a window over the whole screen, such as a remote-desktop server's privacy curtain, the icon still closes the panel instead of showing it again (#1661, `TestTrayCellClickReleasedPanel`). On Windows a hidden window's WebView2 is put on its low memory target (`lowWhileHidden`, [`memtarget_windows.go`](../../internal/gui/memtarget_windows.go): `ICoreWebView2_19::put_MemoryUsageTargetLevel`, on each hide, on a page that comes while hidden, and back to normal on each show), so the panel and the window kept loaded in the tray stop holding what they last drew; the page stays loaded and running, unlike lightweight mode. In the tray the WebView2 processes' private working set went from ~170 MB to 20 to 40 MB, while their commit charge stayed where it was (molamaker11 on X). WKWebView and WebKitGTK have nothing magpie can set for it.
6. The window opens as it was last left. Its settled size and whether it was maximised are kept in `settings.Window` and `settings.WindowMaximised` (`settle`; per machine, see `KeepOwn`). A maximised window keeps the size it restores to. `makeMain` opens it at that size (`openSize`). On its first show, `placeMain` maximises it again on the Mac and Windows (on Windows once the page has come). On Linux, `makeMain` makes it maximised with `StartState`. On Windows a size larger than the screen's work area is fitted and centred (`fitRoom`), and the larger size stays kept. Where it was left is kept too, in `settings.WindowAt` (its top left corner across every screen, in the system's coordinates), so after a restart or an update it opens there rather than in the middle (jorbenzhu on Discord). `keepAt` saves it once a move or resize has rested for half a second, unless the window is maximised, full screen, minimised or hidden; `settings.Save` writes through temp and rename, and a settings file that can't be read is left alone. On its first show `placeMain` puts it back (`putBack`): `openAt` takes the screen holding most of the window, moves the window fully onto that screen's work area, and leaves it centred when no screen holds any of it, such as a monitor that is gone, or when the screens or the file can't be read (`TestOpenAt`). Under Wayland a window can't place itself, so nothing is kept or put back there unless GDK_BACKEND is x11 (`keepsPlace`, `TestKeepsPlace`). The tray's panel isn't kept: on the Mac and Windows it opens under the tray icon, and on Linux where the click was.
+50 -12
View File
@@ -241,11 +241,11 @@ func tint(base, c rgb, k float64) rgb {
}
// depth is how far past the dark theme's background c is toward black,
// 0 for a colour as light as it or lighter, 1 for black: a pick darker
// than the theme's own ground asks for a darker theme (CHENGJIAHEGOXIS on
// X: black, Graphite and Default drew the same grey grounds, 「尤其是黑色
// 始终一直是灰色」). On the light theme, the same for a pick lighter than
// its background, toward white.
// 0 for a colour as light as it or lighter, 1 for black, where lifted
// starts its ink (CHENGJIAHEGOXIS on X: black's ink was Graphite's grey,
// 「尤其是黑色始终一直是灰色」). On the light theme, the same for a pick
// lighter than its background, toward white. The dark grounds go down by
// darkness, which reads a colour's lightness as the eye does.
func depth(c rgb, dark bool) float64 {
g := (c[0] + c[1] + c[2]) / 3
if dark {
@@ -256,19 +256,57 @@ func depth(c rgb, dark bool) float64 {
return max(0, g-ref) / (255 - ref)
}
// lightness is c's OKLab lightness, 0 for black and 1 for white: how
// light a colour looks, whatever its hue. A deep navy's mean channel is
// as high as the dark theme's grey, but it looks far darker than it.
func lightness(c rgb) float64 {
lin := func(v float64) float64 {
v /= 255
if v <= 0.04045 {
return v / 12.92
}
return math.Pow((v+0.055)/1.055, 2.4)
}
r, g, b := lin(c[0]), lin(c[1]), lin(c[2])
l := math.Cbrt(0.4122214708*r + 0.5363325363*g + 0.0514459929*b)
m := math.Cbrt(0.2119034982*r + 0.6806995451*g + 0.1073969566*b)
s := math.Cbrt(0.0883024619*r + 0.2817188376*g + 0.6299787005*b)
return 0.2104542553*l + 0.7936177850*m - 0.0040720468*s
}
// darkLight is the lightness under which a pick is a dark colour, one
// the dark theme's grounds go down toward: Graphite (#52525b) and every
// preset are lighter, a deep navy or a near black are darker.
const darkLight = 0.4
// darkness is how far c is toward black past darkLight: 0 for Graphite
// or any lighter colour, 1 for black (CHENGJIAHEGOXIS on X: the darkest
// navy of the system's picker drew the same grey page as Graphite, 「感觉
// 是有浅灰存在,所以导致深变浅」).
func darkness(c rgb) float64 {
return max(0, darkLight-lightness(c)) / darkLight
}
// ground is one of the theme's grounds once c is picked: tinted with c's
// hue, and, on the dark theme, as much darker as c is darker than the
// theme's background, so black draws a black page with its cards, menus
// and lines the same steps above it. The light theme's grounds keep their
// lightness: a white pick there would melt its white cards into the page.
// hue, and, on the dark theme, as much darker as c is a dark colour
// (darkness), so black draws a black page with its cards, menus and
// lines the same steps above it, and a deep navy a near-black navy one.
// As it goes down the ground loses app.css's own cool grey, so black's
// page is #000000, Chrome's and the system's black, not a blue-black
// (「纯黑……感觉色对不上」), and the pick's hue counts for more, so a dark
// colour's page is that colour's and not grey. The light theme's grounds
// keep their lightness: a white pick there would melt its white cards
// into the page.
func ground(base, c rgb, dark bool) rgb {
if !dark {
return tint(base, c, lightTint)
}
out := tint(base, c, darkTint)
d := depth(c, true) * (darkBg[0] + darkBg[1] + darkBg[2]) / 3
d := darkness(c)
mean := (base[0] + base[1] + base[2]) / 3
out := tint(base.mix(rgb{mean, mean, mean}, d), c, darkTint+d*0.25)
step := d * (darkBg[0] + darkBg[1] + darkBg[2]) / 3
for i := range out {
out[i] = max(0, out[i]-d)
out[i] = max(0, out[i]-step)
}
return out
}
+49 -2
View File
@@ -352,7 +352,7 @@ func TestTintBasesAreAppCSS(t *testing.T) {
// writes it again.
func TestLookFixture(t *testing.T) {
want := map[string]string{}
for _, a := range []string{"#0d9488", "#db2777", "#7c3aed", "#000000", "#52525b"} {
for _, a := range []string{"#0d9488", "#db2777", "#7c3aed", "#000000", "#52525b", "#191047"} {
want[a] = lookCSS(settings.Settings{Accent: a})
}
b, _ := json.MarshalIndent(want, "", " ")
@@ -385,7 +385,7 @@ func TestBlackIsBlack(t *testing.T) {
}
// the dark theme's page is black, and every ground keeps its step
// above it, in the same order as app.css's
if got := ground(darkBg, blk, true); got.luminance() > 0.002 {
if got := ground(darkBg, blk, true); got.hex() != "#000000" {
t.Errorf("black's dark page is %s, not black", got.hex())
}
for _, set := range [][]surface{darkSurfaces, darkPanelSurfaces, {{"--pop-bg", darkPop}}} {
@@ -429,3 +429,50 @@ func TestBlackIsBlack(t *testing.T) {
}
}
}
// Black's page was #000003 with blue-grey cards, a blue-black beside
// Chrome's #000000, and the darkest navy of the system's picker drew the
// same grey page as Graphite, its mean channel no darker than the page's
// (CHENGJIAHEGOXIS on X: 「纯黑……感觉色对不上」, 「感觉是有浅灰存在,所以
// 导致深变浅」). Black's grounds are neutral greys over #000000, a dark
// colour's page goes down toward black in its own hue, and Graphite and
// the presets keep magpie's grounds.
func TestDarkPickDarkensPage(t *testing.T) {
blk, _ := parseHex("#000000")
for _, set := range [][]surface{darkSurfaces, darkPanelSurfaces, {{"--pop-bg", darkPop}}} {
for _, s := range set {
if got := ground(s.base, blk, true); got.hex()[1:3] != got.hex()[3:5] || got.hex()[3:5] != got.hex()[5:7] {
t.Errorf("black's %s is %s, not a neutral grey", s.name, got.hex())
}
}
}
for _, pick := range []string{"#191047", "#130830", "#0c1a3a"} {
c, _ := parseHex(pick)
bg := ground(darkBg, c, true)
if lightness(bg) > lightness(darkBg)-0.05 {
t.Errorf("%s: its page %s is not darker than magpie's %s", pick, bg.hex(), darkBg.hex())
}
if bg[2]-bg[0] < 8 {
t.Errorf("%s: its page %s is not the colour's blue", pick, bg.hex())
}
// the page's text and the accent read on every ground
for _, s := range darkSurfaces {
if strings.HasPrefix(s.name, "--line") {
continue
}
g := ground(s.base, c, true)
if r := contrast(rgb{0xed, 0xed, 0xf1}, g); r < 7 {
t.Errorf("%s: text on %s %s is %.2f:1", pick, s.name, g.hex(), r)
}
}
if r := contrast(accentOn(c, true), bg); r < 4.4 {
t.Errorf("%s: accent on its page is %.2f:1", pick, r)
}
}
for _, pick := range []string{"#52525b", "#4f46e5", "#2563eb", "#0d9488", "#16a34a", "#ea580c", "#db2777", "#0000ff"} {
c, _ := parseHex(pick)
if d := darkness(c); d != 0 {
t.Errorf("%s darkens the page by %.2f", pick, d)
}
}
}
+17 -2
View File
@@ -278,8 +278,9 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
assert.equal(graphite.body, own.body, "Graphite keeps the grey page");
if (dark) {
assert.equal(blk.body, rgbOf(varOf("#000000", "--bg", true)), "black's page");
const [r, g, b] = blk.body.match(/\d+/g).map(Number);
assert.ok(r + g + b <= 9, `black's page is black, not ${blk.body}`);
// #000000, as Chrome's and the system's black, not a blue-black
// (「纯黑……感觉色对不上」)
assert.equal(blk.body, "rgb(0, 0, 0)", "black's page is black");
assert.equal(blk.list, rgbOf(varOf("#000000", "--card", true)), "Settings' list is on black's card");
assert.notEqual(blk.list, blk.body, "the card stands a step above the page");
// its ink is light, and the page's text reads on it
@@ -290,6 +291,20 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium",
}
// the chosen swatch is black's own, drawn black
assert.deepEqual(await chosen(page), ["own:#000000"]);
// the darkest navy of the system's picker draws a near-black navy
// page, not Graphite's grey (「感觉是有浅灰存在,所以导致深变浅」)
await page.locator("#accentPick .swatch.own input").evaluate((i) => { i.value = "#191047"; i.dispatchEvent(new Event("change", { bubbles: true })); });
await page.waitForFunction((w) => getComputedStyle(document.documentElement).getPropertyValue("--accent").trim() === w, want("#191047"));
const navy = await look();
if (dark) {
assert.equal(navy.body, rgbOf(varOf("#191047", "--bg", true)), "navy's page");
const [r, g, b] = navy.body.match(/\d+/g).map(Number);
const [gr] = graphite.body.match(/\d+/g).map(Number);
assert.ok(r + g + b < gr * 3 * 0.75 && b - r >= 8, `navy's page is a dark navy, not ${navy.body}`);
assert.equal(navy.list, rgbOf(varOf("#191047", "--card", true)), "Settings' list is on navy's card");
} else {
assert.equal(navy.body, rgbOf(varOf("#191047", "--bg", false)), "the light page keeps its lightness");
}
assert.deepEqual(errors, []);
});
}
+2 -1
View File
@@ -1,6 +1,7 @@
{
"#000000": "html:not(.omarchy):root{--accent:#000000;--accent-soft:#e8e8e8;--accent-fg:#ffffff;--sel:#e3e3e3;--mark:#000000;--mark-fill:#e0e0e0;--bg:#f4f4f6;--card-2:#f9f9fb;--pill:#f1f1f4;--pill-hover:#e9e9ee;--seg-track:#e6e6eb;--line:#e3e3e8;--line-2:#ececf0}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]){--accent:#e0e0e0;--accent-soft:#1f1f22;--accent-fg:#14141a;--sel:#2d2d2f;--mark:#e0e0e0;--mark-fill:#515155;--bg:#000003;--card:#08080c;--card-2:#040408;--pill:#121218;--pill-hover:#1b1b22;--line:#18181e;--line-2:#111117;--pop-bg:rgba(11,11,16,.96)}}\nhtml:not(.omarchy):root[data-theme=\"dark\"]{--accent:#e0e0e0;--accent-soft:#1f1f22;--accent-fg:#14141a;--sel:#2d2d2f;--mark:#e0e0e0;--mark-fill:#515155;--bg:#000003;--card:#08080c;--card-2:#040408;--pill:#121218;--pill-hover:#1b1b22;--line:#18181e;--line-2:#111117;--pop-bg:rgba(11,11,16,.96)}\n@media (prefers-color-scheme: light){html:not(.omarchy):root:not([data-theme=\"dark\"]) body.panel{--bg:#f2f2f5;--card-2:#f8f8fa;--pill-hover:#f4f4f7;--skel:#eeeef2;--skel-hi:#e2e2e8}}\nhtml:not(.omarchy):root[data-theme=\"light\"] body.panel{--bg:#f2f2f5;--card-2:#f8f8fa;--pill-hover:#f4f4f7;--skel:#eeeef2;--skel-hi:#e2e2e8}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]) body.panel{--bg:#000105;--card:#0a0b11;--card-2:#06070c;--pill:#13141b;--pill-hover:#1d1e27}}\nhtml:not(.omarchy):root[data-theme=\"dark\"] body.panel{--bg:#000105;--card:#0a0b11;--card-2:#06070c;--pill:#13141b;--pill-hover:#1d1e27}\n",
"#000000": "html:not(.omarchy):root{--accent:#000000;--accent-soft:#e8e8e8;--accent-fg:#ffffff;--sel:#e3e3e3;--mark:#000000;--mark-fill:#e0e0e0;--bg:#f4f4f6;--card-2:#f9f9fb;--pill:#f1f1f4;--pill-hover:#e9e9ee;--seg-track:#e6e6eb;--line:#e3e3e8;--line-2:#ececf0}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]){--accent:#e0e0e0;--accent-soft:#1f1f1f;--accent-fg:#14141a;--sel:#2d2d2d;--mark:#e0e0e0;--mark-fill:#525252;--bg:#000000;--card:#090909;--card-2:#050505;--pill:#141414;--pill-hover:#1d1d1d;--line:#1a1a1a;--line-2:#131313;--pop-bg:rgba(12,12,12,.96)}}\nhtml:not(.omarchy):root[data-theme=\"dark\"]{--accent:#e0e0e0;--accent-soft:#1f1f1f;--accent-fg:#14141a;--sel:#2d2d2d;--mark:#e0e0e0;--mark-fill:#525252;--bg:#000000;--card:#090909;--card-2:#050505;--pill:#141414;--pill-hover:#1d1d1d;--line:#1a1a1a;--line-2:#131313;--pop-bg:rgba(12,12,12,.96)}\n@media (prefers-color-scheme: light){html:not(.omarchy):root:not([data-theme=\"dark\"]) body.panel{--bg:#f2f2f5;--card-2:#f8f8fa;--pill-hover:#f4f4f7;--skel:#eeeef2;--skel-hi:#e2e2e8}}\nhtml:not(.omarchy):root[data-theme=\"light\"] body.panel{--bg:#f2f2f5;--card-2:#f8f8fa;--pill-hover:#f4f4f7;--skel:#eeeef2;--skel-hi:#e2e2e8}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]) body.panel{--bg:#020202;--card:#0c0c0c;--card-2:#080808;--pill:#161616;--pill-hover:#202020}}\nhtml:not(.omarchy):root[data-theme=\"dark\"] body.panel{--bg:#020202;--card:#0c0c0c;--card-2:#080808;--pill:#161616;--pill-hover:#202020}\n",
"#0d9488": "html:not(.omarchy):root{--accent:#0b7c72;--accent-soft:#e9f3f2;--accent-fg:#ffffff;--sel:#e4f1f0;--mark:#0a766d;--mark-fill:#e2efee;--bg:#f0f6f8;--card-2:#f5fbfd;--pill:#edf3f6;--pill-hover:#e5ebf0;--seg-track:#e2e8ed;--line:#dfe5ea;--line-2:#e8eef2}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]){--accent:#209d92;--accent-soft:#153031;--accent-fg:#14141a;--sel:#163737;--mark:#90cec8;--mark-fill:#2e5757;--bg:#131e21;--card:#1c272a;--card-2:#182326;--pill:#263136;--pill-hover:#2f3a40;--line:#2c373c;--line-2:#253035;--pop-bg:rgba(31,42,46,.96)}}\nhtml:not(.omarchy):root[data-theme=\"dark\"]{--accent:#209d92;--accent-soft:#153031;--accent-fg:#14141a;--sel:#163737;--mark:#90cec8;--mark-fill:#2e5757;--bg:#131e21;--card:#1c272a;--card-2:#182326;--pill:#263136;--pill-hover:#2f3a40;--line:#2c373c;--line-2:#253035;--pop-bg:rgba(31,42,46,.96)}\n@media (prefers-color-scheme: light){html:not(.omarchy):root:not([data-theme=\"dark\"]) body.panel{--bg:#eef4f7;--card-2:#f4fafc;--pill-hover:#f0f6f9;--skel:#eaf0f4;--skel-hi:#dee4ea}}\nhtml:not(.omarchy):root[data-theme=\"light\"] body.panel{--bg:#eef4f7;--card-2:#f4fafc;--pill-hover:#f0f6f9;--skel:#eaf0f4;--skel-hi:#dee4ea}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]) body.panel{--bg:#142023;--card:#1e2a2f;--card-2:#1a262a;--pill:#273339;--pill-hover:#313d45}}\nhtml:not(.omarchy):root[data-theme=\"dark\"] body.panel{--bg:#142023;--card:#1e2a2f;--card-2:#1a262a;--pill:#273339;--pill-hover:#313d45}\n",
"#191047": "html:not(.omarchy):root{--accent:#191047;--accent-soft:#eae9ee;--accent-fg:#ffffff;--sel:#e6e5eb;--mark:#191047;--mark-fill:#e3e2e9;--bg:#f3f3f8;--card-2:#f8f8fd;--pill:#f0f0f6;--pill-hover:#e8e8f0;--seg-track:#e5e5ed;--line:#e2e2ea;--line-2:#ebebf2}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]){--accent:#8c88a3;--accent-soft:#1e1c2b;--accent-fg:#14141a;--sel:#262433;--mark:#bfbccb;--mark-fill:#454354;--bg:#0c0b17;--card:#151420;--card-2:#11101c;--pill:#201e2c;--pill-hover:#292736;--line:#262432;--line-2:#1f1d2b;--pop-bg:rgba(25,23,36,.96)}}\nhtml:not(.omarchy):root[data-theme=\"dark\"]{--accent:#8c88a3;--accent-soft:#1e1c2b;--accent-fg:#14141a;--sel:#262433;--mark:#bfbccb;--mark-fill:#454354;--bg:#0c0b17;--card:#151420;--card-2:#11101c;--pill:#201e2c;--pill-hover:#292736;--line:#262432;--line-2:#1f1d2b;--pop-bg:rgba(25,23,36,.96)}\n@media (prefers-color-scheme: light){html:not(.omarchy):root:not([data-theme=\"dark\"]) body.panel{--bg:#f1f1f7;--card-2:#f7f7fc;--pill-hover:#f3f3f9;--skel:#ededf4;--skel-hi:#e1e1ea}}\nhtml:not(.omarchy):root[data-theme=\"light\"] body.panel{--bg:#f1f1f7;--card-2:#f7f7fc;--pill-hover:#f3f3f9;--skel:#ededf4;--skel-hi:#e1e1ea}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]) body.panel{--bg:#0e0d19;--card:#181725;--card-2:#141320;--pill:#21202e;--pill-hover:#2b2a3a}}\nhtml:not(.omarchy):root[data-theme=\"dark\"] body.panel{--bg:#0e0d19;--card:#181725;--card-2:#141320;--pill:#21202e;--pill-hover:#2b2a3a}\n",
"#52525b": "html:not(.omarchy):root{--accent:#52525b;--accent-soft:#efeff0;--accent-fg:#ffffff;--sel:#ececed;--mark:#52525b;--mark-fill:#eaeaeb;--bg:#f4f4f6;--card-2:#f9f9fb;--pill:#f1f1f4;--pill-hover:#e9e9ee;--seg-track:#e6e6eb;--line:#e3e3e8;--line-2:#ececf0}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]){--accent:#89898f;--accent-soft:#29292e;--accent-fg:#14141a;--sel:#303035;--mark:#c1c1c4;--mark-fill:#4e4e54;--bg:#1a1a1e;--card:#232327;--card-2:#1f1f23;--pill:#2d2d33;--pill-hover:#36363d;--line:#333339;--line-2:#2c2c32;--pop-bg:rgba(38,38,43,.96)}}\nhtml:not(.omarchy):root[data-theme=\"dark\"]{--accent:#89898f;--accent-soft:#29292e;--accent-fg:#14141a;--sel:#303035;--mark:#c1c1c4;--mark-fill:#4e4e54;--bg:#1a1a1e;--card:#232327;--card-2:#1f1f23;--pill:#2d2d33;--pill-hover:#36363d;--line:#333339;--line-2:#2c2c32;--pop-bg:rgba(38,38,43,.96)}\n@media (prefers-color-scheme: light){html:not(.omarchy):root:not([data-theme=\"dark\"]) body.panel{--bg:#f2f2f5;--card-2:#f8f8fa;--pill-hover:#f4f4f7;--skel:#eeeef2;--skel-hi:#e2e2e8}}\nhtml:not(.omarchy):root[data-theme=\"light\"] body.panel{--bg:#f2f2f5;--card-2:#f8f8fa;--pill-hover:#f4f4f7;--skel:#eeeef2;--skel-hi:#e2e2e8}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]) body.panel{--bg:#1b1c20;--card:#25262c;--card-2:#212227;--pill:#2e2f36;--pill-hover:#383942}}\nhtml:not(.omarchy):root[data-theme=\"dark\"] body.panel{--bg:#1b1c20;--card:#25262c;--card-2:#212227;--pill:#2e2f36;--pill-hover:#383942}\n",
"#7c3aed": "html:not(.omarchy):root{--accent:#7c3aed;--accent-soft:#f3edfd;--accent-fg:#ffffff;--sel:#f1e9fd;--mark:#7c3aed;--mark-fill:#efe7fd;--bg:#f3f0fb;--card-2:#f8f5ff;--pill:#f0edf9;--pill-hover:#e8e5f3;--seg-track:#e5e2f0;--line:#e2dfed;--line-2:#ebe8f5}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]){--accent:#a171f2;--accent-soft:#2c2142;--accent-fg:#14141a;--sel:#34264f;--mark:#cbb0f8;--mark-fill:#544473;--bg:#191326;--card:#221c2f;--card-2:#1e182b;--pill:#2c263b;--pill-hover:#352f45;--line:#322c41;--line-2:#2b253a;--pop-bg:rgba(37,31,51,.96)}}\nhtml:not(.omarchy):root[data-theme=\"dark\"]{--accent:#a171f2;--accent-soft:#2c2142;--accent-fg:#14141a;--sel:#34264f;--mark:#cbb0f8;--mark-fill:#544473;--bg:#191326;--card:#221c2f;--card-2:#1e182b;--pill:#2c263b;--pill-hover:#352f45;--line:#322c41;--line-2:#2b253a;--pop-bg:rgba(37,31,51,.96)}\n@media (prefers-color-scheme: light){html:not(.omarchy):root:not([data-theme=\"dark\"]) body.panel{--bg:#f1eefa;--card-2:#f7f4ff;--pill-hover:#f3f0fc;--skel:#edeaf7;--skel-hi:#e1deed}}\nhtml:not(.omarchy):root[data-theme=\"light\"] body.panel{--bg:#f1eefa;--card-2:#f7f4ff;--pill-hover:#f3f0fc;--skel:#edeaf7;--skel-hi:#e1deed}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]) body.panel{--bg:#1a1528;--card:#241f34;--card-2:#201b2f;--pill:#2d283e;--pill-hover:#37324a}}\nhtml:not(.omarchy):root[data-theme=\"dark\"] body.panel{--bg:#1a1528;--card:#241f34;--card-2:#201b2f;--pill:#2d283e;--pill-hover:#37324a}\n",
"#db2777": "html:not(.omarchy):root{--accent:#ce2570;--accent-soft:#fbebf2;--accent-fg:#ffffff;--sel:#fae7ef;--mark:#c12269;--mark-fill:#f9e5ee;--bg:#f9f0f6;--card-2:#fef5fb;--pill:#f6edf4;--pill-hover:#eee5ee;--seg-track:#ebe2eb;--line:#e8dfe8;--line-2:#f1e8f0}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]){--accent:#e35795;--accent-soft:#3d1d2e;--accent-fg:#14141a;--sel:#482135;--mark:#f1a9c9;--mark-fill:#6b3c55;--bg:#21131d;--card:#2a1c26;--card-2:#261822;--pill:#342632;--pill-hover:#3d2f3c;--line:#3a2c38;--line-2:#332531;--pop-bg:rgba(45,31,42,.96)}}\nhtml:not(.omarchy):root[data-theme=\"dark\"]{--accent:#e35795;--accent-soft:#3d1d2e;--accent-fg:#14141a;--sel:#482135;--mark:#f1a9c9;--mark-fill:#6b3c55;--bg:#21131d;--card:#2a1c26;--card-2:#261822;--pill:#342632;--pill-hover:#3d2f3c;--line:#3a2c38;--line-2:#332531;--pop-bg:rgba(45,31,42,.96)}\n@media (prefers-color-scheme: light){html:not(.omarchy):root:not([data-theme=\"dark\"]) body.panel{--bg:#f7eef5;--card-2:#fdf4fa;--pill-hover:#f9f0f7;--skel:#f3eaf2;--skel-hi:#e7dee8}}\nhtml:not(.omarchy):root[data-theme=\"light\"] body.panel{--bg:#f7eef5;--card-2:#fdf4fa;--pill-hover:#f9f0f7;--skel:#f3eaf2;--skel-hi:#e7dee8}\n@media (prefers-color-scheme: dark){html:not(.omarchy):root:not([data-theme=\"light\"]) body.panel{--bg:#22151f;--card:#2c1f2b;--card-2:#281b26;--pill:#352835;--pill-hover:#3f3241}}\nhtml:not(.omarchy):root[data-theme=\"dark\"] body.panel{--bg:#22151f;--card:#2c1f2b;--card-2:#281b26;--pill:#352835;--pill-hover:#3f3241}\n"