Public: anyone can read this; the crew can change it.

The standards pages' two raw colours become design tokens #3611

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

mason/forge:mason/3556-the-standards-pages-two-raw-colours-beco → main 3 commits fork

  • Merged. mason/3556-the-standards-pages-two-raw-colours-beco was merged into main as 270c878.

Review

Sign in to review this change.
3 files changed +10 −11
docs/design/baseline.json −9
@@ -1,14 +1,5 @@
11 {
22 "files": {
3 "src/web/standards.ts": {
4 "colour": 2,
5 "size": 0,
6 "motion": 0,
7 "forced": 0,
8 "focus": 0,
9 "input": 0,
10 "target": 0
11 },
123 "src/web/style/components.ts": {
134 "colour": 3,
145 "size": 2,
src/web/standards.ts +5 −2
@@ -22,6 +22,7 @@
2222
2323 import releases from "../core/releases.json" with { type: "json" };
2424 import { markPng, type MarkShape } from "../design/mark.ts";
25 import { metaThemeColor } from "../design/themes.ts";
2526 import { BODY_MAX, TITLE_MAX } from "../core/reports.ts";
2627 import { llmsRepos, sitemapRepos } from "../core/listings.ts";
2728 import { canRead, getRepo } from "../core/repos.ts";
@@ -178,8 +179,10 @@ export function webManifest(ctx: Ctx): Response {
178179 method: "GET",
179180 params: { title: "title", text: "text", url: "url" },
180181 },
181 background_color: "#fafafa",
182 theme_color: "#fafafa",
182 // The default light theme's ground, read from the theme registry
183 // so the installed app's splash matches the page it opens on.
184 background_color: metaThemeColor("light"),
185 theme_color: metaThemeColor("light"),
183186 icons: [
184187 { src: "/icons/forge-192.png", sizes: "192x192", type: "image/png" },
185188 { src: "/icons/forge-512.png", sizes: "512x512", type: "image/png" },
test/standards.test.ts +5
@@ -236,10 +236,15 @@ describe("what the open web expects", () => {
236236 name: string;
237237 display: string;
238238 start_url: string;
239 background_color: string;
240 theme_color: string;
239241 icons: { src: string; sizes: string; purpose?: string }[];
240242 };
241243 expect(m.display).toBe("standalone");
242244 expect(m.start_url).toBe("/");
245 // The splash and chrome are the default light theme's ground.
246 expect(m.background_color).toBe("#fafafa");
247 expect(m.theme_color).toBe("#fafafa");
243248 expect(m.icons.some((i) => i.purpose === "maskable")).toBe(true);
244249 for (const icon of m.icons) {
245250 const png = await fetch(`${base}${icon.src}`);

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs