chore(ui): vendor Inter and JetBrains Mono

`--font-sans` and `--font-mono` have named these two since the tokens were
written, and both fell through to a system fallback the entire time — no face was
ever registered, so UI-SPEC §2's typography had never actually shipped. The
`@theme` block is unchanged; what was missing is the two `@font-face` rules.

Committed as files rather than added as `@fontsource-*` devDependencies. The app
runs behind a strict CSP with no external hosts, so a CDN is not an option, and
two binaries carry no `npm audit` surface to keep clean forever. `legal/fonts/`
holds the verbatim OFL text for each, the release each came from, and the SHA-256
of both files, so a reader can verify what shipped without trusting the note that
says it. SIL OFL 1.1 permits the bundling and requires the licence to travel with
it, which is what those files are.

One variable file for Inter covers 100–900 without extra requests.
`font-display: swap` on both: the shell renders in the fallback for the first
frame rather than showing nothing, which is the same instinct as §7's "never
spinners longer than 300 ms without text".

`tokens.test.ts` is unaffected — it computes contrast from the colour tokens, not
from anything the typeface changes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
poli0981andClaude Opus 5 committed 2026-08-09 21:46:25 +07:00
1 parent 8042bdb5f8
commit 907a653cc5
7 files changed
+243 -2

No files matched your search

+5 -2
View File
@@ -17,10 +17,13 @@
| nucleo (fuzzy matcher) | MPL-2.0 | search (file-level copyleft; compatible) |
| rusqlite / SQLite | MIT / Public Domain | local cache |
| specta / tauri-specta | MIT | type generation |
| Inter typeface | SIL OFL 1.1 | UI font |
| JetBrains Mono typeface | SIL OFL 1.1 | mono font |
| Inter typeface | SIL OFL 1.1 | UI font — `ui/src/assets/fonts/InterVariable.woff2` |
| JetBrains Mono typeface | SIL OFL 1.1 | mono font — `ui/src/assets/fonts/JetBrainsMono-Regular.woff2` |
| Microsoft Edge WebView2 Runtime | proprietary, system component | rendering (not distributed by PipDock; Evergreen runtime assumed present per Microsoft's terms) |
Both typefaces are committed to the repository rather than fetched at build time. The verbatim OFL
text for each, the release they came from and the SHA-256 of each file are in `legal/fonts/`.
## B. External tools invoked as separate processes (NOT distributed with PipDock)
These run as independent programs from your system or from PipDock's isolated tools environment; they are separate works under their own licenses, obtained by you from PyPI/their distributors:
+92
View File
@@ -0,0 +1,92 @@
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION AND CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
+93
View File
@@ -0,0 +1,93 @@
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
+20
View File
@@ -0,0 +1,20 @@
PipDock — vendored font provenance
==================================
Both files are committed rather than pulled from a CDN or an npm package: the app runs behind a
strict CSP with no external hosts, and two binaries carry no `npm audit` surface. Recorded here so a
future reader can verify what was shipped without trusting this file's own claim.
InterVariable.woff2
source: rsms/inter v4.1 — Inter-4.1.zip, web/InterVariable.woff2
bytes: 352240
sha256: 693b77d4f32ee9b8bfc995589b5fad5e99adf2832738661f5402f9978429a8e3
JetBrainsMono-Regular.woff2
source: JetBrains/JetBrainsMono v2.304 — JetBrainsMono-2.304.zip, fonts/webfonts/JetBrainsMono-Regular.woff2
bytes: 92164
sha256: a9cb1cd82332b23a47e3a1239d25d13c86d16c4220695e34b243effa999f45f2
Licences are alongside, verbatim from each release: OFL-Inter.txt, OFL-JetBrainsMono.txt.
Both are SIL Open Font License 1.1, which permits bundling in a binary and requires the licence to
travel with it — which is what these files are for.
Binary file not shown.
Binary file not shown.
+33
View File
@@ -1,5 +1,38 @@
@import 'tailwindcss';
/* The two faces UI-SPEC §2 names, vendored rather than fetched.
*
* `--font-sans` and `--font-mono` below have named Inter and JetBrains Mono since the tokens were
* written, and both fell through to a system fallback the whole time, because no face was ever
* registered. These are the registrations; the `@theme` block is unchanged.
*
* Committed as two files rather than added as `@fontsource-*` devDependencies: the app runs behind
* a strict CSP with no external hosts, so a CDN is not an option, and two binaries carry no
* `npm audit` surface to maintain forever. Provenance and SHA-256 for both are in
* `legal/fonts/PROVENANCE.txt`, with the OFL text beside them — SIL OFL 1.1 permits the bundling
* and requires the licence to travel with it.
*
* `font-display: swap` on purpose: the shell renders in the fallback for the first frame rather
* than showing nothing. UI-SPEC §7's "never spinners longer than 300 ms without text" is the same
* instinct — blank is worse than approximate.
*/
@font-face {
font-family: 'Inter';
font-style: normal;
/* One variable file covering the whole range, so weights need no extra requests. */
font-weight: 100 900;
font-display: swap;
src: url('./assets/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
font-family: 'JetBrains Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('./assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
}
/* Design tokens — UI-SPEC §2, "dark terminal-tech".
*
* Restrained phosphor-green on near-black, monospace where data lives, one accent doing real