Skip to content

Apply Claude-style two-font typography#460

Merged
realproject7 merged 2 commits intomainfrom
task/261-claude-style-typography
Mar 23, 2026
Merged

Apply Claude-style two-font typography#460
realproject7 merged 2 commits intomainfrom
task/261-claude-style-typography

Conversation

@realproject7
Copy link
Copy Markdown
Owner

@realproject7 realproject7 commented Mar 23, 2026

Summary

  • Adds Inter (Google Fonts, sans-serif) for UI elements: nav, footer, buttons, inputs, form controls
  • Keeps Lora (serif) for content: body text, headings, story prose
  • Defines --font-ui CSS variable in the Tailwind @theme block and a .font-ui utility class
  • UI element rule references var(--font-ui) for single-point revert
  • Revert point clearly documented in globals.css — change --font-ui back to Lora stack to restore previous single-font system

Fixes #458

Typography mapping

Element Font Family
Body text, headings, prose Lora Serif
Nav, footer, buttons, inputs, labels Inter Sans-serif
Code, addresses, contract data Geist Mono Monospace

Test plan

  • Verify NavBar and Footer render in Inter (sans-serif)
  • Verify story content and headings render in Lora (serif)
  • Verify buttons and form inputs use Inter
  • Verify responsive layout unchanged on mobile and desktop
  • Verify .font-ui utility class applies Inter when needed

🤖 Generated with Claude Code

Adds Inter (Google Fonts) as the sans-serif UI font alongside Lora
(serif) for content. The two-font system follows Claude's approach:
- Serif (Lora): body text, headings, story content
- Sans-serif (Inter): nav, footer, buttons, inputs, labels, form elements

Revert point documented in globals.css @theme block — restore all
--font-ui references to --font-lora to revert.

Fixes #261

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #460 Review — Two-Font Typography

1. Issue Mismatch (BLOCKING)

Issue #261 is about a royalty ABI mismatch bug, not typography. Fixes #261 will auto-close the wrong issue on merge. The correct issue number must be referenced, or a new issue should be created for the typography work.

2. Inter Loading via Google Fonts — PASS

Inter is correctly loaded through next/font/google in layout.tsx following the exact same pattern as existing Lora and Geist Mono fonts. CSS variable injected on <body>. Correct.

3. Font Assignments — PASS (with note)

The mapping is logical:

  • Serif (Lora): body, headings, prose — unchanged
  • Sans-serif (Inter): nav, footer, button, input, select, textarea, label, .font-ui
  • Monospace (Geist Mono): code, pre — unchanged

Note: The --font-ui CSS variable is defined in @theme but never actually used — the element rule hardcodes var(--font-inter), "Inter", system-ui, ... directly instead of referencing var(--font-ui). This means changing --font-ui won't affect the element styles. The element rule should use font-family: var(--font-ui) to make the variable useful and simplify future reverts.

4. Revert Point — PASS

Revert comment in globals.css is clear and adequate.

5. CSS Pattern Compliance — PASS

New rules follow existing patterns (heading/monospace rules). Placement is logical.


Verdict: REQUEST CHANGES

Blocking:

  1. Fix the issue reference — Fixes #261 points to a royalty ABI bug, not typography.

Non-blocking:
2. Use var(--font-ui) in the element rule instead of repeating the full Inter fallback stack, so the CSS variable actually serves its purpose.

🤖 Generated with Claude Code

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The typography implementation is narrowly scoped, but the PR is linked to the wrong issue number for this repository.

Findings

  • [medium] PR body references the wrong issue number for this repo
    • File: PR metadata
    • Suggestion: Replace Fixes #261 with the correct issue reference for the typography task in realproject7/plotlink, or remove the closing keyword if the task is tracked outside this repo. In plotlink, #261 is a closed royalty ABI bug, so the current link points to unrelated work.

Decision

Requesting changes because the repository issue linkage is incorrect and should be fixed before merge.

Addresses review feedback: the UI font rule now references var(--font-ui)
for consistency and easier revert.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The issue reference is corrected, the typography change remains focused, and the updated UI font rule now uses var(--font-ui) as the single-point revert hook.

Findings

  • None.

Decision

Approving because the PR is correctly linked, the implementation is coherent, and CI is green.

@realproject7 realproject7 merged commit 694a630 into main Mar 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Design] Apply Claude-style typography system

2 participants