feat(chat): apply the editor's typefaces to the conversation surface
Per the 2026-11-05 owner ruling, the chat wears ProseTypography's faces: Valkyrie OT B for agent prose/thinking, Concourse OT Book for the user capsule and composer, UbuntuMono NFM for the mono voice. DesignTokens gains valkyrie/concourse/ubuntuMono constructors (Font.custom falls back to system faces when absent), and SessionTranscriptView's lineSpacings are recalibrated to each face's natural line box to hold the CSS leading ratios. AGENTS.md updated to match.
This commit is contained in:
1 parent
44978a4d4f
commit
7ed9b41256
3 files changed
+40
-22
No files matched your search
@@ -42,4 +42,22 @@ enum DesignTokens {
|
||||
/// Iowan Old Style / Charter / Georgia); mono to the system monospaced.
|
||||
static let serif: Font.Design = .serif
|
||||
static let mono: Font.Design = .monospaced
|
||||
|
||||
/// The conversation surface's faces (owner ruling, 2026-11-05): the chat
|
||||
/// wears the editor's typography (ProseTypography) — Valkyrie OT B the
|
||||
/// prose voice (agent turns, thinking), Concourse OT Book the user
|
||||
/// capsule/composer sans, UbuntuMono NFM the quiet mono voice. PostScript
|
||||
/// names mirror ProseTypography; Font.custom falls back to system faces
|
||||
/// if a name ever goes missing.
|
||||
static func valkyrie(_ size: CGFloat) -> Font {
|
||||
Font.custom("ValkyrieOTBRegular", size: size)
|
||||
}
|
||||
|
||||
static func concourse(_ size: CGFloat) -> Font {
|
||||
Font.custom("ConcourseOT3Book", size: size)
|
||||
}
|
||||
|
||||
static func ubuntuMono(_ size: CGFloat) -> Font {
|
||||
Font.custom("UbuntuMonoNFM", size: size)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user