Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,10 @@ dictation button draws a disabled microphone of the same size until its chunk
lands. `qrcode` loads when a code is drawn. The modules the boot shares with a
lazy chunk are one `boot` chunk (a Rolldown `codeSplitting` group in
`vite.config.ts`), because the core speaks HTTP/1.1 and a browser fetches six
files at a time. Geist and Geist Mono ship as latin, latin-ext and rest
subsets with their weight axis; the mono latin cut carries the arrows and box
drawing a terminal draws.
files at a time. Geist Mono ships as latin, latin-ext and rest subsets with
its weight axis; its latin cut carries the arrows and box drawing a terminal
draws. The text faces (Inter, Atkinson Hyperlegible Next, Source Sans 3, IBM
Plex Sans) ship as latin and latin-ext.

A part whose chunk has not landed says it is loading, one whose chunk failed
offers a retry, and every failed part asks again when the browser is back
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// before the stylesheet so the first frame is drawn in it. The sans face
// only: the first screen draws no mono text, and on a slow link a mono
// file would compete with the entry chunk.
var faces = { geist: 'Geist-latin', inter: 'Inter-latin', plex: 'IBMPlexSans-latin', atkinson: 'AtkinsonHyperlegibleNext-latin', figtree: 'Figtree-latin', source: 'SourceSans3-latin', dm: 'DMSans-latin', system: '' };
var faces = { inter: 'Inter-latin', atkinson: 'AtkinsonHyperlegibleNext-latin', source: 'SourceSans3-latin', plex: 'IBMPlexSans-latin', system: '' };
var face = localStorage.getItem('boite.font');
if (face === null || !Object.prototype.hasOwnProperty.call(faces, face)) face = 'inter';
if (face !== 'inter') document.documentElement.dataset.font = face;
Expand Down
93 changes: 0 additions & 93 deletions packages/ui/public/fonts/DMSans-OFL.txt

This file was deleted.

Binary file removed packages/ui/public/fonts/DMSans-latin-ext.woff2
Binary file not shown.
Binary file removed packages/ui/public/fonts/DMSans-latin.woff2
Binary file not shown.
93 changes: 0 additions & 93 deletions packages/ui/public/fonts/Figtree-OFL.txt

This file was deleted.

Binary file removed packages/ui/public/fonts/Figtree-latin-ext.woff2
Binary file not shown.
Binary file removed packages/ui/public/fonts/Figtree-latin.woff2
Binary file not shown.
Binary file removed packages/ui/public/fonts/Geist-latin-ext.woff2
Binary file not shown.
Binary file removed packages/ui/public/fonts/Geist-latin.woff2
Binary file not shown.
Binary file removed packages/ui/public/fonts/Geist-rest.woff2
Binary file not shown.
90 changes: 13 additions & 77 deletions packages/ui/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,13 @@
*/

/*
* Geist and Geist Mono, variable on wght, cut like the faces below into latin
* and latin extended, plus a third file holding every other glyph of the font
* Geist Mono, variable on wght, cut like the faces below into latin and latin
* extended, plus a third file holding every other glyph of the font
* (Greek, Cyrillic, Vietnamese, fractions), so no character changes face. The
* latin cut also carries the arrows, key, box drawing, block and geometric
* symbols (U+2190-27BF) the UI and the terminal draw.
*/

@font-face {
font-family: 'Geist';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/Geist-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-27BF, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Geist';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/Geist-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
font-family: 'Geist';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/Geist-rest.woff2') format('woff2');
unicode-range: U+02D8-02D9, U+02DB, U+0300-0303, U+0306-0307, U+0309-030C, U+0312, U+031B, U+0323, U+0326-0328, U+0335-0338, U+039B, U+03A9, U+03BB-03BC, U+03C0, U+03C9, U+0400-045F, U+0462-0463, U+046A-046B, U+0472-0475, U+0490-0493, U+0496-0497, U+049A-049B, U+04A2-04A3, U+04AE-04B3, U+04B6-04B7, U+04BA-04BB, U+04C0, U+04CF, U+04D8-04D9, U+04E2-04E3, U+04E8-04E9, U+04EE-04EF, U+0E3F, U+1EA0-1EF1, U+2070, U+2074-2079, U+2080-2089, U+2116-2117, U+2153-2155, U+215B-215E, U+3003, U+301C, U+F8FF, U+FB01-FB02;
}

@font-face {
font-family: 'Geist Mono';
font-style: normal;
Expand Down Expand Up @@ -67,10 +40,13 @@
}

/*
* The faces Settings, Appearance offers beside Geist (lib/fonts.ts), Inter
* the default, from Fontsource's variable builds, each cut into latin and latin extended: a file
* The text faces Settings, Appearance offers (lib/fonts.ts), Inter the
* default, from Fontsource's variable builds, each cut into latin and latin extended: a file
* is fetched only once a glyph of its range is drawn in that face, so a face
* nobody picked costs this rule and nothing else. Licences beside them.
* nobody picked costs this rule and nothing else. Licences beside them. Kept
* for reading (2026-10-18): Atkinson Hyperlegible Next, IBM Plex Sans and
* Source Sans 3 tell I, l and 1 apart and keep open shapes; Geist, Figtree and
* DM Sans went, each a closed or geometric face that repeated another.
*/

@font-face {
Expand Down Expand Up @@ -127,24 +103,6 @@
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
font-family: 'Figtree';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/Figtree-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'Figtree';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/Figtree-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
font-family: 'Source Sans 3';
font-style: normal;
Expand All @@ -163,24 +121,6 @@
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/DMSans-latin.woff2') format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
font-family: 'DM Sans';
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url('/fonts/DMSans-latin-ext.woff2') format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
Expand Down Expand Up @@ -315,13 +255,10 @@
/* Every face Settings, Appearance offers, one stack each: the pick swaps
`--font-sans` or `--font-mono` below, and each tile of the picker is drawn
in its own. */
--face-geist: 'Geist', var(--font-fallback);
--face-inter: 'Inter', var(--font-fallback);
--face-plex: 'IBM Plex Sans', var(--font-fallback);
--face-atkinson: 'Atkinson Hyperlegible Next', var(--font-fallback);
--face-figtree: 'Figtree', var(--font-fallback);
--face-source: 'Source Sans 3', var(--font-fallback);
--face-dm: 'DM Sans', var(--font-fallback);
--face-system: 'Segoe UI Variable Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
--face-mono-geist: 'Geist Mono', var(--font-mono-fallback);
--face-mono-jetbrains: 'JetBrains Mono', var(--font-mono-fallback);
Expand Down Expand Up @@ -741,12 +678,9 @@ html[data-chat-width='full'] {
}

/* The face picked under Settings, Appearance (lib/fonts.ts); Inter, the default, stamps nothing. */
[data-font='geist'] { --font-sans: var(--face-geist); }
[data-font='plex'] { --font-sans: var(--face-plex); }
[data-font='atkinson'] { --font-sans: var(--face-atkinson); }
[data-font='figtree'] { --font-sans: var(--face-figtree); }
[data-font='source'] { --font-sans: var(--face-source); }
[data-font='dm'] { --font-sans: var(--face-dm); }
[data-font='system'] { --font-sans: var(--face-system); }
[data-mono='jetbrains'] { --font-mono: var(--face-mono-jetbrains); }
[data-mono='system'] { --font-mono: var(--face-mono-system); }
Expand Down Expand Up @@ -817,16 +751,18 @@ html[data-chat-width='full'] {
--color-composer-focus: color-mix(in oklch, var(--color-accent) 55%, transparent);
/* Replaces the resting shadow on focus, slot for slot so it animates: a bloom under the box, the top
reflection put out (it would double the lit edge), then a blurred halo. Every layer is blurred: a
spread-only ring draws a second, hard outline. The edge itself is a gradient, below. */
--composer-glow: 0 14px 40px -18px color-mix(in oklch, var(--color-accent) 50%, transparent), inset 0 1px 0 transparent, 0 0 24px -8px color-mix(in oklch, var(--color-accent) 30%, transparent);
spread-only ring draws a second, hard outline. The halo spreads outward: a negative spread shrinks
its corner radius below the box's, and the corners went darker than the sides (19 against 30 of
luminance, 4 px out, on the dark ground at 16). The edge itself is a gradient, below. */
--composer-glow: 0 12px 32px -6px color-mix(in oklch, var(--color-accent) 30%, transparent), inset 0 1px 0 transparent, 0 0 14px 4px color-mix(in oklch, var(--color-accent) 13%, transparent);
--composer-edge: linear-gradient(to bottom, color-mix(in oklch, var(--color-accent) 85%, var(--color-foreground)), color-mix(in oklch, var(--color-accent) 50%, transparent) 45%, color-mix(in oklch, var(--color-accent) 24%, transparent));
--color-control-surface: color-mix(in oklab, var(--color-surface-2) 82%, transparent);
--color-control-hover: color-mix(in oklab, var(--color-surface-3) 90%, transparent);
--color-control-primary-hover: color-mix(in oklch, var(--color-accent) 88%, var(--color-foreground));
}
/* On a light page the bloom reads stronger: half as much. */
[data-theme='light'] {
--composer-glow: 0 12px 36px -18px color-mix(in oklch, var(--color-accent) 36%, transparent), inset 0 1px 0 transparent, 0 0 20px -8px color-mix(in oklch, var(--color-accent) 22%, transparent);
--composer-glow: 0 12px 32px -6px color-mix(in oklch, var(--color-accent) 22%, transparent), inset 0 1px 0 transparent, 0 0 14px 4px color-mix(in oklch, var(--color-accent) 9%, transparent);
}
}

Expand Down
Loading
Loading