Skip to content

Open-source design agent: on-brand stills, decks, diagrams, charts and motion graphics from a chat thread, built on Deep Agents.

Sample brand: Geist and Fragment Mono in place of Fraunces, Inter and Plex (#18)

Amal Irgashev75cc2d97a56b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0d4013e..5e98289 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,9 @@
(fonts) live in `skill-binaries/`, so `skills/` syncs to Context Hub as it is. The `deploy` and
`dev` wrappers are gone; `doctor` checks what would make `mda deploy` fail or ship the wrong
thing. The README leads with the MDA quickstart. Requires managed-deepagents 0.9.4.
+- The sample brand sets everything in Geist (Light headlines with tight tracking) with Fragment Mono
+ for labels, both OFL, in place of Fraunces, Inter and IBM Plex Mono. They are staged into each
+ sandbox with the brand, so no sandbox rebuild or republish is needed.
- The product spec moved to `docs/spec.md`.
- `langsmith:anthropic/*` and `langsmith:openai/*` models use the LangSmith Gateway's native
routes, so prompt caching, context editing, tool search and effort work through the gateway.
diff --git a/NOTICE.md b/NOTICE.md
index c35e551..b619a60 100644
--- a/NOTICE.md
+++ b/NOTICE.md
@@ -19,7 +19,7 @@ that code's MIT notice is preserved in [licenses/managed-deepagents-sdk-MIT.txt]
| LangSmith agent skills (LangChain), vendored unmodified at commit 1fb52e836f2d | `skills/langsmith-trace`, `.agents/skills/langsmith-dataset`, `.agents/skills/langsmith-evaluator` | MIT, [licenses/langsmith-skills-LICENSE.txt](licenses/langsmith-skills-LICENSE.txt) |
| Deep Agents agent skills (LangChain), vendored unmodified at commit 16a992f09ab3 | `.agents/skills/deep-agents-*`, `.agents/skills/managed-deep-agents` | MIT, [licenses/langchain-skills-LICENSE.txt](licenses/langchain-skills-LICENSE.txt) |
| HyperFrames CLI | installed in the sandbox image, not redistributed here | Apache-2.0 |
-| Inter, IBM Plex Mono, Fira Code, Fraunces | `fonts/` | SIL Open Font License 1.1, [fonts/licenses/](fonts/licenses/) |
+| Geist, Fragment Mono, Inter, IBM Plex Mono, Fira Code, Fraunces | `fonts/` | SIL Open Font License 1.1, [fonts/licenses/](fonts/licenses/) |
| Apache ECharts | installed in the sandbox image | Apache-2.0 |
| sharp, puppeteer-core | installed in the sandbox image | Apache-2.0 |
| GSAP | installed in the sandbox image, never vendored | GSAP Standard "no charge" license |
diff --git a/docs/spec.md b/docs/spec.md
index 202c6bf..e44fdf6 100644
--- a/docs/spec.md
+++ b/docs/spec.md
@@ -440,7 +440,7 @@ optional standalone snapshot publisher, the local Docker sandbox and CI:
| `hyperframes` CLI | exact version | video engine |
| `sharp`, `gsap` (installed, not vendored), `echarts` | exact versions, sha256 | stills, motion runtime, charts |
| D2 | exact version, sha256 | diagrams |
-| Open fonts (Inter, IBM Plex Mono, Fira Code, plus a display serif/sans pair for the sample brand) | sha256 | defaults and sample brand |
+| Open fonts (Inter, IBM Plex Mono, Fira Code, plus Geist and Fragment Mono for the sample brand) | sha256 | defaults and sample brand |
| fontconfig with `/workspace/fonts` registered | — | brand fonts at render time |
| python3, ripgrep, jq, woff2 tools | distro | Deep Agents file tools, scripts |
diff --git a/examples/brands/example-studio/fonts.toml b/examples/brands/example-studio/fonts.toml
index ff06a92..a37ce72 100644
--- a/examples/brands/example-studio/fonts.toml
+++ b/examples/brands/example-studio/fonts.toml
@@ -1,57 +1,40 @@
# Families the brand renders with. `file` is relative to the repository root: open fonts live in
-# fonts/ (baked into the sandbox), licensed fonts in Git-ignored private-fonts/. A required font
-# that is missing or does not match its sha256 fails `doctor`, the stager and the deploy preflight.
+# fonts/ (baked into the sandbox, or staged with the brand when the recipe does not bake them),
+# licensed fonts in Git-ignored private-fonts/. A required font that is missing or does not match
+# its sha256 fails `doctor` and the stager.
[[fonts]]
-family = "Fraunces"
+family = "Geist"
weight = "100 900"
style = "normal"
-file = "fonts/Fraunces-Variable.ttf"
-sha256 = "177ff6c0f14e5550a3c624247cd1189611d4eb65d000b14944c63d967958abbb"
+file = "fonts/Geist-Variable.ttf"
+sha256 = "73894e0448cae90a92b6c2f8732b7bb9acb7b94c418bff559dad4a18e1de9659"
required = true
license = "OFL-1.1"
[[fonts]]
-family = "Fraunces"
+family = "Geist"
weight = "100 900"
style = "italic"
-file = "fonts/Fraunces-Italic-Variable.ttf"
-sha256 = "b24448c43702fac4ee856781d461a0dfba8d8e594b6e8e190234b75fed2c0e01"
+file = "fonts/Geist-Italic-Variable.ttf"
+sha256 = "a464348abe41a6392f18d04c0ac2ad3c26619357ff5fdd76aff3059116f45e62"
required = false
license = "OFL-1.1"
[[fonts]]
-family = "Inter"
-weight = "100 900"
-style = "normal"
-file = "fonts/Inter-Variable.ttf"
-sha256 = "29160a80ff49ddcab2c97711247e08b1fab27a484a329ce8b813d820dc559031"
-required = true
-license = "OFL-1.1"
-
-[[fonts]]
-family = "Inter"
-weight = "100 900"
-style = "italic"
-file = "fonts/Inter-Italic-Variable.ttf"
-sha256 = "acd98e64795781b2058f07b18475e0ecee2a0fe2b42a49e2f9e37d0d6bf66ce6"
-required = false
-license = "OFL-1.1"
-
-[[fonts]]
-family = "IBM Plex Mono"
+family = "Fragment Mono"
weight = "400"
style = "normal"
-file = "fonts/IBMPlexMono-Regular.ttf"
-sha256 = "6a3412f058c7d8dfd9170c41e85ade48e5156ecb89356110ca57a0a27734af46"
+file = "fonts/FragmentMono-Regular.ttf"
+sha256 = "0fe011f425873c2e0fc73a189e394e340ad48d2b9a99a576bdeec75cee000460"
required = true
license = "OFL-1.1"
[[fonts]]
-family = "IBM Plex Mono"
-weight = "500"
-style = "normal"
-file = "fonts/IBMPlexMono-Medium.ttf"
-sha256 = "a9b4c49bb299e05b5f6c481e7fb5e78943d2793249a0c8874ab574a2d1ea6755"
+family = "Fragment Mono"
+weight = "400"
+style = "italic"
+file = "fonts/FragmentMono-Italic.ttf"
+sha256 = "c9dd3c7b24c11ba05ab1a6ec3a659c823f0e14fb26c14df0e93e82ebb60f3a25"
required = false
license = "OFL-1.1"
diff --git a/examples/brands/example-studio/graphic-language.md b/examples/brands/example-studio/graphic-language.md
index beaa6bd..3d814ef 100644
--- a/examples/brands/example-studio/graphic-language.md
+++ b/examples/brands/example-studio/graphic-language.md
@@ -16,8 +16,9 @@ ideas, so a reader knows where to look before they read anything.
- Grid: 8 px. Margins at least 8% of the frame's short edge. Text and shapes sit on the grid.
- Strokes: 2 px (`--brand-stroke`) for connectors and rules; the mark's own frame is heavier.
- Corners: 4, 8 or 12 px. A frame inside a frame steps down one size.
-- Type: Fraunces 600 for headlines (tight leading, about 1.05), Inter for everything else, IBM
- Plex Mono only for code, data and file names, with letter-spacing 0.
+- Type: one grotesk, Geist. Headlines in Geist Light (300), large, with tight tracking (-0.02em)
+ and leading about 1.0; text in Geist Regular; weight changes, not new faces, carry hierarchy.
+ Fragment Mono only for code, data, sizes and file names, with letter-spacing 0.
- Color: grounds are paper, ink or white. Moss, sky and sand fill shapes inside a frame. Chart
series use the extended tints in order; the signal color is never a series.
- Diagrams: concept first. Draw the specific mechanism (what flows where, what changes) and label
diff --git a/examples/brands/example-studio/tokens.css b/examples/brands/example-studio/tokens.css
index cc1d24e..c82a697 100644
--- a/examples/brands/example-studio/tokens.css
+++ b/examples/brands/example-studio/tokens.css
@@ -9,15 +9,16 @@
--brand-color-signal: #ff5a36;
--brand-color-sky: #8bb8e8;
--brand-color-white: #ffffff;
- --brand-font-display: "Fraunces", "Georgia", serif;
- --brand-font-mono: "IBM Plex Mono", "Fira Code", ui-monospace, monospace;
- --brand-font-text: "Inter", system-ui, sans-serif;
+ --brand-font-display: "Geist", system-ui, sans-serif;
+ --brand-font-mono: "Fragment Mono", "Fira Code", ui-monospace, monospace;
+ --brand-font-text: "Geist", system-ui, sans-serif;
--brand-radius-lg: 12px;
--brand-radius-md: 8px;
--brand-radius-sm: 4px;
--brand-space-unit: 8px;
--brand-stroke: 2px;
- --brand-weight-display: 600;
- --brand-weight-strong: 600;
+ --brand-tracking-display: -0.02em;
+ --brand-weight-display: 300;
+ --brand-weight-strong: 500;
--brand-weight-text: 400;
}
diff --git a/examples/brands/example-studio/tokens.json b/examples/brands/example-studio/tokens.json
index dd245d0..4237327 100644
--- a/examples/brands/example-studio/tokens.json
+++ b/examples/brands/example-studio/tokens.json
@@ -34,9 +34,8 @@
"--brand-font-display",
"--brand-font-text",
"--brand-font-mono",
- "Fraunces",
- "Inter",
- "IBM Plex Mono",
+ "Geist",
+ "Fragment Mono",
"Fira Code"
],
"knownOffBrandFonts": [
@@ -54,9 +53,9 @@
"Lato"
],
"fontStacks": {
- "display": ["Fraunces", "Georgia", "serif"],
- "text": ["Inter", "system-ui", "sans-serif"],
- "mono": ["IBM Plex Mono", "Fira Code", "ui-monospace", "monospace"]
+ "display": ["Geist", "system-ui", "sans-serif"],
+ "text": ["Geist", "system-ui", "sans-serif"],
+ "mono": ["Fragment Mono", "Fira Code", "ui-monospace", "monospace"]
},
"maxRectRadiusPx": 12,
"creativeTypography": {
@@ -91,14 +90,15 @@
"--brand-radius-lg": "12px",
"--brand-space-unit": "8px",
"--brand-stroke": "2px",
- "--brand-weight-display": "600",
+ "--brand-weight-display": "300",
"--brand-weight-text": "400",
- "--brand-weight-strong": "600"
+ "--brand-weight-strong": "500",
+ "--brand-tracking-display": "-0.02em"
},
"rules": [
"One signal-colored element per frame: it is where the eye goes first.",
"Grounds are paper, ink or white. Moss, sky and sand are fields inside a frame, never the whole frame.",
- "Headlines in Fraunces 600; everything else in Inter. Mono only for code, data and file names.",
+ "Headlines in Geist Light (300) with tracking -0.02em; everything else in Geist. Fragment Mono only for code, data, sizes and file names.",
"Margins are at least 8% of the frame's short edge.",
"Corners are 4, 8 or 12 px. Nothing rounder.",
"Text sits on the 8 px grid and aligns left unless the format centers it."
diff --git a/fonts/FragmentMono-Italic.ttf b/fonts/FragmentMono-Italic.ttf
new file mode 100644
index 0000000..f3bd580
Binary files /dev/null and b/fonts/FragmentMono-Italic.ttf differ
diff --git a/fonts/FragmentMono-Regular.ttf b/fonts/FragmentMono-Regular.ttf
new file mode 100644
index 0000000..863b0cc
Binary files /dev/null and b/fonts/FragmentMono-Regular.ttf differ
diff --git a/fonts/Geist-Italic-Variable.ttf b/fonts/Geist-Italic-Variable.ttf
new file mode 100644
index 0000000..63c3c6c
Binary files /dev/null and b/fonts/Geist-Italic-Variable.ttf differ
diff --git a/fonts/Geist-Variable.ttf b/fonts/Geist-Variable.ttf
new file mode 100644
index 0000000..f63f0af
Binary files /dev/null and b/fonts/Geist-Variable.ttf differ
diff --git a/fonts/LICENSES.md b/fonts/LICENSES.md
index 2144106..34ad7b2 100644
--- a/fonts/LICENSES.md
+++ b/fonts/LICENSES.md
@@ -1,8 +1,9 @@
# Open fonts
Every font in this folder is licensed under the SIL Open Font License 1.1. The license texts are in
-[`licenses/`](licenses/). The same files, by sha256, are baked into the sandbox by
-`sandbox/setup.sh` from `google/fonts` at commit `47d54ca1ebb14fd864695f1d39dc734f39017c33`.
+[`licenses/`](licenses/). All come from `google/fonts` at commit
+`47d54ca1ebb14fd864695f1d39dc734f39017c33`. Most are baked into the sandbox by `sandbox/setup.sh`;
+Geist and Fragment Mono, the sample brand's faces, are staged into each sandbox with the brand.
| File | Family | Copyright | License |
| --- | --- | --- | --- |
@@ -10,6 +11,8 @@ Every font in this folder is licensed under the SIL Open Font License 1.1. The l
| `IBMPlexMono-Regular.ttf`, `IBMPlexMono-Medium.ttf`, `IBMPlexMono-SemiBold.ttf`, `IBMPlexMono-Bold.ttf` | IBM Plex Mono | IBM Corp., Reserved Font Name "Plex" | [OFL-1.1](licenses/IBMPlexMono-OFL.txt) |
| `FiraCode-Variable.ttf` | Fira Code | The Fira Code Project Authors | [OFL-1.1](licenses/FiraCode-OFL.txt) |
| `Fraunces-Variable.ttf`, `Fraunces-Italic-Variable.ttf` | Fraunces | The Fraunces Project Authors | [OFL-1.1](licenses/Fraunces-OFL.txt) |
+| `Geist-Variable.ttf`, `Geist-Italic-Variable.ttf` | Geist | The Geist Project Authors | [OFL-1.1](licenses/Geist-OFL.txt) |
+| `FragmentMono-Regular.ttf`, `FragmentMono-Italic.ttf` | Fragment Mono | The Fragment-Mono Project Authors | [OFL-1.1](licenses/FragmentMono-OFL.txt) |
Licensed fonts are never committed. Put them in the Git-ignored `private-fonts/` folder and declare
them in your brand pack's `fonts.toml`; see [docs/customization.md](../docs/customization.md#brand).
diff --git a/fonts/licenses/FragmentMono-OFL.txt b/fonts/licenses/FragmentMono-OFL.txt
new file mode 100644
index 0000000..02349dd
--- /dev/null
+++ b/fonts/licenses/FragmentMono-OFL.txt
@@ -0,0 +1,93 @@
+Copyright 2022 The Fragment-Mono Project Authors (https://github.com/weiweihuanghuang/fragment-mono)
+
+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.
diff --git a/fonts/licenses/Geist-OFL.txt b/fonts/licenses/Geist-OFL.txt
new file mode 100644
index 0000000..61f6f4b
--- /dev/null
+++ b/fonts/licenses/Geist-OFL.txt
@@ -0,0 +1,93 @@
+Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
+
+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://openfontlicense.org
+
+
+-----------------------------------------------------------
+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.
\ No newline at end of file
diff --git a/skills/stills/SKILL.md b/skills/stills/SKILL.md
index f932045..ec2a022 100644
--- a/skills/stills/SKILL.md
+++ b/skills/stills/SKILL.md
@@ -11,7 +11,7 @@ it, the brand pack styles it, and every size is its own layout rather than a sca
```bash
node /workspace/tools/html2png.mjs projects/<slug>/still/comp.html --out projects/<slug>/renders \
--name launch --size 1200x627 --size 1080x1080 --size 1080x1350 \
- --require-font Fraunces --require-font Inter [--format png|jpeg|webp] [--quality 90] [--scale 2]
+ --require-font "<display family>" --require-font "<text family>" [--format png|jpeg|webp] [--quality 90] [--scale 2]
node /workspace/tools/html2pdf.mjs --html projects/<slug>/doc/doc.html --out projects/<slug>/renders/doc.pdf \
--size 8.5x11in --brand-fonts
```
diff --git a/src/design_agent/testing/demo_script.py b/src/design_agent/testing/demo_script.py
index 82d1fca..870b619 100644
--- a/src/design_agent/testing/demo_script.py
+++ b/src/design_agent/testing/demo_script.py
@@ -92,7 +92,7 @@ def still_steps() -> list[Step]:
{
"command": (
f"node /workspace/tools/html2png.mjs {PROJECT}/card.html --out {PROJECT}/renders "
- f'--name card {sizes} --require-font "Fraunces" --require-font "Inter"'
+ f'--name card {sizes} --require-font "Geist" --require-font "Fragment Mono"'
),
"timeout": 300,
},
diff --git a/tests/fixtures/gates/brand/fail/font-lead.html b/tests/fixtures/gates/brand/fail/font-lead.html
index 507fd8f..31d8942 100644
--- a/tests/fixtures/gates/brand/fail/font-lead.html
+++ b/tests/fixtures/gates/brand/fail/font-lead.html
@@ -5,7 +5,7 @@
<title>Fixture</title>
<style>
body { margin: 0; background: #f6f1e7; color: #14161a; font-family: var(--brand-font-text); }
- .headline { font-family: "Georgia", "Fraunces", serif; font-size: 48px; }
+ .headline { font-family: "Georgia", "Geist", serif; font-size: 48px; }
</style>
</head>
<body>
diff --git a/tests/fixtures/gates/brand/fail/mono-lead.html b/tests/fixtures/gates/brand/fail/mono-lead.html
index 766cddf..3121bb0 100644
--- a/tests/fixtures/gates/brand/fail/mono-lead.html
+++ b/tests/fixtures/gates/brand/fail/mono-lead.html
@@ -5,7 +5,7 @@
<title>Fixture</title>
<style>
body { margin: 0; background: #f6f1e7; color: #14161a; font-family: var(--brand-font-text); }
- .file { font-family: "Fira Code", "IBM Plex Mono", monospace; letter-spacing: 0; font-size: 24px; }
+ .file { font-family: "Fira Code", "Fragment Mono", monospace; letter-spacing: 0; font-size: 24px; }
</style>
</head>
<body>
diff --git a/tests/fixtures/gates/brand/still.css b/tests/fixtures/gates/brand/still.css
index 17e80ca..aa042a6 100644
--- a/tests/fixtures/gates/brand/still.css
+++ b/tests/fixtures/gates/brand/still.css
@@ -5,9 +5,9 @@
--brand-color-signal: #ff5a36;
--brand-color-graphite: #4a4f57;
--brand-color-sand: #e8dcc4;
- --brand-font-display: "Fraunces", "Georgia", serif;
- --brand-font-text: "Inter", system-ui, sans-serif;
- --brand-font-mono: "IBM Plex Mono", "Fira Code", ui-monospace, monospace;
+ --brand-font-display: "Geist", system-ui, sans-serif;
+ --brand-font-text: "Geist", system-ui, sans-serif;
+ --brand-font-mono: "Fragment Mono", "Fira Code", ui-monospace, monospace;
--brand-radius-md: 8px;
}
diff --git a/tests/fixtures/gates/video/blank-gap.html b/tests/fixtures/gates/video/blank-gap.html
index 2193d75..64ef948 100644
--- a/tests/fixtures/gates/video/blank-gap.html
+++ b/tests/fixtures/gates/video/blank-gap.html
@@ -25,7 +25,7 @@
top: 360px;
margin: 0;
color: #14161a;
- font-family: "Fraunces", serif;
+ font-family: "Geist", sans-serif;
font-weight: 600;
font-size: 120px;
}
@@ -35,7 +35,7 @@
top: 540px;
margin: 0;
color: #4a4f57;
- font-family: "Inter", sans-serif;
+ font-family: "Geist", sans-serif;
font-size: 44px;
}
</style>
diff --git a/tests/fixtures/gates/video/clean.html b/tests/fixtures/gates/video/clean.html
index 9af90dd..9c407f5 100644
--- a/tests/fixtures/gates/video/clean.html
+++ b/tests/fixtures/gates/video/clean.html
@@ -25,7 +25,7 @@
top: 360px;
margin: 0;
color: #14161a;
- font-family: "Fraunces", serif;
+ font-family: "Geist", sans-serif;
font-weight: 600;
font-size: 120px;
}
@@ -35,7 +35,7 @@
top: 540px;
margin: 0;
color: #4a4f57;
- font-family: "Inter", sans-serif;
+ font-family: "Geist", sans-serif;
font-size: 44px;
}
#bar {
diff --git a/tests/fixtures/media/data-viz.test.mjs b/tests/fixtures/media/data-viz.test.mjs
index ba6940f..e26690d 100644
--- a/tests/fixtures/media/data-viz.test.mjs
+++ b/tests/fixtures/media/data-viz.test.mjs
@@ -90,7 +90,7 @@ test("brand roles come from the brand pack's palette, with readable text", () =>
assert.ok(!theme.series.includes(theme.accent), "the accent is never a series colour");
assert.ok(contrast(theme.ink, theme.ground) >= 7);
assert.ok(contrast(theme.muted, theme.ground) >= 4.5);
- assert.match(theme.fonts.display, /^'Fraunces'/);
+ assert.match(theme.fonts.display, /^'Geist'/);
assert.throws(() => brandTheme(tokens, { roles: { ground: "--brand-color-nope" } }), /unknown token/);
});
diff --git a/tests/render/test_gates_render.py b/tests/render/test_gates_render.py
index 4f6fffa..fb12139 100644
--- a/tests/render/test_gates_render.py
+++ b/tests/render/test_gates_render.py
@@ -55,6 +55,8 @@ def sandbox_in(out: Path) -> Sandbox:
mounts = [
f"{ROOT / 'workspace' / 'tools'}:/workspace/tools:ro",
f"{ROOT / 'examples' / 'brands' / 'example-studio'}:/workspace/brand:ro",
+ # The sample brand's fonts are staged, not baked, as the workspace stager does.
+ f"{ROOT / 'fonts'}:/workspace/fonts:ro",
f"{ROOT / 'tests' / 'fixtures' / 'gates'}:/workspace/fixtures:ro",
f"{out}:/workspace/out",
]
@@ -102,7 +104,7 @@ def three_sizes(
sizes = " ".join(f"--size {w}x{h}" for w, h in SIZES)
proc = sandbox_in(out)(
f"node tools/html2png.mjs fixtures/brand/clean.html --out out --name clean {sizes} "
- '--require-font "Fraunces" --require-font "Inter" --brand-fonts'
+ '--require-font "Geist" --require-font "Fragment Mono" --brand-fonts'
)
return out, proc
@@ -116,7 +118,7 @@ def test_html2png_renders_each_size_with_brand_fonts(
assert proc.returncode == 0, proc.stderr
report = last_json(proc)
assert report["ok"] is True
- assert report["fonts"] == {"Fraunces": True, "Inter": True, "IBM Plex Mono": True}
+ assert report["fonts"] == {"Geist": True, "Fragment Mono": True}
assert [(o["path"], o["width"], o["height"]) for o in report["outputs"]] == [
(f"/workspace/out/clean-{w}x{h}.png", w, h) for w, h in SIZES
]
diff --git a/tests/render/test_media_render.py b/tests/render/test_media_render.py
index 4b8412a..1a61f87 100644
--- a/tests/render/test_media_render.py
+++ b/tests/render/test_media_render.py
@@ -47,6 +47,9 @@ STAGE = (
"cp -r /repo/examples/brands/example-studio/. /workspace/brand/\n"
f"for s in {' '.join(SKILLS)}; do cp -r /repo/skills/$s /workspace/skills/; done\n"
"cp -r /repo/workspace/tools/. /workspace/tools/\n"
+ # The sample brand's fonts are staged, not baked, as the workspace stager does at run time.
+ "mkdir -p /workspace/fonts && cp /repo/fonts/Geist-*.ttf /repo/fonts/FragmentMono-*.ttf /workspace/fonts/\n"
+ "fc-cache -f >/dev/null 2>&1 || true\n"
"cd /workspace\n"
"set +e\n"
)
@@ -137,7 +140,7 @@ def test_echarts_bar_renders_svg_and_png_in_brand_colours_only(
assert SIGNAL in colours, "the highlighted bar carries the accent"
for text in ("Minutes to finish one ad set", "34 min", "One HTML page per size", "Apr"):
assert text in svg
- assert "Fraunces" in svg and "Inter" in svg
+ assert "Geist" in svg
png = tmp_path / "projects/t/bar.png"
with Image.open(png) as image:
assert image.size == (3200, 1800)
diff --git a/tests/unit/test_brand_schema.py b/tests/unit/test_brand_schema.py
index c07422e..2dadc74 100644
--- a/tests/unit/test_brand_schema.py
+++ b/tests/unit/test_brand_schema.py
@@ -24,7 +24,7 @@ def pack_copy(tmp_path: Path) -> Path:
def test_sample_brand_is_valid_and_complete() -> None:
pack = load_brand_pack(SAMPLE, project_root=ROOT)
assert pack.brand.name == "Example Studio"
- assert pack.required_families() == ("Fraunces", "IBM Plex Mono", "Inter")
+ assert pack.required_families() == ("Fragment Mono", "Geist")
assert {f.slug for f in pack.brand.formats} >= {"linkedin-portrait", "square", "landscape"}
assert pack.brand.license == "CC0-1.0"
@@ -37,7 +37,7 @@ def test_committed_tokens_css_is_current() -> None:
def test_tokens_css_carries_every_token_and_font_stack() -> None:
css = render_tokens_css(load_brand_pack(SAMPLE, project_root=ROOT))
assert "--brand-color-signal: #ff5a36;" in css
- assert '--brand-font-display: "Fraunces", "Georgia", serif;' in css
+ assert '--brand-font-display: "Geist", system-ui, sans-serif;' in css
assert "--brand-font-mono:" in css
@@ -84,7 +84,7 @@ def test_font_checksum_mismatch_fails(pack_copy: Path) -> None:
fonts = (
(pack_copy / "fonts.toml")
.read_text()
- .replace("29160a80ff49ddcab2c97711247e08b1fab27a484a329ce8b813d820dc559031", "0" * 64)
+ .replace("73894e0448cae90a92b6c2f8732b7bb9acb7b94c418bff559dad4a18e1de9659", "0" * 64)
)
(pack_copy / "fonts.toml").write_text(fonts)
with pytest.raises(BrandPackError, match="sha256 does not match"):
diff --git a/tests/unit/test_cli_commands.py b/tests/unit/test_cli_commands.py
index ebc22ca..5252c08 100644
--- a/tests/unit/test_cli_commands.py
+++ b/tests/unit/test_cli_commands.py
@@ -44,11 +44,11 @@ def test_fonts_verify_catches_a_family_the_file_does_not_carry(project: Path) ->
pack = project / "examples/brands/example-studio"
for name in ("fonts.toml", "tokens.json"):
text = (pack / name).read_text()
- assert '"Fraunces"' in text
- (pack / name).write_text(text.replace('"Fraunces"', '"Fraunces Display"'))
+ assert '"Geist"' in text
+ (pack / name).write_text(text.replace('"Geist"', '"Geist Display"'))
result = CliRunner().invoke(cli.main, ["fonts", "verify"])
assert result.exit_code == 1
- assert 'says family "Fraunces Display", the file says "Fraunces"' in result.output
+ assert 'says family "Geist Display", the file says "Geist"' in result.output
def test_sandbox_use_points_local_runs_at_a_snapshot(project: Path) -> None:
diff --git a/tests/unit/test_gates.py b/tests/unit/test_gates.py
index 3c342f2..dc19a33 100644
--- a/tests/unit/test_gates.py
+++ b/tests/unit/test_gates.py
@@ -194,7 +194,7 @@ def test_brand_lint_suggests_sentence_case_for_shouted_copy() -> None:
def test_brand_lint_mono_lead_comes_from_the_brand_stack() -> None:
_, report = lint("brand/fail/mono-lead.html")
(finding,) = [f for f in report["findings"] if f["rule"] == "font.mono-lead"]
- assert '"IBM Plex Mono"' in finding["message"]
+ assert '"Fragment Mono"' in finding["message"]
assert "var(--brand-font-mono)" in finding["message"]
@@ -223,7 +223,7 @@ def test_brand_lint_reads_every_fact_from_the_tokens(tmp_path: Path) -> None:
tokens["design"]["bannedColors"]["colors"].remove("#000000")
del tokens["design"]["replacementColors"]["#000000"]
tokens["design"]["allowedColors"].append("#000000")
- tokens["design"]["fontStacks"]["mono"] = ["Fira Code", "IBM Plex Mono", "monospace"]
+ tokens["design"]["fontStacks"]["mono"] = ["Fira Code", "Fragment Mono", "monospace"]
tokens["copy"]["casingRules"]["headlines"] = "any"
other = tmp_path / "tokens.json"
other.write_text(json.dumps(tokens))
diff --git a/tests/unit/test_workspace_stager.py b/tests/unit/test_workspace_stager.py
index 558d19e..4caee8a 100644
--- a/tests/unit/test_workspace_stager.py
+++ b/tests/unit/test_workspace_stager.py
@@ -52,9 +52,19 @@ def test_manifest_stages_skills_tools_and_brand(checkout: Path) -> None:
def test_baked_open_fonts_are_not_uploaded_again(checkout: Path) -> None:
- assert not [
+ """The sample brand's faces are open but not baked, so they are staged; nothing baked is."""
+ from design_agent.workspace.manifest import BAKED_FONT_SHA256
+
+ fonts = [
a for a in _manifest(checkout).assets if str(a.destination).startswith("/workspace/fonts/")
]
+ assert {a.destination.name for a in fonts} == {
+ "Geist-Variable.ttf",
+ "Geist-Italic-Variable.ttf",
+ "FragmentMono-Regular.ttf",
+ "FragmentMono-Italic.ttf",
+ }
+ assert not [a for a in fonts if a.sha256 in BAKED_FONT_SHA256]
def test_a_non_baked_brand_font_is_staged(checkout: Path) -> None:
@@ -67,7 +77,7 @@ def test_a_non_baked_brand_font_is_staged(checkout: Path) -> None:
fonts = checkout / "examples/brands/example-studio/fonts.toml"
fonts.write_text(
fonts.read_text()
- + f'\n[[fonts]]\nfamily = "Inter"\nweight = "400"\nfile = "private-fonts/House-Regular.otf"\nsha256 = "{sha}"\nrequired = true\nlicense = "commercial"\n'
+ + f'\n[[fonts]]\nfamily = "Geist"\nweight = "400"\nfile = "private-fonts/House-Regular.otf"\nsha256 = "{sha}"\nrequired = true\nlicense = "commercial"\n'
)
staged = {str(a.destination) for a in _manifest(checkout).assets}
assert "/workspace/fonts/House-Regular.otf" in staged
@@ -142,7 +152,7 @@ def test_cold_sandbox_uploads_once_and_runs_one_script(checkout: Path) -> None:
"/tmp/design-agent-check-"
)
script = target.commands[0]
- assert "fc-match" in script and "Fraunces" in script and "'IBM Plex Mono'" in script
+ assert "fc-match" in script and "Geist" in script and "'Fragment Mono'" in script
assert MARKER in script
diff --git a/workspace/tools/README.md b/workspace/tools/README.md
index 62b260e..fee20ee 100644
--- a/workspace/tools/README.md
+++ b/workspace/tools/README.md
@@ -37,11 +37,11 @@ as "not passed".
```bash
node /workspace/tools/html2png.mjs page.html --out out --name post \
--size 1080x1350 --size 1080x1080 --size 1600x900 [--format png|jpeg|webp] [--quality 90] \
- [--scale 1] [--require-font "Fraunces" ...] [--brand-fonts [--tokens <tokens.json>]]
+ [--scale 1] [--require-font "Geist" ...] [--brand-fonts [--tokens <tokens.json>]]
```
Writes `out/post-<W>x<H>.<ext>` per size and prints one JSON line:
-`{"ok":true,"outputs":[{"path","width","height","bytes"}],"fonts":{"Fraunces":true}}`. Each size is a
+`{"ok":true,"outputs":[{"path","width","height","bytes"}],"fonts":{"Geist":true}}`. Each size is a
fresh load at that viewport, so the layout recomposes (media queries, `vw`/`vh`); it is never a scaled
copy. `--scale 2` doubles the pixel size. A browser never fails on a missing font, it falls back, so
every `--require-font` family (and with `--brand-fonts`, the lead face of each brand font stack) must
diff --git a/workspace/tools/brand-lint.mjs b/workspace/tools/brand-lint.mjs
index 7657593..086e7e8 100644
--- a/workspace/tools/brand-lint.mjs
+++ b/workspace/tools/brand-lint.mjs
@@ -151,7 +151,7 @@ const CSS_WIDE = new Set(["inherit", "initial", "unset", "revert", "revert-layer
const monoFamilies = new Set([...lower(stacks.mono), "monospace", "ui-monospace", "menlo", "monaco", "consolas", "sf mono", "courier", "courier new"]);
const MONO_TOKEN = /var\(\s*--brand-font-mono\s*\)/i;
const BRAND_FONT_TOKEN = /var\(\s*--brand-font-(?:display|text|mono)\s*\)/i;
-/** `"IBM Plex Mono", Fira Code, monospace` -> ["IBM Plex Mono", "Fira Code", "monospace"]. */
+/** `"Fragment Mono", Fira Code, monospace` -> ["Fragment Mono", "Fira Code", "monospace"]. */
const fontFamilies = (value) =>
value
.replace(/!important/gi, "")
diff --git a/workspace/tools/html2pdf.mjs b/workspace/tools/html2pdf.mjs
index af7efb8..0d8ced7 100644
--- a/workspace/tools/html2pdf.mjs
+++ b/workspace/tools/html2pdf.mjs
@@ -13,7 +13,7 @@
*
* Usage:
* node /workspace/tools/html2pdf.mjs --html deck.html --out out/deck.pdf [--size 8.5x11in] [--zoom N]
- * [--require-font "Fraunces" ...] [--brand-fonts [--tokens <tokens.json>]]
+ * [--require-font "Geist" ...] [--brand-fonts [--tokens <tokens.json>]]
*
* --zoom is an opt-in fallback, off by default: it lays the page out N x larger and prints at 1/N,
* which also shrinks the rounding step but reflows anything sized in vw/vh. Use it only if the audit
diff --git a/workspace/tools/html2png.mjs b/workspace/tools/html2png.mjs
index c8b17eb..33b0f39 100644
--- a/workspace/tools/html2png.mjs
+++ b/workspace/tools/html2png.mjs
@@ -3,7 +3,7 @@
//
// node /workspace/tools/html2png.mjs <page.html> --out <dir> [--name <stem>] --size 1080x1350
// [--size 1080x1080 ...] [--format png|jpeg|webp] [--quality 90] [--scale 1]
-// [--require-font "Fraunces" ...] [--brand-fonts [--tokens <tokens.json>]] [--timeout 30000]
+// [--require-font "Geist" ...] [--brand-fonts [--tokens <tokens.json>]] [--timeout 30000]
//
// Writes <dir>/<stem>-<W>x<H>.<ext> per size (stem defaults to the page's file name) and prints one
// JSON line: {"ok", "outputs": [{path, width, height, bytes}], "fonts": {family: bool}, ...}.