mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-26 23:28:43 +00:00
refactor(site): put every neutral grey on one shared scale (#63604)
Some checks are pending
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy-update / update-build (push) Waiting to run
deploy-update / update-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
Some checks are pending
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy-update / update-build (push) Waiting to run
deploy-update / update-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
This commit is contained in:
parent
a3d6e54b3d
commit
9bc30594ab
30 changed files with 490 additions and 400 deletions
|
|
@ -14,7 +14,7 @@
|
|||
"dev:desktop": "bun --cwd packages/desktop dev",
|
||||
"dev:web": "bun --cwd packages/app dev",
|
||||
"dev:site": "bun run --cwd services/site dev",
|
||||
"lint": "oxlint && ast-grep scan -c script/ast-grep/gui-plugins/sgconfig.yml && bun script/sdk-docs.ts",
|
||||
"lint": "oxlint && ast-grep scan -c script/ast-grep/gui-plugins/sgconfig.yml && bun script/sdk-docs.ts && bun script/check-greys.ts",
|
||||
"lint:changed": "bun script/lint-changed.ts",
|
||||
"lint:effect-patterns": "ast-grep scan -c script/ast-grep/sgconfig.yml packages/util/src packages/core/src packages/server/src packages/protocol/src packages/cli/src",
|
||||
"lint:effect-simplifications": "ast-grep scan -c script/ast-grep/effect-simplifications/sgconfig.yml --off=unused-suppression packages",
|
||||
|
|
|
|||
|
|
@ -1,123 +0,0 @@
|
|||
:root {
|
||||
color-scheme: light dark;
|
||||
--stats-bg: #f8f5ee;
|
||||
--stats-ink: #16110d;
|
||||
--stats-muted: #6d6257;
|
||||
--stats-line: #ded5c9;
|
||||
--stats-panel: #fffaf1;
|
||||
--stats-accent: #2357ff;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--stats-bg: #11100e;
|
||||
--stats-ink: #f7efe4;
|
||||
--stats-muted: #b8aa99;
|
||||
--stats-line: #322d27;
|
||||
--stats-panel: #1a1714;
|
||||
--stats-accent: #86a2ff;
|
||||
}
|
||||
}
|
||||
|
||||
html {
|
||||
line-height: 1;
|
||||
background: var(--stats-bg);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-width: 320px;
|
||||
background:
|
||||
radial-gradient(circle at top left, color-mix(in srgb, var(--stats-accent) 16%, transparent), transparent 32rem),
|
||||
var(--stats-bg);
|
||||
color: var(--stats-ink);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.shell {
|
||||
box-sizing: border-box;
|
||||
min-height: 100vh;
|
||||
padding: 2rem clamp(1rem, 4vw, 4rem);
|
||||
}
|
||||
|
||||
.panel {
|
||||
display: grid;
|
||||
gap: clamp(2rem, 8vw, 5rem);
|
||||
box-sizing: border-box;
|
||||
width: min(100%, 72rem);
|
||||
margin: 0 auto;
|
||||
padding: clamp(1.25rem, 4vw, 3rem);
|
||||
border: 1px solid var(--stats-line);
|
||||
border-radius: 1.5rem;
|
||||
background: color-mix(in srgb, var(--stats-panel) 88%, transparent);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 1rem;
|
||||
color: var(--stats-muted);
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1 {
|
||||
max-width: 11ch;
|
||||
margin: 0;
|
||||
font-size: clamp(3rem, 14vw, 9rem);
|
||||
line-height: 0.85;
|
||||
letter-spacing: -0.08em;
|
||||
}
|
||||
|
||||
.summary {
|
||||
max-width: 42rem;
|
||||
margin: 1.5rem 0 0;
|
||||
color: var(--stats-muted);
|
||||
font-size: clamp(1rem, 2vw, 1.25rem);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 1px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--stats-line);
|
||||
border-radius: 1rem;
|
||||
background: var(--stats-line);
|
||||
}
|
||||
|
||||
.metric {
|
||||
padding: 1rem;
|
||||
background: var(--stats-panel);
|
||||
}
|
||||
|
||||
.metric b {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: clamp(1.5rem, 4vw, 3rem);
|
||||
letter-spacing: -0.05em;
|
||||
}
|
||||
|
||||
.metric span {
|
||||
color: var(--stats-muted);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.link {
|
||||
display: inline-flex;
|
||||
width: fit-content;
|
||||
margin-top: 1.5rem;
|
||||
color: var(--stats-accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
|
@ -118,19 +118,22 @@
|
|||
line-gap-override: 0%;
|
||||
}
|
||||
|
||||
/* The page behind the app, in the page step of the shared grey scale (--stats-bg), written out because the tokens
|
||||
live on [data-page], inside this element. grey-ok: outside the tokens' scope */
|
||||
:root {
|
||||
background: #ffffff;
|
||||
background: #fbfbfb;
|
||||
}
|
||||
|
||||
:root[data-stats-theme="dark"] {
|
||||
background: #161616;
|
||||
background: #0c0c0c;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-stats-theme="light"]) {
|
||||
background: #161616;
|
||||
background: #0c0c0c;
|
||||
}
|
||||
}
|
||||
/* grey-ok-end */
|
||||
|
||||
body {
|
||||
min-width: 320px;
|
||||
|
|
@ -139,34 +142,28 @@ body {
|
|||
|
||||
[data-page="stats"] {
|
||||
color-scheme: light;
|
||||
--color-background: #ffffff;
|
||||
--color-background-weak: #fafafa;
|
||||
--color-background-weak-hover: #eeeeee;
|
||||
--color-background-strong: #161616;
|
||||
--color-background-strong-hover: #242424;
|
||||
--color-text: #5c5c5c;
|
||||
--color-text-weak: #707070;
|
||||
--color-text-strong: #161616;
|
||||
--color-text-inverted: #ffffff;
|
||||
--color-border-weak: #0000001a;
|
||||
--stats-bg: #ffffff;
|
||||
--stats-layer: #fafafa;
|
||||
--stats-bg: #fbfbfb;
|
||||
--stats-layer: #ffffff;
|
||||
--stats-layer-2: #eeeeee;
|
||||
--stats-line: #0000001a;
|
||||
--stats-line-strong: #00000033;
|
||||
--stats-text: #161616;
|
||||
--stats-muted: #5c5c5c;
|
||||
--stats-faint: #707070;
|
||||
--stats-faint: #6b6b6b;
|
||||
--stats-theme-icon-active: #3a3a3a;
|
||||
--stats-accent: #3b5cf6;
|
||||
--stats-accent-text: #3b5cf6;
|
||||
--stats-bar-idle: #d4d4d4;
|
||||
--stats-dot: #d4d4d4;
|
||||
--stats-bar-idle: #d2d2d2;
|
||||
--stats-dot: #d2d2d2;
|
||||
--stats-hero-muted: #5c5c5c;
|
||||
--stats-hero-pattern: #eeeeee;
|
||||
--stats-logo-bg: #161616;
|
||||
--stats-logo-fill: #454545;
|
||||
--stats-logo-stroke: #e2e2e2;
|
||||
--stats-logo-bg: #0c0c0c;
|
||||
--stats-logo-fill: #4b4b4b;
|
||||
--stats-logo-stroke: #eeeeee;
|
||||
--stats-popover: #ffffff;
|
||||
--stats-layer-hover: #ffffff;
|
||||
--stats-on-accent: #ffffff;
|
||||
--stats-knob: #fafafa;
|
||||
--stats-page-padding: 5rem;
|
||||
--stats-section-padding: 6rem;
|
||||
min-height: 100vh;
|
||||
|
|
@ -404,11 +401,11 @@ body {
|
|||
|
||||
[data-page="stats"] [data-slot="header-button"][data-variant="contrast"] {
|
||||
gap: 8px;
|
||||
color: #ffffff;
|
||||
background: #242424;
|
||||
color: var(--stats-bg);
|
||||
background: var(--stats-text);
|
||||
box-shadow:
|
||||
0 0 0 0 #00000000,
|
||||
0 0 0 0.5px #3a3a3a,
|
||||
0 0 0 0.5px var(--stats-text),
|
||||
0 1px 1.5px 0 #00000033,
|
||||
inset 0 -1px 2px 0 #0000000f,
|
||||
inset 0 1px 2px 0 #ffffff24;
|
||||
|
|
@ -1393,7 +1390,7 @@ body {
|
|||
}
|
||||
|
||||
[data-page="stats"] [data-component="content"] button[data-active="true"] {
|
||||
color: #fff;
|
||||
color: var(--stats-bg);
|
||||
background: var(--stats-text);
|
||||
}
|
||||
|
||||
|
|
@ -1580,7 +1577,7 @@ body {
|
|||
gap: 8px;
|
||||
min-width: 220px;
|
||||
padding: 16px;
|
||||
background: #ffffff;
|
||||
background: var(--stats-popover);
|
||||
border: 1px solid var(--stats-line-strong);
|
||||
box-shadow:
|
||||
0 8px 16px #0000000a,
|
||||
|
|
@ -1648,7 +1645,7 @@ body {
|
|||
width: 192px;
|
||||
min-width: 192px;
|
||||
padding: 0;
|
||||
background: #ffffff;
|
||||
background: var(--stats-popover);
|
||||
border: 0;
|
||||
box-shadow:
|
||||
0 0 0 0.5px #00000024,
|
||||
|
|
@ -2226,7 +2223,7 @@ body {
|
|||
|
||||
[data-page="stats"] [data-component="leader-card"][data-active="true"] {
|
||||
border-color: var(--stats-line-strong);
|
||||
background: #ffffff;
|
||||
background: var(--stats-layer-hover);
|
||||
box-shadow:
|
||||
0 0 0 0.5px #00000024,
|
||||
0 6px 16px #0000000d,
|
||||
|
|
@ -2248,7 +2245,7 @@ body {
|
|||
[data-page="stats"] [data-component="leader-card"]:hover,
|
||||
[data-page="stats"] [data-component="leader-card"]:focus-visible {
|
||||
border-color: var(--stats-line-strong);
|
||||
background: #ffffff;
|
||||
background: var(--stats-layer-hover);
|
||||
box-shadow:
|
||||
0 0 0 0.5px #00000024,
|
||||
0 6px 16px #0000000d,
|
||||
|
|
@ -2447,7 +2444,7 @@ body {
|
|||
min-width: 228px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: #ffffff;
|
||||
background: var(--stats-popover);
|
||||
box-shadow:
|
||||
0 0 0 0.5px #00000024,
|
||||
0 8px 16px #0000000f,
|
||||
|
|
@ -3163,7 +3160,7 @@ body {
|
|||
height: 64px;
|
||||
background: var(--stats-accent-text);
|
||||
box-shadow: inset 0 0 0 1px #0000001a;
|
||||
color: #ffffff;
|
||||
color: var(--stats-on-accent);
|
||||
}
|
||||
|
||||
[data-page="stats"] [data-slot="lab-hero-avatar"][data-empty="true"] {
|
||||
|
|
@ -3442,7 +3439,7 @@ body {
|
|||
height: 40px;
|
||||
background: var(--stats-accent-text);
|
||||
box-shadow: inset 0 0 0 1px #0000001a;
|
||||
color: #ffffff;
|
||||
color: var(--stats-on-accent);
|
||||
}
|
||||
|
||||
[data-page="stats"] [data-slot="model-hero-avatar"] svg {
|
||||
|
|
@ -4411,7 +4408,7 @@ body {
|
|||
flex: 0 0 auto;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: #ffffff;
|
||||
color: var(--stats-on-accent);
|
||||
background: var(--stats-accent-text);
|
||||
box-shadow: inset 0 0 0 1px #0000001a;
|
||||
}
|
||||
|
|
@ -4488,7 +4485,7 @@ body {
|
|||
flex: 0 0 auto;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: #ffffff;
|
||||
color: var(--stats-on-accent);
|
||||
background: var(--stats-accent-text);
|
||||
box-shadow: inset 0 0 0 1px #0000001a;
|
||||
}
|
||||
|
|
@ -4634,7 +4631,7 @@ body {
|
|||
flex: 0 0 auto;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
color: #ffffff;
|
||||
color: var(--stats-on-accent);
|
||||
background: var(--stats-accent-text);
|
||||
box-shadow: inset 0 0 0 1px #0000001a;
|
||||
}
|
||||
|
|
@ -4971,10 +4968,10 @@ body {
|
|||
--lab-usage-column-gutter: calc(var(--lab-usage-gap) / 2);
|
||||
--lab-usage-bar-height: 76px;
|
||||
--lab-usage-line-bottom: 124px;
|
||||
--lab-usage-bar: #dbdbdb;
|
||||
--lab-usage-line: #808080;
|
||||
--lab-usage-bar: #d2d2d2;
|
||||
--lab-usage-line: #6b6b6b;
|
||||
--lab-usage-active: #3b5cf6;
|
||||
--lab-usage-band: #f2f2f2;
|
||||
--lab-usage-band: #eeeeee;
|
||||
grid-template-rows: minmax(0, 450px) 14px;
|
||||
gap: 40px;
|
||||
height: 504px;
|
||||
|
|
@ -5161,10 +5158,10 @@ body {
|
|||
--model-trend-column-gutter: calc(var(--model-trend-gap) / 2);
|
||||
--model-trend-bar-height: 76px;
|
||||
--model-trend-line-bottom: 124px;
|
||||
--model-trend-bar: #dbdbdb;
|
||||
--model-trend-line: #808080;
|
||||
--model-trend-bar: #d2d2d2;
|
||||
--model-trend-line: #6b6b6b;
|
||||
--model-trend-active: #3b5cf6;
|
||||
--model-trend-band: #f2f2f2;
|
||||
--model-trend-band: #eeeeee;
|
||||
grid-template-rows: minmax(0, 450px) 14px;
|
||||
gap: 40px;
|
||||
height: 504px;
|
||||
|
|
@ -5838,11 +5835,12 @@ body {
|
|||
display: grid;
|
||||
place-items: center;
|
||||
flex: 0 0 auto;
|
||||
color: #ffffff;
|
||||
color: var(--stats-on-accent);
|
||||
background: var(--stats-accent-text);
|
||||
box-shadow: inset 0 0 0 1px #0000001a;
|
||||
}
|
||||
|
||||
/* grey-ok: the labs' own brand colours */
|
||||
[data-page="stats"] [data-slot="compare-home-avatar"][data-lab="deepseek"] {
|
||||
background: #5d6ff4;
|
||||
}
|
||||
|
|
@ -5854,6 +5852,7 @@ body {
|
|||
[data-page="stats"] [data-slot="compare-home-avatar"][data-lab="anthropic"] {
|
||||
background: #c99b75;
|
||||
}
|
||||
/* grey-ok-end */
|
||||
|
||||
[data-page="stats"] [data-slot="compare-home-avatar"][data-size="large"] {
|
||||
width: 40px;
|
||||
|
|
@ -6289,7 +6288,7 @@ body {
|
|||
[data-slot="compare-detail-action"][aria-pressed="true"]
|
||||
[data-slot="compare-detail-highlight-icon"]
|
||||
i:last-child {
|
||||
background: #fafafa;
|
||||
background: var(--stats-knob);
|
||||
box-shadow:
|
||||
0 0 0 0.5px rgb(0 0 0 / 12%),
|
||||
0 1px 2px -1px rgb(0 0 0 / 8%),
|
||||
|
|
@ -7377,42 +7376,34 @@ body {
|
|||
[data-page="stats"][data-theme="dark"],
|
||||
:root[data-stats-theme="dark"] [data-page="stats"]:not([data-theme="light"]) {
|
||||
color-scheme: dark;
|
||||
--color-background: #161616;
|
||||
--color-background-weak: #242424;
|
||||
--color-background-weak-hover: #303030;
|
||||
--color-background-strong: #ffffff;
|
||||
--color-background-strong-hover: #eeeeee;
|
||||
--color-text: #d4d4d4;
|
||||
--color-text-weak: #a3a3a3;
|
||||
--color-text-strong: #ffffff;
|
||||
--color-text-inverted: #161616;
|
||||
--color-border-weak: #ffffff1a;
|
||||
--stats-bg: #161616;
|
||||
--stats-layer: #242424;
|
||||
--stats-layer-2: #303030;
|
||||
--stats-bg: #0c0c0c;
|
||||
--stats-layer: #161616;
|
||||
--stats-layer-2: #242424;
|
||||
--stats-line: #ffffff1a;
|
||||
--stats-line-strong: #ffffff33;
|
||||
--stats-text: #ffffff;
|
||||
--stats-muted: #d4d4d4;
|
||||
--stats-faint: #a3a3a3;
|
||||
--stats-text: #fafafa;
|
||||
--stats-muted: #aeaeae;
|
||||
--stats-faint: #8f8f8f;
|
||||
--stats-accent: #6b8fff;
|
||||
--stats-accent-text: #6b8fff;
|
||||
--stats-theme-icon-active: #fafafa;
|
||||
--stats-bar-idle: #303030;
|
||||
--stats-dot: #303030;
|
||||
--stats-hero-muted: #a3a3a3;
|
||||
--stats-hero-pattern: #303030;
|
||||
--stats-logo-bg: #f1ecec;
|
||||
--stats-logo-fill: #b7b1b1;
|
||||
--stats-logo-stroke: #211e1e;
|
||||
--stats-bar-idle: #2e2e2e;
|
||||
--stats-dot: #2e2e2e;
|
||||
--stats-hero-muted: #aeaeae;
|
||||
--stats-hero-pattern: #242424;
|
||||
--stats-logo-bg: #f5f5f5;
|
||||
--stats-logo-fill: #d2d2d2;
|
||||
--stats-logo-stroke: #1f1f1f;
|
||||
--stats-popover: #242424;
|
||||
--stats-layer-hover: #242424;
|
||||
}
|
||||
|
||||
[data-page="stats"][data-theme="dark"] [data-component="model-usage-chart"][data-variant="lab-usage"],
|
||||
:root[data-stats-theme="dark"]
|
||||
[data-page="stats"]:not([data-theme="light"])
|
||||
[data-component="model-usage-chart"][data-variant="lab-usage"] {
|
||||
--lab-usage-bar: #3a3a3a;
|
||||
--lab-usage-line: #a3a3a3;
|
||||
--lab-usage-bar: #4b4b4b;
|
||||
--lab-usage-line: #8f8f8f;
|
||||
--lab-usage-band: #242424;
|
||||
--lab-usage-active: #6b8fff;
|
||||
}
|
||||
|
|
@ -7421,15 +7412,15 @@ body {
|
|||
:root[data-stats-theme="dark"]
|
||||
[data-page="stats"]:not([data-theme="light"])
|
||||
[data-component="model-usage-chart"][data-variant="model-trend"] {
|
||||
--model-trend-bar: #3a3a3a;
|
||||
--model-trend-line: #a3a3a3;
|
||||
--model-trend-bar: #4b4b4b;
|
||||
--model-trend-line: #8f8f8f;
|
||||
--model-trend-band: #242424;
|
||||
--model-trend-active: #6b8fff;
|
||||
}
|
||||
|
||||
[data-page="stats"][data-theme="dark"] [data-component="chart-tooltip"],
|
||||
:root[data-stats-theme="dark"] [data-page="stats"]:not([data-theme="light"]) [data-component="chart-tooltip"] {
|
||||
background: #242424;
|
||||
background: var(--stats-popover);
|
||||
}
|
||||
|
||||
[data-page="stats"][data-theme="dark"]
|
||||
|
|
@ -7444,7 +7435,7 @@ body {
|
|||
[data-page="stats"]:not([data-theme="light"])
|
||||
:is([data-section="top-models"], [data-section="unique-users"])
|
||||
[data-component="chart-tooltip"] {
|
||||
background: #242424;
|
||||
background: var(--stats-popover);
|
||||
box-shadow:
|
||||
0 0 0 0.5px #ffffff24,
|
||||
0 8px 16px #0000003d,
|
||||
|
|
@ -7483,7 +7474,7 @@ body {
|
|||
:root[data-stats-theme="dark"]
|
||||
[data-page="stats"]:not([data-theme="light"])
|
||||
[data-component="leader-card"]:focus-visible {
|
||||
background: #303030;
|
||||
background: var(--stats-layer-hover);
|
||||
box-shadow:
|
||||
0 0 0 0.5px #ffffff24,
|
||||
0 6px 16px #0000003d,
|
||||
|
|
@ -7528,8 +7519,8 @@ body {
|
|||
:root[data-stats-theme="dark"]
|
||||
[data-page="stats"]:not([data-theme="light"])
|
||||
[data-slot="header-button"][data-variant="contrast"] {
|
||||
color: #ffffff;
|
||||
background: #5c5c5c;
|
||||
color: var(--stats-bg);
|
||||
background: var(--stats-text);
|
||||
box-shadow:
|
||||
0 -0.5px 0 0 #ffffff4d,
|
||||
0 0 0 0.5px #ffffff66,
|
||||
|
|
@ -7539,41 +7530,33 @@ body {
|
|||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-stats-theme="light"]) [data-page="stats"]:not([data-theme="light"]) {
|
||||
color-scheme: dark;
|
||||
--color-background: #161616;
|
||||
--color-background-weak: #242424;
|
||||
--color-background-weak-hover: #303030;
|
||||
--color-background-strong: #ffffff;
|
||||
--color-background-strong-hover: #eeeeee;
|
||||
--color-text: #d4d4d4;
|
||||
--color-text-weak: #a3a3a3;
|
||||
--color-text-strong: #ffffff;
|
||||
--color-text-inverted: #161616;
|
||||
--color-border-weak: #ffffff1a;
|
||||
--stats-bg: #161616;
|
||||
--stats-layer: #242424;
|
||||
--stats-layer-2: #303030;
|
||||
--stats-bg: #0c0c0c;
|
||||
--stats-layer: #161616;
|
||||
--stats-layer-2: #242424;
|
||||
--stats-line: #ffffff1a;
|
||||
--stats-line-strong: #ffffff33;
|
||||
--stats-text: #ffffff;
|
||||
--stats-muted: #d4d4d4;
|
||||
--stats-faint: #a3a3a3;
|
||||
--stats-text: #fafafa;
|
||||
--stats-muted: #aeaeae;
|
||||
--stats-faint: #8f8f8f;
|
||||
--stats-accent: #6b8fff;
|
||||
--stats-accent-text: #6b8fff;
|
||||
--stats-theme-icon-active: #fafafa;
|
||||
--stats-bar-idle: #303030;
|
||||
--stats-dot: #303030;
|
||||
--stats-hero-muted: #a3a3a3;
|
||||
--stats-hero-pattern: #303030;
|
||||
--stats-logo-bg: #f1ecec;
|
||||
--stats-logo-fill: #b7b1b1;
|
||||
--stats-logo-stroke: #211e1e;
|
||||
--stats-bar-idle: #2e2e2e;
|
||||
--stats-dot: #2e2e2e;
|
||||
--stats-hero-muted: #aeaeae;
|
||||
--stats-hero-pattern: #242424;
|
||||
--stats-logo-bg: #f5f5f5;
|
||||
--stats-logo-fill: #d2d2d2;
|
||||
--stats-logo-stroke: #1f1f1f;
|
||||
--stats-popover: #242424;
|
||||
--stats-layer-hover: #242424;
|
||||
}
|
||||
|
||||
:root:not([data-stats-theme="light"])
|
||||
[data-page="stats"]:not([data-theme="light"])
|
||||
[data-component="model-usage-chart"][data-variant="lab-usage"] {
|
||||
--lab-usage-bar: #3a3a3a;
|
||||
--lab-usage-line: #a3a3a3;
|
||||
--lab-usage-bar: #4b4b4b;
|
||||
--lab-usage-line: #8f8f8f;
|
||||
--lab-usage-band: #242424;
|
||||
--lab-usage-active: #6b8fff;
|
||||
}
|
||||
|
|
@ -7581,21 +7564,21 @@ body {
|
|||
:root:not([data-stats-theme="light"])
|
||||
[data-page="stats"]:not([data-theme="light"])
|
||||
[data-component="model-usage-chart"][data-variant="model-trend"] {
|
||||
--model-trend-bar: #3a3a3a;
|
||||
--model-trend-line: #a3a3a3;
|
||||
--model-trend-bar: #4b4b4b;
|
||||
--model-trend-line: #8f8f8f;
|
||||
--model-trend-band: #242424;
|
||||
--model-trend-active: #6b8fff;
|
||||
}
|
||||
|
||||
:root:not([data-stats-theme="light"]) [data-page="stats"]:not([data-theme="light"]) [data-component="chart-tooltip"] {
|
||||
background: #242424;
|
||||
background: var(--stats-popover);
|
||||
}
|
||||
|
||||
:root:not([data-stats-theme="light"])
|
||||
[data-page="stats"]:not([data-theme="light"])
|
||||
[data-section="top-models"]
|
||||
[data-component="chart-tooltip"] {
|
||||
background: #242424;
|
||||
background: var(--stats-popover);
|
||||
box-shadow:
|
||||
0 0 0 0.5px #ffffff24,
|
||||
0 8px 16px #0000003d,
|
||||
|
|
@ -7628,7 +7611,7 @@ body {
|
|||
:root:not([data-stats-theme="light"])
|
||||
[data-page="stats"]:not([data-theme="light"])
|
||||
[data-component="leader-card"]:focus-visible {
|
||||
background: #303030;
|
||||
background: var(--stats-layer-hover);
|
||||
box-shadow:
|
||||
0 0 0 0.5px #ffffff24,
|
||||
0 6px 16px #0000003d,
|
||||
|
|
@ -7654,8 +7637,8 @@ body {
|
|||
:root:not([data-stats-theme="light"])
|
||||
[data-page="stats"]:not([data-theme="light"])
|
||||
[data-slot="header-button"][data-variant="contrast"] {
|
||||
color: #ffffff;
|
||||
background: #5c5c5c;
|
||||
color: var(--stats-bg);
|
||||
background: var(--stats-text);
|
||||
box-shadow:
|
||||
0 -0.5px 0 0 #ffffff4d,
|
||||
0 0 0 0.5px #ffffff66,
|
||||
|
|
|
|||
|
|
@ -10,12 +10,15 @@
|
|||
--nav-menu-icon the Brand, ZIP and Press drawings
|
||||
--nav-menu-mono OpenTUI Mono (the host loads it) */
|
||||
[data-nav-menu] {
|
||||
--ink: var(--nav-menu-ink, light-dark(hsl(0 0% 8%), hsl(0 0% 95%)));
|
||||
--weak: var(--nav-menu-weak, light-dark(hsl(0 0% 40%), hsl(0 0% 64%)));
|
||||
--popover: var(--nav-menu-popover, light-dark(hsl(0 0% 100%), hsl(0 0% 10%)));
|
||||
--ink: var(--nav-menu-ink, light-dark(#161616, #fafafa));
|
||||
--weak: var(--nav-menu-weak, light-dark(#5c5c5c, #aeaeae));
|
||||
--popover: var(--nav-menu-popover, light-dark(#ffffff, #161616));
|
||||
--link: var(--nav-menu-link, light-dark(#3b5cf6, #6b8fff));
|
||||
--bar: var(--nav-menu-bar, light-dark(hsl(0 0% 40%), hsl(0 0% 62%)));
|
||||
--icon: var(--nav-menu-icon, light-dark(hsl(0 0% 40%), hsl(0 0% 56%)));
|
||||
--bar: var(--nav-menu-bar, light-dark(#5c5c5c, #aeaeae));
|
||||
--icon: var(--nav-menu-icon, light-dark(#6b6b6b, #8f8f8f));
|
||||
/* The fixed backgrounds behind the Brand files' light and dark previews. */
|
||||
--tile-light: #f5f5f5;
|
||||
--tile-dark: #0c0c0c;
|
||||
--tint: color-mix(in srgb, var(--link) 10%, var(--popover));
|
||||
/* The divider between a card's thumbnail and its label, and the card's ring. */
|
||||
--divider: light-dark(rgb(0 0 0 / 0.08), rgb(255 255 255 / 0.1));
|
||||
|
|
@ -158,14 +161,14 @@
|
|||
|
||||
/* Each file on the background it is made for: light marks on light, dark on dark. */
|
||||
&[data-tone="light"] {
|
||||
background: hsl(0 0% 96%);
|
||||
background: var(--tile-light);
|
||||
}
|
||||
|
||||
/* A dark preview's ring is its own colour, so it reads at full size (blue while hovered). */
|
||||
&[data-tone="dark"],
|
||||
&[data-tone="dark"]:dir(rtl) {
|
||||
background: #0a0a0a;
|
||||
box-shadow: 0 0 0 1px #0a0a0a;
|
||||
background: var(--tile-dark);
|
||||
box-shadow: 0 0 0 1px var(--tile-dark);
|
||||
}
|
||||
|
||||
&[data-kind="logo"] svg {
|
||||
|
|
@ -270,14 +273,14 @@
|
|||
@media (hover: hover) and (pointer: fine) {
|
||||
&:hover {
|
||||
background: var(--nav-chevron-hover);
|
||||
color: var(--nav-menu-ink, light-dark(hsl(0 0% 8%), hsl(0 0% 95%)));
|
||||
color: var(--nav-menu-ink, var(--nav-chevron-ink));
|
||||
}
|
||||
}
|
||||
|
||||
&:active,
|
||||
&[aria-expanded="true"] {
|
||||
background: var(--nav-chevron-press);
|
||||
color: var(--nav-menu-ink, light-dark(hsl(0 0% 8%), hsl(0 0% 95%)));
|
||||
color: var(--nav-menu-ink, var(--nav-chevron-ink));
|
||||
}
|
||||
|
||||
&[aria-expanded="true"] svg {
|
||||
|
|
@ -306,16 +309,16 @@
|
|||
--nav-edge: 24px;
|
||||
--nav-end: 17.5px;
|
||||
--nav-rule: light-dark(hsl(0 0% 88%), hsl(0 0% 18%));
|
||||
/* The product name's one fill (hover, open and pressed), opencode.ai's lockup hover: half the mark's inner grey on
|
||||
the docs page (#d2d2d2 over #fbfbfb, #4b4b4b over #0c0c0c). Fixed, so it is the same on every page background. */
|
||||
--nav-name-hover: light-dark(#e7e7e7, #2c2c2c);
|
||||
/* The product name's one fill (hover, open and pressed), opencode.ai's lockup hover: the hover step of the shared
|
||||
grey scale. Fixed, so it is the same on every page background. */
|
||||
--nav-name-hover: light-dark(#eeeeee, #242424);
|
||||
/* The chevron after a product name (and the docs' after DOCS): its box, the gap after the name's highlight, the glyph,
|
||||
how far its touch target reaches past it, and its colours. */
|
||||
--nav-chevron-width: 20px;
|
||||
--nav-chevron-gap: 2px;
|
||||
--nav-chevron-glyph: 10px;
|
||||
--nav-chevron-reach: 24px;
|
||||
--nav-chevron-ink: light-dark(hsl(0 0% 8%), hsl(0 0% 95%));
|
||||
--nav-chevron-ink: light-dark(#161616, #fafafa);
|
||||
--nav-chevron-hover: var(--nav-name-hover);
|
||||
--nav-chevron-press: light-dark(#d2d2d2, #4b4b4b);
|
||||
/* The product name after the mark (and the docs' DOCS): its size, and the padding under it that puts OpenTUI Mono's
|
||||
|
|
@ -349,7 +352,7 @@
|
|||
highlight, --nav-name-hover while hovered, pressed or open (hovering opens the product menu, so it never steps darker).
|
||||
Placed at --nav-edge, centred in the bar. */
|
||||
[data-nav-lockup] {
|
||||
--nav-lockup-ink: light-dark(hsl(0 0% 8%), hsl(0 0% 95%));
|
||||
--nav-lockup-ink: light-dark(#161616, #fafafa);
|
||||
--nav-logo-inner: light-dark(#d2d2d2, #4b4b4b);
|
||||
--nav-logo-code: light-dark(#1f1f1f, #eeeeee);
|
||||
--nav-lockup-inset: round(calc((var(--nav-logo-box-h) - 25px) / 2), 1px);
|
||||
|
|
|
|||
170
script/check-greys.ts
Normal file
170
script/check-greys.ts
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
#!/usr/bin/env bun
|
||||
// Keeps the web surfaces' greys on one shared scale. Fails when a stylesheet uses a grey, black or
|
||||
// white that isn't on the scale, or types a scale grey straight into a rule instead of using a
|
||||
// token. Files with a fixed look of their own (the arcade, the video tools, print) are listed in
|
||||
// EXCEPTIONS with the reason. Usage:
|
||||
// bun script/check-greys.ts report problems, exit 1 if any
|
||||
// bun script/check-greys.ts --json every neutral literal with its outcome, for the colour audit
|
||||
import path from "node:path"
|
||||
|
||||
const ROOTS = ["services/site/src", "packages/nav-menus/src", "packages/data/app/src"]
|
||||
|
||||
// The shared neutral scale. A step is a role, and the same step does the same job in light and dark.
|
||||
const SCALE = {
|
||||
light: [
|
||||
"#fbfbfb",
|
||||
"#ffffff",
|
||||
"#f5f5f5",
|
||||
"#eeeeee",
|
||||
"#e0e0e0",
|
||||
"#d2d2d2",
|
||||
"#888888",
|
||||
"#6b6b6b",
|
||||
"#5c5c5c",
|
||||
"#3a3a3a",
|
||||
"#161616",
|
||||
],
|
||||
dark: [
|
||||
"#0c0c0c",
|
||||
"#161616",
|
||||
"#1a1a1a",
|
||||
"#242424",
|
||||
"#2e2e2e",
|
||||
"#4b4b4b",
|
||||
"#6a6a6a",
|
||||
"#8f8f8f",
|
||||
"#aeaeae",
|
||||
"#dbdbdb",
|
||||
"#fafafa",
|
||||
],
|
||||
}
|
||||
|
||||
// Pure black and white always pass in masks (where #000 only means "opaque") and shadows.
|
||||
const ALPHA_CONTEXT = /^(mask|-webkit-mask|box-shadow|text-shadow|filter|backdrop-filter|--[\w-]*shadow)/
|
||||
|
||||
const EXCEPTIONS: [RegExp, string][] = [
|
||||
[/component\/site\/arcade\//, "Arcade game: its own cabinet, screen and metal colours"],
|
||||
[/component\/site\/arcade3d\//, "Arcade game: its own cabinet, screen and metal colours"],
|
||||
[/component\/video-editor\//, "Internal video editor"],
|
||||
[/component\/font-film\//, "Font film: rendered video frames"],
|
||||
[/component\/font-share\//, "Font share cards: exported images"],
|
||||
[/component\/site\/device-preview\.css$/, "Device preview tool: device frames"],
|
||||
[/component\/site\/design-mode\.css$/, "Design mode: internal overlay"],
|
||||
[/component\/site\/legal-print\.css$/, "Print: black on white whatever the theme"],
|
||||
[
|
||||
/style\/token\/color\.css$/,
|
||||
"Legacy tokens: to remove when the dropdown, language picker, 404 and limits graph move to site tokens",
|
||||
],
|
||||
]
|
||||
|
||||
// Pure black is a token only for video letterboxing (--media-black).
|
||||
const scale = new Set([...SCALE.light, ...SCALE.dark, "#000000"])
|
||||
|
||||
const files = (
|
||||
await Promise.all(ROOTS.map((root) => Array.fromAsync(new Bun.Glob(`${root}/**/*.css`).scan({ cwd: repo() }))))
|
||||
).flat()
|
||||
|
||||
const entries = (
|
||||
await Promise.all(
|
||||
files.map(async (file) => {
|
||||
const source = await Bun.file(path.join(repo(), file)).text()
|
||||
const exception = EXCEPTIONS.find(([re]) => re.test(file))?.[1]
|
||||
const allowed = allowedRanges(source)
|
||||
return declarations(source).flatMap((decl) =>
|
||||
neutrals(decl.value).map((hex) => ({
|
||||
file,
|
||||
line: decl.line,
|
||||
property: decl.property,
|
||||
hex: hex.value,
|
||||
alpha: hex.alpha,
|
||||
text: `${decl.property}: ${decl.value}`.replace(/\s+/g, " ").slice(0, 160),
|
||||
outcome: outcome(
|
||||
decl,
|
||||
hex,
|
||||
exception ?? allowed.find((range) => decl.line >= range.from && decl.line <= range.to)?.why,
|
||||
),
|
||||
})),
|
||||
)
|
||||
}),
|
||||
)
|
||||
).flat()
|
||||
|
||||
if (process.argv.includes("--json")) {
|
||||
console.log(JSON.stringify({ scale: SCALE, exceptions: EXCEPTIONS.map(([re, why]) => [re.source, why]), entries }))
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
const problems = entries.filter((entry) => entry.outcome.startsWith("problem"))
|
||||
for (const p of problems) console.error(`${p.file}:${p.line} ${p.hex} ${p.outcome.slice(9)} (${p.text})`)
|
||||
if (problems.length) {
|
||||
console.error(
|
||||
`\n${problems.length} grey${problems.length === 1 ? "" : "s"} off the shared scale (script/check-greys.ts).`,
|
||||
)
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
function outcome(
|
||||
decl: { property: string; value: string },
|
||||
hex: { value: string; alpha: boolean },
|
||||
exception: string | undefined,
|
||||
) {
|
||||
const pure = hex.value === "#000000" || hex.value === "#ffffff"
|
||||
if (exception) return `exception: ${exception}`
|
||||
if (/^--([a-z]+-)?logo-/.test(decl.property)) return "exception: Brand logo greys (brand guidelines)"
|
||||
if (ALPHA_CONTEXT.test(decl.property) && pure) return "allowed: mask or shadow"
|
||||
if (hex.alpha && pure) return "allowed: black or white wash"
|
||||
if (pure && /color-mix\(.*#(000|fff)\b/i.test(decl.value)) return "allowed: shades a colour"
|
||||
if (!scale.has(hex.value)) return "problem: not on the scale"
|
||||
if (decl.property.startsWith("--") || decl.property === "initial-value") return "token"
|
||||
return "problem: use a token"
|
||||
}
|
||||
|
||||
// Lines between `/* grey-ok: <reason> */` and `/* grey-ok-end */` keep their literal greys, for the
|
||||
// few places tokens can't reach, such as the page behind the site.
|
||||
function allowedRanges(source: string) {
|
||||
const lines = source.split("\n")
|
||||
return lines.flatMap((line, i) => {
|
||||
const why = line.match(/grey-ok:\s*(.*?)\s*\*\//)?.[1]
|
||||
if (!why) return []
|
||||
const end = lines.findIndex((next, j) => j > i && next.includes("grey-ok-end"))
|
||||
return [{ from: i + 1, to: end === -1 ? i + 1 : end + 1, why }]
|
||||
})
|
||||
}
|
||||
|
||||
// Every declaration with its property and the line it starts on. Comments are blanked first, keeping
|
||||
// line numbers.
|
||||
function declarations(source: string) {
|
||||
const text = source.replace(/\/\*[\s\S]*?\*\//g, (comment) => comment.replace(/[^\n]/g, " "))
|
||||
return [...text.matchAll(/([\w-]+)\s*:([^;{}]+)/g)]
|
||||
.filter((m) => /#[0-9a-fA-F]|hsl|rgb/.test(m[2]))
|
||||
.map((m) => ({ property: m[1], value: m[2].trim(), line: text.slice(0, m.index).split("\n").length }))
|
||||
}
|
||||
|
||||
// Neutral colour literals in a value: hex, hsl() with 0% saturation, and rgb() with equal channels.
|
||||
function neutrals(value: string) {
|
||||
return [
|
||||
...[...value.matchAll(/#([0-9a-fA-F]{8}|[0-9a-fA-F]{6}|[0-9a-fA-F]{3,4})\b/g)].map((m) => {
|
||||
const h = m[1].length <= 4 ? [...m[1]].map((c) => c + c).join("") : m[1]
|
||||
return { value: `#${h.slice(0, 6).toLowerCase()}`, alpha: h.length === 8 }
|
||||
}),
|
||||
...[...value.matchAll(/hsla?\(\s*[\d.]+(?:deg)?[\s,]+0%[\s,]+([\d.]+)%\s*(?:[,/]\s*([\d.]+%?))?\s*\)/g)].map(
|
||||
(m) => {
|
||||
const v = Math.round((Number(m[1]) / 100) * 255)
|
||||
.toString(16)
|
||||
.padStart(2, "0")
|
||||
return { value: `#${v}${v}${v}`, alpha: m[2] !== undefined }
|
||||
},
|
||||
),
|
||||
...[...value.matchAll(/rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)\s*(?:[,/]\s*([\d.]+%?))?\s*\)/g)].map((m) => ({
|
||||
value: `#${[m[1], m[2], m[3]].map((c) => Number(c).toString(16).padStart(2, "0")).join("")}`,
|
||||
alpha: m[4] !== undefined,
|
||||
})),
|
||||
].filter((hex) => {
|
||||
const [r, g, b] = [1, 3, 5].map((i) => parseInt(hex.value.slice(i, i + 2), 16))
|
||||
return Math.max(r, g, b) - Math.min(r, g, b) <= 6
|
||||
})
|
||||
}
|
||||
|
||||
function repo() {
|
||||
return path.resolve(import.meta.dir, "..")
|
||||
}
|
||||
|
|
@ -5,10 +5,10 @@
|
|||
border-radius: 8px;
|
||||
background-color: var(--color-background);
|
||||
box-shadow:
|
||||
0 0 0 1px rgba(19, 16, 16, 0.08),
|
||||
0 6px 8px -4px rgba(19, 16, 16, 0.12),
|
||||
0 4px 3px -2px rgba(19, 16, 16, 0.12),
|
||||
0 1px 2px -1px rgba(19, 16, 16, 0.12);
|
||||
0 0 0 1px rgba(0, 0, 0, 0.08),
|
||||
0 6px 8px -4px rgba(0, 0, 0, 0.12),
|
||||
0 4px 3px -2px rgba(0, 0, 0, 0.12),
|
||||
0 1px 2px -1px rgba(0, 0, 0, 0.12);
|
||||
padding: 6px;
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
|
|
|||
|
|
@ -211,7 +211,7 @@
|
|||
flex: 0 0 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
overflow: hidden;
|
||||
background: #0a0a0a;
|
||||
background: var(--fixed-dark);
|
||||
|
||||
:is(video, img) {
|
||||
position: absolute;
|
||||
|
|
@ -972,7 +972,7 @@
|
|||
width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0;
|
||||
color: #fff;
|
||||
color: var(--fixed-white);
|
||||
background: rgb(0 0 0 / 0.6);
|
||||
opacity: 0.8;
|
||||
transition: opacity 150ms ease;
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
"data-docs-variants": "typography-4 lists-3 blockquote-2 callout-3 tabs-6 code-6 codeTitle-6 codeLines-6 codeDiff-6 terminal-6 fileTree-6 steps-2 cards-3 tables-5 badges-4 details-2 media-2 api-7 config-6 cli-6 pagination-4 breadcrumbs-3 search-4 switchers-2 editLink-4 feedback-5 inlineCode-6",
|
||||
"data-status-bars": "4",
|
||||
"data-logo-menu-hover": "blue",
|
||||
"data-light-bg": "fbfbfb",
|
||||
"data-light-bg": null,
|
||||
"data-sidebar": "column",
|
||||
"data-console-height": "compact",
|
||||
"data-console-label": "left",
|
||||
|
|
|
|||
|
|
@ -576,7 +576,7 @@
|
|||
|
||||
/* On the red tint the code header label steps one shade darker, to keep a margin over 4.5:1. */
|
||||
&[data-type="danger"] {
|
||||
--code-label: light-dark(#5e5e5e, #8f8f8f);
|
||||
--code-label: light-dark(#5c5c5c, #8f8f8f);
|
||||
}
|
||||
|
||||
/* The label in the mono font's bold, a confident semibold at 12px (the label only, not bold text
|
||||
|
|
@ -1184,9 +1184,9 @@
|
|||
display: block;
|
||||
margin: 0 -1rem 0.875rem;
|
||||
padding: 0.5rem 1rem;
|
||||
border-bottom: 1px solid #2e2e2e;
|
||||
border-bottom: 1px solid var(--fixed-dark-line);
|
||||
font-size: var(--anno-size);
|
||||
color: #a0a0a0;
|
||||
color: var(--fixed-dark-muted);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1199,12 +1199,12 @@
|
|||
display: block;
|
||||
height: 2rem;
|
||||
margin: 0 -1rem 0.875rem;
|
||||
border-bottom: 1px solid #2e2e2e;
|
||||
border-bottom: 1px solid var(--fixed-dark-line);
|
||||
background:
|
||||
radial-gradient(circle, #555 3.5px, transparent 4px) 1rem center / 8px 8px no-repeat,
|
||||
radial-gradient(circle, #555 3.5px, transparent 4px) 1.75rem center / 8px 8px no-repeat,
|
||||
radial-gradient(circle, #555 3.5px, transparent 4px) 2.5rem center / 8px 8px no-repeat,
|
||||
#161616;
|
||||
radial-gradient(circle, var(--fixed-dark-line-strong) 3.5px, transparent 4px) 1rem center / 8px 8px no-repeat,
|
||||
radial-gradient(circle, var(--fixed-dark-line-strong) 3.5px, transparent 4px) 1.75rem center / 8px 8px no-repeat,
|
||||
radial-gradient(circle, var(--fixed-dark-line-strong) 3.5px, transparent 4px) 2.5rem center / 8px 8px no-repeat,
|
||||
var(--fixed-dark-raised);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2155,8 +2155,8 @@
|
|||
}
|
||||
|
||||
[data-page="docs"][data-docs-variants~="cli-4"] [data-component="docs-article"] [data-component="cli-command"] pre {
|
||||
background: #0a0a0a;
|
||||
color: #eeeeee;
|
||||
background: var(--fixed-dark);
|
||||
color: var(--fixed-dark-text);
|
||||
}
|
||||
|
||||
[data-page="docs"][data-docs-variants~="cli-5"] [data-component="docs-article"] [data-component="cli-command"] pre {
|
||||
|
|
@ -2745,20 +2745,20 @@
|
|||
block type sits on it: a white body lifted off the off-white page (a step lighter than the page in
|
||||
dark), a header row in the page's tone with the label (file mark and name, ">_ Terminal", Files,
|
||||
Usage) and an always-visible Copy, a 1px border round the block and a divider under the header.
|
||||
Like Vercel, the header is the darker of the two in both themes (#fafafa over #fff, #000 over
|
||||
#0a0a0a there). The border is decorative (about 1.3:1); the marks that carry meaning (highlight
|
||||
Like Vercel, the header is the darker of the two in both themes: the page colour over the raised
|
||||
body. The border is decorative (about 1.3:1); the marks that carry meaning (highlight
|
||||
and diff bars, the selected tab) are 3:1 or more, and all text is 4.5:1 or more. */
|
||||
|
||||
[data-page="docs"] {
|
||||
--code-body: light-dark(#ffffff, #161616);
|
||||
--code-head: light-dark(#f7f7f7, #111111);
|
||||
--code-border: light-dark(#e0e0e0, #2e2e2e);
|
||||
--code-text: light-dark(#141414, #f2f2f2);
|
||||
--code-label: light-dark(#666666, #8f8f8f);
|
||||
--code-body: var(--grey-2);
|
||||
--code-head: var(--grey-1);
|
||||
--code-border: var(--grey-5);
|
||||
--code-text: var(--grey-11);
|
||||
--code-label: var(--grey-8);
|
||||
/* Reference table heads (Tables 5, API, CLI): the label style in ink with the titles' faux medium
|
||||
(the site serves no 500 weight); 12px uppercase keeps them reading as labels. */
|
||||
--ref-head: var(--text-strong);
|
||||
--code-number: light-dark(#737373, #858585);
|
||||
--code-number: var(--grey-8);
|
||||
--code-mark: light-dark(#3b5cf6, #6b8fff);
|
||||
--code-mark-tint: light-dark(#eff2fe, #1e2637);
|
||||
--code-del: light-dark(#d61f1f, #f04c4c);
|
||||
|
|
@ -2770,7 +2770,7 @@
|
|||
--token-flag: light-dark(#7a3fc4, #9d7cd8);
|
||||
--token-string: light-dark(#2b7a3d, #7fd88f);
|
||||
--token-operator: light-dark(#0f6e7a, #56b6c2);
|
||||
--token-output: light-dark(#666666, #8f8f8f);
|
||||
--token-output: var(--grey-8);
|
||||
}
|
||||
|
||||
/* Outside option 6 the frame folds away and its header hides, so the older options look as before. */
|
||||
|
|
@ -3277,9 +3277,9 @@
|
|||
:is(p, li, td, th, dd, dt, h2, h3, h4, a, strong, em, small, span[data-slot])
|
||||
> code {
|
||||
padding: 0.1em 0.35em;
|
||||
border: 1px solid light-dark(#e6e6e6, #262626);
|
||||
border: 1px solid var(--grey-5);
|
||||
border-radius: 0;
|
||||
background: light-dark(#f2f2f2, #161616);
|
||||
background: var(--grey-3);
|
||||
color: var(--text-strong);
|
||||
}
|
||||
|
||||
|
|
@ -4211,7 +4211,7 @@
|
|||
:not(pre) > code:not([data-component="code-frame"] *) {
|
||||
padding: 0.1em 0.35em;
|
||||
border: 1px solid var(--surface-chip-edge);
|
||||
background: linear-gradient(light-dark(#f2f2f2, #161616), light-dark(#f2f2f2, #161616)), var(--surface-layer);
|
||||
background: linear-gradient(var(--grey-3), var(--grey-3)), var(--surface-layer);
|
||||
background-blend-mode: var(--blend), normal;
|
||||
color: var(--text-strong);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@
|
|||
|
||||
[data-slot="badge"] {
|
||||
background: var(--link);
|
||||
color: light-dark(#ffffff, #0c0c0c);
|
||||
color: var(--text-inverted);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
&[data-dragging] {
|
||||
cursor: grabbing;
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
background: var(--link);
|
||||
border-color: var(--link);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -400,7 +400,7 @@ html:has(ul[data-sortable] > li[data-nav-lifted]) {
|
|||
button[type="submit"] {
|
||||
justify-content: center;
|
||||
padding: 0.375rem;
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
background: var(--link);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@
|
|||
/* Under the section body, across the content columns: the terminal takes two cards and the points
|
||||
the rest. Stacked sections (phones) put the points under the terminal. */
|
||||
[data-page="home"][data-site] [data-component="oss-fork"] {
|
||||
--terminal-bg: hsl(0, 0%, 8%);
|
||||
--terminal-text: hsl(0, 0%, 86%);
|
||||
--terminal-dim: hsl(0, 0%, 56%);
|
||||
--terminal-bg: var(--fixed-dark-raised);
|
||||
--terminal-text: #dbdbdb;
|
||||
--terminal-dim: var(--fixed-dark-weak);
|
||||
|
||||
grid-column: 2 / -1;
|
||||
display: grid;
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
height: 2.25rem;
|
||||
padding-block: 0;
|
||||
padding-inline: 1rem 0.5rem;
|
||||
border-bottom: 1px solid hsl(0, 0%, 16%);
|
||||
border-bottom: 1px solid var(--fixed-dark-line);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--fs-micro);
|
||||
color: var(--terminal-dim);
|
||||
|
|
@ -69,13 +69,13 @@
|
|||
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
&:hover {
|
||||
background: hsl(0, 0%, 14%);
|
||||
background: var(--fixed-dark-hover);
|
||||
color: var(--terminal-text);
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: hsl(0, 0%, 14%);
|
||||
background: var(--fixed-dark-hover);
|
||||
color: var(--terminal-text);
|
||||
}
|
||||
|
||||
|
|
@ -113,7 +113,7 @@
|
|||
}
|
||||
|
||||
[data-kind="comment"] {
|
||||
color: hsl(0, 0%, 44%);
|
||||
color: var(--terminal-dim);
|
||||
}
|
||||
|
||||
[data-kind="command"] + [data-kind="command"],
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@
|
|||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: left top;
|
||||
background: #000;
|
||||
background: var(--media-black);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -162,8 +162,8 @@
|
|||
margin: 0;
|
||||
padding: 1rem;
|
||||
overflow: hidden;
|
||||
background: #0a0a0a;
|
||||
color: #eeeeee;
|
||||
background: var(--fixed-dark);
|
||||
color: var(--fixed-dark-text);
|
||||
font-family: var(--font-mono);
|
||||
font-size: clamp(0.4rem, 0.55vw, 0.6rem);
|
||||
line-height: 1.15;
|
||||
|
|
@ -179,29 +179,29 @@
|
|||
max-width: 40rem;
|
||||
padding: 1.5rem;
|
||||
border-inline-start: 3px solid var(--link);
|
||||
background: #0c0c0c;
|
||||
color: #f2f2f2;
|
||||
background: var(--fixed-dark);
|
||||
color: var(--fixed-dark-text);
|
||||
|
||||
h3 {
|
||||
color: #fff;
|
||||
color: var(--fixed-white);
|
||||
}
|
||||
|
||||
[data-slot="intro"] {
|
||||
color: hsl(0, 0%, 78%);
|
||||
color: var(--fixed-dark-muted);
|
||||
}
|
||||
|
||||
[data-slot="command"] {
|
||||
border-color: hsl(0, 0%, 22%);
|
||||
border-color: var(--fixed-dark-line);
|
||||
|
||||
code {
|
||||
color: #fff;
|
||||
color: var(--fixed-white);
|
||||
}
|
||||
}
|
||||
|
||||
[data-slot="facts"] {
|
||||
margin: 1rem 0 0;
|
||||
padding-inline-start: 1.25rem;
|
||||
color: hsl(0, 0%, 72%);
|
||||
color: var(--fixed-dark-muted);
|
||||
font-size: var(--fs-small);
|
||||
line-height: 1.5;
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ const preloadRules: [string, string, (s: SiteSettings, el: HTMLElement, d: SiteS
|
|||
],
|
||||
["", "data-status-bars", (s) => s.statusBars],
|
||||
["", "data-logo-menu-hover", (s) => s.logoMenuHover],
|
||||
["", "data-light-bg", (s) => (s.lightBackground === "#ffffff" ? undefined : s.lightBackground.slice(1))],
|
||||
["", "data-light-bg", (s) => (s.lightBackground === "#fbfbfb" ? undefined : s.lightBackground.slice(1))],
|
||||
["", "data-sidebar", (s) => (s.sidebar === "fifth column" ? "column" : undefined)],
|
||||
['[data-slot="logo"]', "data-variant", (s) => s.logo],
|
||||
// The architect print's label case; ?labels= on a legal page overrides it (legal.tsx).
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
/* Square corners, like every other surface on the site. On the dark page every tile (Hex's
|
||||
black icon too) gets a hairline edge, drawn over the artwork, so it doesn't vanish. */
|
||||
border-radius: 0;
|
||||
outline: 1px solid light-dark(transparent, hsl(0, 0%, 26%));
|
||||
outline: 1px solid light-dark(transparent, var(--border-strong));
|
||||
outline-offset: -1px;
|
||||
background: var(--bg-weaker);
|
||||
font-family: var(--font-mono);
|
||||
|
|
@ -44,8 +44,8 @@
|
|||
/* A blank tile (no icon yet) or a mark drawn in it: black on the light page; on the dark page a
|
||||
lifted grey with a hairline edge, since black would vanish into the background. */
|
||||
&:is([data-empty], [data-mark]) {
|
||||
background: light-dark(#000, hsl(0, 0%, 15%));
|
||||
color: #fff;
|
||||
background: light-dark(var(--media-black), var(--bg-weaker));
|
||||
color: var(--fixed-white);
|
||||
}
|
||||
|
||||
/* The GitHub and GitLab marks, white in the tile. */
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
/* Black behind a product's own icon, so its rounded corners fill out to the square tile. */
|
||||
&:has(img) {
|
||||
background: #000;
|
||||
background: var(--media-black);
|
||||
}
|
||||
|
||||
img {
|
||||
|
|
|
|||
|
|
@ -144,8 +144,10 @@
|
|||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
/* The heroes' own backdrop in each theme (videos.ts), so the box matches them before they load. */
|
||||
/* The heroes' own backdrop in each theme (videos.ts), so the box matches them before they load.
|
||||
grey-ok: matches the encoded video backdrop */
|
||||
background: light-dark(#161616, #1e1e1e);
|
||||
/* grey-ok-end */
|
||||
|
||||
video,
|
||||
img {
|
||||
|
|
@ -167,7 +169,7 @@
|
|||
width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0;
|
||||
color: #fff;
|
||||
color: var(--fixed-white);
|
||||
background: rgb(0 0 0 / 0.6);
|
||||
opacity: 0.8;
|
||||
|
||||
|
|
@ -197,14 +199,16 @@
|
|||
/* No real footage yet: plain black in both themes, with a hairline edge on the dark page so the
|
||||
box still reads against the near-black background. */
|
||||
[data-component="product-hero"][data-empty] {
|
||||
background: #000;
|
||||
box-shadow: inset 0 0 0 1px light-dark(transparent, hsl(0, 0%, 20%));
|
||||
background: var(--media-black);
|
||||
box-shadow: inset 0 0 0 1px light-dark(transparent, var(--border));
|
||||
}
|
||||
|
||||
/* The phone recording has its own near-black backdrop, which fills the hero edge to edge in both
|
||||
themes (edits/hero-mobile-*.json): the box matches it before the poster paints. */
|
||||
[data-component="product-hero"][data-product="mobile"] {
|
||||
/* grey-ok: matches the encoded video backdrop */
|
||||
background: #0a0a0a;
|
||||
/* grey-ok-end */
|
||||
}
|
||||
|
||||
[data-component="product-hero"][data-product="sdk"] {
|
||||
|
|
@ -216,14 +220,14 @@
|
|||
font-size: clamp(0.75rem, 2.2cqw, 1.5rem);
|
||||
line-height: 1.55;
|
||||
white-space: pre;
|
||||
color: #eeeeee;
|
||||
color: var(--fixed-dark-text);
|
||||
}
|
||||
}
|
||||
|
||||
[data-slot="caption"] {
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--fs-meta);
|
||||
color: #808080;
|
||||
color: var(--fixed-dark-weak);
|
||||
}
|
||||
|
||||
/* Title and description across three columns, the main action at the right edge. */
|
||||
|
|
@ -488,7 +492,7 @@
|
|||
|
||||
[data-slot="media"] {
|
||||
aspect-ratio: 16 / 10;
|
||||
background: #0a0a0a;
|
||||
background: var(--fixed-dark);
|
||||
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@
|
|||
[data-component="products"]:not([data-layout="grid"])
|
||||
[data-component="product-card"]
|
||||
[data-component="site-button"]:not([aria-disabled="true"]):active {
|
||||
background: hsl(0, 0%, 84%);
|
||||
background: var(--fixed-light-press);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -247,8 +247,8 @@
|
|||
line-height: 1.5;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
background: #fff;
|
||||
color: hsl(0, 0%, 8%);
|
||||
background: var(--fixed-white);
|
||||
color: var(--fixed-ink);
|
||||
}
|
||||
|
||||
[data-product="terminal"],
|
||||
|
|
@ -274,7 +274,7 @@
|
|||
font-size: calc((100cqw - 3rem) / 32 / 0.6);
|
||||
line-height: 1.55;
|
||||
white-space: pre;
|
||||
color: #eeeeee;
|
||||
color: var(--fixed-dark-text);
|
||||
}
|
||||
|
||||
h3 {
|
||||
|
|
@ -427,7 +427,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* OpenCode dark theme syntax colors for the SDK snippet, in the card and on its page. */
|
||||
/* OpenCode dark theme syntax colors for the SDK snippet, in the card and on its page.
|
||||
grey-ok: the OpenCode theme's own syntax colours */
|
||||
[data-product="sdk"] [data-slot="code"] {
|
||||
[data-c] {
|
||||
color: #808080;
|
||||
|
|
@ -457,13 +458,14 @@
|
|||
color: #eeeeee;
|
||||
}
|
||||
}
|
||||
/* grey-ok-end */
|
||||
}
|
||||
|
||||
/* A store that is coming soon (the status flag in product-data.ts), in a menu or a sheet: grey and
|
||||
inert like a disabled button, and still focusable, so keyboard focus keeps its tint. */
|
||||
[data-site] [data-component="site-menu"] [data-slot="menu"] > [data-slot="store"][aria-disabled="true"],
|
||||
[data-component="sheet"][data-sheet="product"] [data-slot="row"][aria-disabled="true"] {
|
||||
color: light-dark(hsl(0, 0%, 60%), hsl(0, 0%, 36%));
|
||||
color: var(--text-disabled);
|
||||
cursor: not-allowed;
|
||||
|
||||
&:not(:focus-visible) {
|
||||
|
|
@ -609,7 +611,7 @@
|
|||
/* The covers' own flat backdrop (#161616 as browsers decode it) once the resting frame has
|
||||
painted, so the space the moved cover leaves blends in; the tone stays until then. */
|
||||
&:has(img[data-poster][data-loaded]) {
|
||||
background: #161616;
|
||||
background: var(--card-media-bg);
|
||||
}
|
||||
|
||||
/* The resting cover's subject (wordmark and prompt, orb, terminal, code) is centred in its
|
||||
|
|
@ -622,7 +624,7 @@
|
|||
transform: translateY(round(-10cqw, 1px));
|
||||
/* The backdrop below the moved frame, part of the layer, so it covers the hover video's
|
||||
poster underneath and fades out with the cover when the hover cut plays. */
|
||||
box-shadow: 0 0 0 200cqw #161616;
|
||||
box-shadow: 0 0 0 200cqw var(--card-media-bg);
|
||||
}
|
||||
|
||||
/* The sizzle reel (the hover video, which plays by itself on phones) moves up too, by what
|
||||
|
|
@ -631,7 +633,7 @@
|
|||
below, under the darkest part of the gradient. */
|
||||
> video:not([data-slot]) {
|
||||
transform: translateY(round(var(--reel-shift), 1px));
|
||||
box-shadow: 0 0 0 200cqw #161616;
|
||||
box-shadow: 0 0 0 200cqw var(--card-media-bg);
|
||||
}
|
||||
|
||||
&[data-product="desktop"] {
|
||||
|
|
|
|||
|
|
@ -5,11 +5,13 @@
|
|||
}
|
||||
|
||||
/* The page behind the site (seen when you pull past the top or bottom) follows the site's
|
||||
theme, not the system one. */
|
||||
theme, not the system one. The page step of the scale (--grey-1), written out because the tokens
|
||||
live on [data-site], inside this element. grey-ok: outside the tokens' scope */
|
||||
html:has([data-site]) {
|
||||
color-scheme: light dark;
|
||||
background-color: light-dark(#fff, #0c0c0c);
|
||||
background-color: light-dark(#fbfbfb, #0c0c0c);
|
||||
}
|
||||
/* grey-ok-end */
|
||||
|
||||
html:has([data-site][data-theme="light"]) {
|
||||
color-scheme: light;
|
||||
|
|
@ -51,46 +53,81 @@ html:has([data-site][data-theme="dark"]) {
|
|||
|
||||
/* Dark matches the Console landing page (#0c0c0c). */
|
||||
/* Light follows Settings › Light background (pure white unless set). */
|
||||
--bg: light-dark(#fff, #0c0c0c);
|
||||
--bg-weak: light-dark(hsl(0, 0%, 96%), hsl(0, 0%, 10%));
|
||||
/* The shared neutral scale (script/check-greys.ts keeps every stylesheet on it). A step is a
|
||||
role, and the same step does the same job in light and dark: 1 page, 2 raised surfaces, 3 subtle
|
||||
fills, 4 hover, 5 borders and press, 6 strong borders and decoration, 7 marks at 3:1, 8 muted
|
||||
text at 4.5:1 on steps 1 to 4, 9 body text, 10 emphasis, 11 ink. Data, Console and Status use
|
||||
the same values. Components use the role tokens below, never a step or a raw grey. */
|
||||
--grey-1: light-dark(#fbfbfb, #0c0c0c);
|
||||
--grey-2: light-dark(#ffffff, #161616);
|
||||
--grey-3: light-dark(#f5f5f5, #1a1a1a);
|
||||
--grey-4: light-dark(#eeeeee, #242424);
|
||||
--grey-5: light-dark(#e0e0e0, #2e2e2e);
|
||||
--grey-6: light-dark(#d2d2d2, #4b4b4b);
|
||||
--grey-7: light-dark(#888888, #6a6a6a);
|
||||
--grey-8: light-dark(#6b6b6b, #8f8f8f);
|
||||
--grey-9: light-dark(#5c5c5c, #aeaeae);
|
||||
--grey-10: light-dark(#3a3a3a, #dbdbdb);
|
||||
--grey-11: light-dark(#161616, #fafafa);
|
||||
/* Surfaces that keep one look in both themes: the dark and light tiles behind logos, media and
|
||||
terminals, pure black behind video (letterboxing must match the frames), and white text on the
|
||||
link blue or on images. */
|
||||
--fixed-dark: #0c0c0c;
|
||||
--fixed-dark-raised: #161616;
|
||||
--fixed-dark-hover: #242424;
|
||||
--fixed-dark-line: #2e2e2e;
|
||||
--fixed-dark-line-strong: #4b4b4b;
|
||||
--fixed-dark-weak: #8f8f8f;
|
||||
--fixed-dark-muted: #aeaeae;
|
||||
--fixed-dark-text: #fafafa;
|
||||
--fixed-light: #f5f5f5;
|
||||
--fixed-light-press: #d2d2d2;
|
||||
--fixed-white: #ffffff;
|
||||
--fixed-ink: #161616;
|
||||
--media-black: #000000;
|
||||
--on-accent: #ffffff;
|
||||
|
||||
--bg: var(--grey-1);
|
||||
--bg-weak: var(--grey-3);
|
||||
/* A pressed full-width row on phones (the docs' sticky rows, the Contents list, the DOCS menu): a
|
||||
subtle surface tint, lighter than the chevrons' and menus' press fills. */
|
||||
--row-press: var(--bg-weak);
|
||||
/* The product cards' media backdrop (products.css), which their covers and reels are graded to in
|
||||
both themes. */
|
||||
--card-media-bg: #161616;
|
||||
--card-media-bg: var(--fixed-dark-raised);
|
||||
/* The document rows' model (doc-list.css, and the product lists in product-list.css): a row's text
|
||||
on the content edge with this padding outside it, so the hover fill and the bar at its start
|
||||
edge bleed past the edge. */
|
||||
--doc-row-pad: 1rem;
|
||||
--doc-row-fill: var(--bg-weak);
|
||||
--doc-row-bar: light-dark(hsl(0, 0%, 50%), hsl(0, 0%, 46%));
|
||||
/* The home Console band (routes/index.css), dark in both themes: the panel grey in light, and in
|
||||
dark #121212, a muted step above the #0c0c0c page so it reads as a band, not a slab. A registered
|
||||
colour, so light-dark() resolves in the page's scheme here and not in the band's own forced-dark
|
||||
one. */
|
||||
--console-band-bg: light-dark(hsl(0, 0%, 10%), #121212);
|
||||
--bg-weaker: light-dark(hsl(0, 0%, 92%), hsl(0, 0%, 14%));
|
||||
--bg-strong: light-dark(hsl(0, 0%, 8%), hsl(0, 0%, 95%));
|
||||
--bg-strong-hover: light-dark(hsl(0, 0%, 20%), hsl(0, 0%, 82%));
|
||||
--text-strong: light-dark(hsl(0, 0%, 8%), hsl(0, 0%, 95%));
|
||||
--text: light-dark(hsl(0, 0%, 32%), hsl(0, 0%, 72%));
|
||||
--doc-row-bar: var(--grey-7);
|
||||
/* The home Console band (routes/index.css), dark in both themes: the subtle fill's dark step in
|
||||
both, a step above the dark page so it reads as a band, not a slab. A registered colour, so
|
||||
light-dark() resolves in the page's scheme here and not in the band's own forced-dark one. */
|
||||
--console-band-bg: #1a1a1a;
|
||||
--bg-weaker: var(--grey-4);
|
||||
--bg-strong: var(--grey-11);
|
||||
--bg-strong-hover: var(--grey-10);
|
||||
--text-strong: var(--grey-11);
|
||||
--text: var(--grey-9);
|
||||
/* At least 4.5:1 on --bg-weaker too, so secondary text passes WCAG AA on raised surfaces. */
|
||||
--text-weak: light-dark(hsl(0, 0%, 40%), hsl(0, 0%, 56%));
|
||||
/* Muted labels that still carry meaning: the lightest grey with 4.5:1 on every light page
|
||||
background (#fbfbfb to #ffffff) and on dark. --text-weaker and below are for decoration only. */
|
||||
--text-muted: light-dark(hsl(0, 0%, 45%), hsl(0, 0%, 49%));
|
||||
--text-weak: var(--grey-8);
|
||||
/* Muted labels that still carry meaning: 4.5:1 on every page background and on hover fills, in
|
||||
light and dark. The same step as --text-weak. --text-weaker and below are for decoration only. */
|
||||
--text-muted: var(--grey-8);
|
||||
/* Quiet marks that still need to be seen, like the nav's [01] shortcuts: 3:1 on the light page
|
||||
backgrounds and on dark (WCAG 1.4.11). */
|
||||
--text-faint: light-dark(hsl(0, 0%, 55%), hsl(0, 0%, 38%));
|
||||
--text-faint: var(--grey-7);
|
||||
/* Switched-off controls and items: about 3:1, legible though WCAG exempts it. */
|
||||
--text-disabled: var(--grey-7);
|
||||
/* The nav's markers: the sidebar's "[1]" shortcuts and the footer's "[ ]" boxes share it, so they
|
||||
always match. */
|
||||
--nav-marker: var(--text-faint);
|
||||
--text-weaker: light-dark(hsl(0, 0%, 72%), hsl(0, 0%, 32%));
|
||||
--text-weakest: light-dark(hsl(0, 0%, 83%), hsl(0, 0%, 23%));
|
||||
--text-inverted: light-dark(hsl(0, 0%, 100%), #0c0c0c);
|
||||
--border: light-dark(hsl(0, 0%, 88%), hsl(0, 0%, 18%));
|
||||
--border-strong: light-dark(hsl(0, 0%, 78%), hsl(0, 0%, 28%));
|
||||
--text-weaker: var(--grey-6);
|
||||
--text-weakest: var(--grey-6);
|
||||
--text-inverted: light-dark(#ffffff, #0c0c0c);
|
||||
--border: var(--grey-5);
|
||||
--border-strong: var(--grey-6);
|
||||
/* The OpenCode Console accent blue; dark mode uses a lighter blue from Settings › Dark blue. */
|
||||
--link-dark: #4f8bff;
|
||||
--link: light-dark(#3b5cf6, var(--link-dark));
|
||||
|
|
@ -98,9 +135,9 @@ html:has([data-site][data-theme="dark"]) {
|
|||
--status-degraded: light-dark(hsl(38, 92%, 48%), hsl(40, 90%, 58%));
|
||||
--status-outage: light-dark(hsl(0, 72%, 50%), hsl(0, 80%, 64%));
|
||||
--link-visited: light-dark(#6a4fd6, var(--link-dark));
|
||||
--popover-bg: light-dark(hsl(0, 0%, 100%), hsl(0, 0%, 10%));
|
||||
--popover-bg: var(--grey-2);
|
||||
/* Secondary text in pop-ups: at least 5.5:1 on the pop-up background (WCAG AA is 4.5:1). */
|
||||
--popover-text-weak: light-dark(hsl(0, 0%, 40%), hsl(0, 0%, 64%));
|
||||
--popover-text-weak: var(--grey-9);
|
||||
/* A 1px ring instead of a border, plus tight layered shadows. */
|
||||
--popover-shadow:
|
||||
0 0 0 1px light-dark(rgb(0 0 0 / 0.1), rgb(255 255 255 / 0.1)),
|
||||
|
|
@ -728,8 +765,8 @@ html:has([data-site][data-theme="dark"]) {
|
|||
specific. aria-disabled buttons stay focusable, so they keep the keyboard focus ring (WCAG 2.4.7),
|
||||
and their click handlers must check aria-disabled themselves. */
|
||||
[data-component="site-button"]:is(:disabled, [aria-disabled="true"]) {
|
||||
--button-disabled-text: light-dark(hsl(0, 0%, 60%), hsl(0, 0%, 36%));
|
||||
--button-disabled-line: light-dark(hsl(0, 0%, 84%), hsl(0, 0%, 22%));
|
||||
--button-disabled-text: var(--text-disabled);
|
||||
--button-disabled-line: var(--grey-6);
|
||||
background: transparent !important;
|
||||
color: var(--button-disabled-text) !important;
|
||||
box-shadow: inset 0 0 0 1px var(--button-disabled-line);
|
||||
|
|
@ -1607,11 +1644,11 @@ html:has([data-site][data-theme="dark"]) {
|
|||
menu; the active bar stays clearly darker than the hover bar (light 40% vs 66%, dark 62% vs
|
||||
34%), and text on the tint keeps well over 4.5:1. "blue" swaps the tints and the hover bar for
|
||||
the link blue. Unregistered, so light-dark() resolves in each pop-up's own scheme. */
|
||||
--menu-hover: light-dark(hsl(0, 0%, 94.5%), hsl(0, 0%, 13.5%));
|
||||
--menu-press: light-dark(hsl(0, 0%, 91%), hsl(0, 0%, 17%));
|
||||
--menu-hover: var(--grey-4);
|
||||
--menu-press: var(--grey-5);
|
||||
--menu-open: var(--menu-hover);
|
||||
--menu-hint: light-dark(hsl(0, 0%, 66%), hsl(0, 0%, 34%));
|
||||
--menu-bar: light-dark(hsl(0, 0%, 40%), hsl(0, 0%, 62%));
|
||||
--menu-hint: var(--grey-7);
|
||||
--menu-bar: var(--grey-9);
|
||||
|
||||
&[data-menu-color="blue"] {
|
||||
/* Dark pop-ups need a stronger mix for the wash to read as blue rather than navy. */
|
||||
|
|
@ -2768,7 +2805,7 @@ html:has([data-site][data-theme="dark"]) {
|
|||
keeping its own colour. */
|
||||
[data-site] ::selection {
|
||||
background: var(--link);
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
}
|
||||
|
||||
[data-site][data-selection="muted"] ::selection {
|
||||
|
|
@ -3870,14 +3907,15 @@ html:has([data-site][data-theme="dark"]) {
|
|||
}
|
||||
}
|
||||
|
||||
/* Settings › Light background: the off-white options. Pure white is the default. The page behind
|
||||
the site follows, so pulling past the top or bottom shows the same colour. */
|
||||
[data-site][data-light-bg="fbfbfb"] {
|
||||
--bg: light-dark(#fbfbfb, #0c0c0c);
|
||||
/* Settings › Light background: the other light page colours. The default is the scale's page step
|
||||
(--grey-1). The page behind the site follows, so pulling past the top or bottom shows the same
|
||||
colour. grey-ok: Settings options, a development tool */
|
||||
[data-site][data-light-bg="ffffff"] {
|
||||
--bg: light-dark(#ffffff, #0c0c0c);
|
||||
}
|
||||
|
||||
html:has([data-site][data-light-bg="fbfbfb"]) {
|
||||
background-color: light-dark(#fbfbfb, #0c0c0c);
|
||||
html:has([data-site][data-light-bg="ffffff"]) {
|
||||
background-color: light-dark(#ffffff, #0c0c0c);
|
||||
}
|
||||
|
||||
[data-site][data-light-bg="fcfcfc"] {
|
||||
|
|
@ -3903,6 +3941,7 @@ html:has([data-site][data-light-bg="fdfdfd"]) {
|
|||
html:has([data-site][data-light-bg="fefefe"]) {
|
||||
background-color: light-dark(#fefefe, #0c0c0c);
|
||||
}
|
||||
/* grey-ok-end */
|
||||
|
||||
/* Footer links that leave the site (Community) get the nav's corner arrow, revealed on hover. */
|
||||
[data-site] [data-component="footer-columns"] a:has([data-slot="external"]) {
|
||||
|
|
@ -4164,7 +4203,7 @@ html [data-site][data-nav-numbers="1"][data-status-bars="6"] {
|
|||
[data-site]:is([data-button-hover="blue"], [data-button-hover="blue-ring"])
|
||||
[data-component="site-button"]:not([data-variant="neutral"]):hover {
|
||||
background: var(--link);
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
}
|
||||
|
||||
[data-site][data-button-hover="blue"] [data-component="site-button"]:hover {
|
||||
|
|
@ -4184,7 +4223,7 @@ html [data-site][data-nav-numbers="1"][data-status-bars="6"] {
|
|||
[data-site]:is([data-button-hover="blue"], [data-button-hover="blue-ring"])
|
||||
[data-component="site-button"][aria-expanded="true"]:not([data-variant="neutral"]) {
|
||||
background: var(--link);
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
}
|
||||
|
||||
[data-site][data-button-hover="blue"] [data-component="site-button"][aria-expanded="true"]:not(:focus-visible) {
|
||||
|
|
@ -4224,7 +4263,7 @@ html [data-site][data-nav-numbers="1"][data-status-bars="6"] {
|
|||
[data-site]:is([data-button-hover="blue"], [data-button-hover="blue-ring"])
|
||||
&[data-slot="split-toggle"][aria-expanded="true"] {
|
||||
background: var(--link);
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
}
|
||||
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
|
|
|
|||
|
|
@ -1235,7 +1235,7 @@ export function Site(props: {
|
|||
}
|
||||
data-status-bars={siteSettings.statusBars}
|
||||
data-logo-menu-hover={siteSettings.logoMenuHover}
|
||||
data-light-bg={siteSettings.lightBackground === "#ffffff" ? undefined : siteSettings.lightBackground.slice(1)}
|
||||
data-light-bg={siteSettings.lightBackground === "#fbfbfb" ? undefined : siteSettings.lightBackground.slice(1)}
|
||||
data-sidebar={siteSettings.sidebar === "fifth column" ? "column" : undefined}
|
||||
data-layout={props.aside ? "docs" : undefined}
|
||||
data-bare={props.bare ? "" : undefined}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
width: 16px;
|
||||
height: 16px;
|
||||
translate: -50% -50%;
|
||||
color: #fff;
|
||||
color: var(--fixed-white);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5));
|
||||
|
|
@ -171,7 +171,7 @@
|
|||
height: var(--disc);
|
||||
translate: -50% -50%;
|
||||
border-radius: 50%;
|
||||
background: light-dark(#000, #0f0f0f);
|
||||
background: light-dark(var(--media-black), var(--fixed-dark));
|
||||
box-shadow:
|
||||
inset 0 0 0 1px light-dark(transparent, rgb(255 255 255 / 0.14)),
|
||||
0 1px 2px light-dark(rgb(0 0 0 / calc(0.12 * var(--shadow))), rgb(0 0 0 / calc(0.7 * var(--shadow)))),
|
||||
|
|
|
|||
|
|
@ -359,8 +359,8 @@
|
|||
grid-row: span 2;
|
||||
/* Square like the product list tiles: black behind Hex's rounded artwork fills the corners. */
|
||||
border-radius: 0;
|
||||
background: #000;
|
||||
outline: 1px solid light-dark(transparent, hsl(0, 0%, 26%));
|
||||
background: var(--media-black);
|
||||
outline: 1px solid light-dark(transparent, var(--border-strong));
|
||||
outline-offset: -1px;
|
||||
filter: grayscale(1);
|
||||
}
|
||||
|
|
@ -558,8 +558,8 @@
|
|||
place-items: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
background: #000;
|
||||
color: #fff;
|
||||
background: var(--media-black);
|
||||
color: var(--fixed-white);
|
||||
|
||||
svg {
|
||||
width: 15px;
|
||||
|
|
|
|||
|
|
@ -769,7 +769,7 @@
|
|||
have it on the screen's bottom edge instead (below). */
|
||||
[data-site] [data-component="docs-version-notice"][data-placement="header"] {
|
||||
/* The link's grey: 6.6:1 on the light theme's bar, 6.1:1 on the dark theme's. */
|
||||
--notice-muted: hsl(0, 0%, 64%);
|
||||
--notice-muted: var(--fixed-dark-muted);
|
||||
--notice-text: light-dark(var(--text-inverted), var(--text-strong));
|
||||
position: fixed;
|
||||
z-index: 7;
|
||||
|
|
@ -793,7 +793,7 @@
|
|||
translate: 0 -50%;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
background: light-dark(var(--bg-strong), hsl(0, 0%, 13%));
|
||||
background: light-dark(var(--bg-strong), var(--bg-weaker));
|
||||
box-shadow: inset 0 0 0 1px light-dark(transparent, var(--border-strong));
|
||||
border-color: transparent;
|
||||
color: var(--notice-text);
|
||||
|
|
@ -925,9 +925,11 @@
|
|||
one dark area; the top still takes the top bar's page colour. The page ends above the bar, so the
|
||||
footer stays reachable. Open menus and sheets sit over it. */
|
||||
@media (max-width: 60rem) {
|
||||
/* The bar's colours, written out because the tokens live inside this element. grey-ok: outside the tokens' scope */
|
||||
html:has([data-component="docs-version-notice"][data-placement="header"]) {
|
||||
background: light-dark(hsl(0, 0%, 8%), hsl(0, 0%, 13%));
|
||||
background: light-dark(#161616, #242424);
|
||||
}
|
||||
/* grey-ok-end */
|
||||
|
||||
[data-site]:has([data-component="docs-version-notice"][data-placement="header"]) {
|
||||
padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@
|
|||
theme instead of the tile's. */
|
||||
&[data-tone="light"] {
|
||||
color-scheme: only light;
|
||||
background: #f5f5f5;
|
||||
background: var(--fixed-light);
|
||||
--logo-code: #1f1f1f;
|
||||
--logo-open: #626262;
|
||||
--logo-inner: #d2d2d2;
|
||||
|
|
@ -79,7 +79,7 @@
|
|||
|
||||
&[data-tone="dark"] {
|
||||
color-scheme: only dark;
|
||||
background: #0a0a0a;
|
||||
background: var(--fixed-dark);
|
||||
box-shadow: inset 0 0 0 1px var(--border);
|
||||
--logo-code: #eeeeee;
|
||||
--logo-open: #aeaeae;
|
||||
|
|
@ -355,7 +355,7 @@
|
|||
> [data-variant="split"]
|
||||
[data-slot="chevron-button"][aria-expanded="true"] {
|
||||
background: var(--link);
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
}
|
||||
|
||||
/* Icons: square buttons, named by their tooltips and labels. */
|
||||
|
|
@ -931,7 +931,7 @@
|
|||
|
||||
[data-slot="preview"] {
|
||||
&[data-variant="standard"][data-tone="light"] {
|
||||
background: #f4f4f4;
|
||||
background: var(--fixed-light);
|
||||
}
|
||||
|
||||
/* Photo-like multicolor backgrounds: wide, heavily blurred color fields (the last listed field
|
||||
|
|
@ -1219,14 +1219,16 @@
|
|||
|
||||
&[data-tone="light"] {
|
||||
color-scheme: only light;
|
||||
background: #f4f4f4;
|
||||
background: var(--fixed-light);
|
||||
--size-muted: #6b6b6b;
|
||||
/* grey-ok: the logo's ink */
|
||||
--size-strong: #1f1f1f;
|
||||
/* grey-ok-end */
|
||||
}
|
||||
|
||||
&[data-tone="dark"] {
|
||||
color-scheme: only dark;
|
||||
background: #0a0a0a;
|
||||
background: var(--fixed-dark);
|
||||
box-shadow: inset 0 0 0 1px var(--border);
|
||||
--size-muted: #8f8f8f;
|
||||
--size-strong: #eeeeee;
|
||||
|
|
@ -1240,7 +1242,7 @@
|
|||
|
||||
/* Cells: the tiles step away from the badge's grey cells (#eeeeee, #1f1f1f) so the cell edges
|
||||
and the gap between them read. */
|
||||
/* White, so a faint inset edge shows where the tile ends. */
|
||||
/* White, so a faint inset edge shows where the tile ends. grey-ok: the badge's own cell colours */
|
||||
&[data-badge="c"][data-tone="light"] {
|
||||
background: #ffffff;
|
||||
box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1);
|
||||
|
|
@ -1252,6 +1254,7 @@
|
|||
--size-muted: #d0d0d0;
|
||||
--size-strong: #ffffff;
|
||||
}
|
||||
/* grey-ok-end */
|
||||
}
|
||||
|
||||
/* The size switcher: plain mono text in the tile's top-left corner, shown while the tile is
|
||||
|
|
@ -1394,9 +1397,11 @@
|
|||
height: 28px;
|
||||
}
|
||||
|
||||
/* grey-ok: a deliberately wrong example */
|
||||
&[data-example="low-contrast"] {
|
||||
background: #b0b0b0;
|
||||
}
|
||||
/* grey-ok-end */
|
||||
|
||||
&[data-example="color"] {
|
||||
background: var(--brand-dark-2);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,8 @@
|
|||
/* No backing behind the logo: over a dark or light surface it takes that scheme's artwork
|
||||
instead (surface.ts, github-link.css). That artwork is the brand's transparent logo
|
||||
(public/brand/files/opencode-logo-transparent-*.svg): the ink at 20% (light) or 28% (dark)
|
||||
for the inner square and 70% / 72% for the open letters, so they tint with what is behind. */
|
||||
for the inner square and 70% / 72% for the open letters, so they tint with what is behind.
|
||||
grey-ok: the brand's logo artwork */
|
||||
[data-slot="logo"] {
|
||||
[data-slot="inner"] {
|
||||
fill: light-dark(rgb(31 31 31 / 0.2), rgb(238 238 238 / 0.28));
|
||||
|
|
@ -63,6 +64,7 @@
|
|||
fill: light-dark(rgb(31 31 31 / 0.7), rgb(238 238 238 / 0.72));
|
||||
}
|
||||
}
|
||||
/* grey-ok-end */
|
||||
|
||||
[data-slot="bare-theme"] {
|
||||
position: fixed;
|
||||
|
|
@ -2122,6 +2124,7 @@
|
|||
border: 1px solid currentColor;
|
||||
}
|
||||
|
||||
/* grey-ok: the specimen's printed paper, ink and shade */
|
||||
[data-swatch="paper"] {
|
||||
background: light-dark(var(--bg), #fff);
|
||||
}
|
||||
|
|
@ -2137,6 +2140,7 @@
|
|||
[data-swatch="shade"] {
|
||||
background: #cecece;
|
||||
}
|
||||
/* grey-ok-end */
|
||||
|
||||
[data-anno] {
|
||||
margin-left: 1rem;
|
||||
|
|
@ -2297,9 +2301,9 @@
|
|||
--link: var(--link-dark);
|
||||
--glyph-ink: #fff;
|
||||
--shade-alpha: 30%;
|
||||
--text-weak: hsl(0, 0%, 62%);
|
||||
background: #0c0c0c;
|
||||
color: hsl(0, 0%, 95%);
|
||||
--text-weak: var(--fixed-dark-muted);
|
||||
background: var(--fixed-dark);
|
||||
color: var(--fixed-dark-text);
|
||||
border-top: 1px solid hsl(0 0% 100% / 0.12);
|
||||
}
|
||||
|
||||
|
|
@ -2350,10 +2354,10 @@
|
|||
inset: 0;
|
||||
border-radius: 50%;
|
||||
background:
|
||||
linear-gradient(#fff, #fff) center top / 1px 38% no-repeat,
|
||||
linear-gradient(#fff, #fff) center bottom / 1px 38% no-repeat,
|
||||
linear-gradient(#fff, #fff) left center / 38% 1px no-repeat,
|
||||
linear-gradient(#fff, #fff) right center / 38% 1px no-repeat;
|
||||
linear-gradient(var(--fixed-white), var(--fixed-white)) center top / 1px 38% no-repeat,
|
||||
linear-gradient(var(--fixed-white), var(--fixed-white)) center bottom / 1px 38% no-repeat,
|
||||
linear-gradient(var(--fixed-white), var(--fixed-white)) left center / 38% 1px no-repeat,
|
||||
linear-gradient(var(--fixed-white), var(--fixed-white)) right center / 38% 1px no-repeat;
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
|
|
@ -2364,7 +2368,7 @@
|
|||
transform: translateX(-50%);
|
||||
padding: 0.125rem 0.375rem;
|
||||
background: #3b5cf6;
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
|
@ -2594,7 +2598,7 @@
|
|||
height: 100svh;
|
||||
padding: var(--story-top) var(--pad) 0;
|
||||
background: var(--universe-blue);
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
overflow: hidden;
|
||||
|
||||
@media (max-width: 40rem) {
|
||||
|
|
@ -2745,7 +2749,7 @@
|
|||
margin-inline: calc(-1 * var(--pad));
|
||||
padding: 2rem var(--pad) clamp(5rem, 10vw, 9rem);
|
||||
background: var(--universe-blue);
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
}
|
||||
|
||||
[data-slot="universe-working"] {
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@
|
|||
align-items: center;
|
||||
padding: 1px 0.75rem 0;
|
||||
background: light-dark(var(--link), color-mix(in srgb, var(--link) 65%, #000));
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
|
@ -288,7 +288,7 @@
|
|||
&[data-style="chip"] [data-slot="new"] {
|
||||
padding: 4px 8px;
|
||||
background: light-dark(var(--link), color-mix(in srgb, var(--link) 65%, #000));
|
||||
color: #fff;
|
||||
color: var(--on-accent);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -672,7 +672,7 @@
|
|||
|
||||
/* Print and Save as PDF: only the document. The site's sidebars, menus, corner controls and the
|
||||
page's own buttons go; the text prints black on white at a book size, and each link prints its
|
||||
address after it. */
|
||||
address after it. grey-ok: print, black on white whatever the theme */
|
||||
@media print {
|
||||
@page {
|
||||
margin: 18mm 16mm;
|
||||
|
|
@ -773,6 +773,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
/* grey-ok-end */
|
||||
}
|
||||
|
||||
/* A document's title is a page title, the size docs and product pages use. The repeated attribute
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@
|
|||
bottom: 0;
|
||||
inset-inline-start: 0;
|
||||
width: 2px;
|
||||
background: light-dark(hsl(0, 0%, 50%), hsl(0, 0%, 46%));
|
||||
background: var(--doc-row-bar);
|
||||
opacity: 0;
|
||||
transition: opacity 150ms ease;
|
||||
}
|
||||
|
|
@ -836,11 +836,11 @@
|
|||
aspect-ratio: 2 / 1;
|
||||
|
||||
&[data-tone="light"] {
|
||||
background: #f5f5f5;
|
||||
background: var(--fixed-light);
|
||||
}
|
||||
|
||||
&[data-tone="dark"] {
|
||||
background: #0a0a0a;
|
||||
background: var(--fixed-dark);
|
||||
box-shadow: inset 0 0 0 1px var(--border);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
background: rgb(0 0 0 / 0.7);
|
||||
color: #fff;
|
||||
color: var(--fixed-white);
|
||||
}
|
||||
|
||||
/* "products" (default): the four products side by side in the page's columns (2 × 2 at medium
|
||||
|
|
@ -383,7 +383,7 @@
|
|||
background: rgb(0 0 0 / 0.7);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--fs-meta);
|
||||
color: #fff;
|
||||
color: var(--fixed-white);
|
||||
}
|
||||
|
||||
[data-slot="strip"] {
|
||||
|
|
@ -598,7 +598,7 @@
|
|||
width: auto;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
background: #0a0a0a;
|
||||
background: var(--fixed-dark);
|
||||
pointer-events: auto;
|
||||
}
|
||||
}
|
||||
|
|
@ -616,11 +616,11 @@
|
|||
gap: 1rem;
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--mono-size);
|
||||
color: #fff;
|
||||
color: var(--fixed-white);
|
||||
}
|
||||
|
||||
[data-slot="counter"] {
|
||||
color: hsl(0, 0%, 64%);
|
||||
color: var(--fixed-dark-muted);
|
||||
}
|
||||
|
||||
[data-slot="actions"] {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
/* No real footage yet: plain black in both themes. */
|
||||
[data-slot="media"][data-empty] {
|
||||
background: #000;
|
||||
background: var(--media-black);
|
||||
}
|
||||
|
||||
@media (max-width: 39.9375rem) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue