Draw the site's icon as the plain repeat button emoji, filling its square in the reader's own emoji font and colours, with no paper ground and no palette filter; the rasters are that drawing on a transparent ground, and the manifest offers no maskable icon, since a launcher's mask would cut a full-bleed emoji's corners
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by oscabriel · committed by oscabriel · parent 0a4a192 · Browse files · 8 files·+14 added−25 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+14 added−25 removed
- tests:+4 added−4 removed
- other:+10 added−21 removed
Provenance
- Commit
0e2977c- Tree
9c2cd2b- Author
oscabriel <oscarhernandeziv@gmail.com>- Committer
oscabriel <oscarhernandeziv@gmail.com>- Parent
0a4a192
8 files changed+14 added−25 removed
modified:apps/web/public/icons/icon-192.pngbinary
A binary file, modified.
modified:apps/web/public/icons/icon-512.pngbinary
A binary file, modified.
modified:apps/web/public/icons/icon.svg+2 added-12 removed
1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">2- <!-- The repeat button emoji, drawn as text by the reader's emoji font, then set in the palette: its greys3- mapped to the ink, the sage primary and white, so no platform's own colour (Noto's is orange) shows. -->4- <filter id="palette" color-interpolation-filters="sRGB">5- <feColorMatrix type="saturate" values="0"/>6- <feComponentTransfer>7- <feFuncR type="table" tableValues="0.102 0.404 0.404 1"/>8- <feFuncG type="table" tableValues="0.122 0.478 0.478 1"/>9- <feFuncB type="table" tableValues="0.180 0.427 0.427 1"/>10- </feComponentTransfer>11- </filter>12- <rect width="512" height="512" fill="#f8f7f4"/>13- <text x="256" y="256" font-size="240" text-anchor="middle" dominant-baseline="central" filter="url(#palette)" font-family="'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif">🔁</text>2+ <!-- The repeat button emoji, drawn as text by the reader's emoji font, filling the square: no ground of its own. -->3+ <text x="256" y="255" font-size="452" text-anchor="middle" dominant-baseline="central" font-family="'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif">🔁</text>4 </svg>modified:apps/web/public/apple-touch-icon.pngbinary
A binary file, modified.
modified:apps/web/public/favicon.icobinary
A binary file, modified.
modified:apps/web/src/features/agents/manifest.ts+7 added-8 removed
7 unmodified lines891011121313141516171819141516171819202021222323 unmodified lines7 unmodified linesimport { themeColors } from "../shared/theme.ts";
const rasters = [192, 512] as const;
// The emoji fills its square, so no raster is offered as maskable: a launcher's mask would cut its corners.const icons = [ ...rasters.flatMap((size) => (["any", "maskable"] as const).map((purpose) => ({ purpose, sizes: `${size}x${size}`, src: `/icons/icon-${size}.png`, type: "image/png", })) ...rasters.map((size) => ({ purpose: "any", sizes: `${size}x${size}`, src: `/icons/icon-${size}.png`, type: "image/png", })), ), { purpose: "any", sizes: "any", src: "/icons/icon.svg",23 unmodified linesmodified:apps/web/test/icons.test.ts+4 added-4 removed
1223456678937 unmodified lines474849505253515253545556575 unmodified lines// The site has no logomark: wherever a file must stand for it (the tab's icon, a home screen's, the manifest's),// it draws the repeat button emoji as text on the paper, and each raster is that drawing at its size.// it draws the repeat button emoji as text, filling the square, and each raster is that drawing at its size.import { describe, expect, it } from "@effect/vitest";
import svg from "../public/icons/icon.svg?raw";import { themeColors } from "../src/features/shared/theme.ts";
const rasters: Readonly<Record<string, string>> = import.meta.glob( "../public/**/*.{png,ico}", { eager: true, import: "default", query: "?inline" }37 unmodified lines /<(?:path|polygon|polyline|circle|ellipse|line)\b/u ); });
it("lays the emoji on the light paper", () => { expect(svg).toContain(`fill="${themeColors.light}"`); it("lays the emoji on no ground of its own, in its own colours", () => { expect(svg).not.toMatch(/<rect\b/u); expect(svg).not.toContain("filter"); });
it("keeps each raster at the size its place asks for", () => { expect(pngSize("../public/apple-touch-icon.png")).toStrictEqual([180, 180]);5 unmodified linesmodified:DESIGN.md+1 added-1 removed
432 unmodified lines433 ## Shapes434 435 Square. The radius is 2 px (`--radius: 0.125rem`), and shadcn's base-lyra components square most corners. Borders are one-pixel hairlines; the current tab's 2 px ink underline is the one heavy line, and no edge of a card carries a colour. An empty state's border is dashed (an unfilled field), and so is the rule that parts disclosed agents from credit. Marks are lucide icons at 16 px (14 px in dense places), stroke 1.75, one family.436 437-**No logomark.** The wordmark is the product's name set in the UI sans. Where a file must stand for the site (the favicon, `apple-touch-icon.png`, the manifest's icons), it is the repeat button emoji (U+1F501) drawn as text in `public/icons/icon.svg` on the warm paper, through an SVG filter that maps its greys to the ink, the sage primary and white, so no platform's own colour shows (Noto's is orange). The rasters are that one drawing, rendered in headless Chromium at 1024 px and downscaled with Lanczos: 512 and 192 for the manifest, 180 for iOS, and 16, 32 and 48 in `favicon.ico`. The emoji fills 52% of the square, inside a maskable icon's safe circle. `apps/web/test/icons.test.ts` holds the text, the paper and the sizes.437+**No logomark.** The wordmark is the product's name set in the UI sans. Where a file must stand for the site (the favicon, `apple-touch-icon.png`, the manifest's icons), it is the repeat button emoji (U+1F501) drawn as text in `public/icons/icon.svg`, plain: in the reader's own emoji font and colours, filling the square, with no ground of its own. The rasters are that one drawing, rendered in headless Chromium at 1024 px on a transparent ground and downscaled with Lanczos: 512 and 192 for the manifest, 180 for iOS, and 16, 32 and 48 in `favicon.ico`. Since the emoji fills the square, the manifest offers no maskable icon. `apps/web/test/icons.test.ts` holds the text, the bare ground and the sizes.438 439 ## Components440 441 ### Top bar197 unmodified lines