Skip to content

Decide: H1/H2 font-size in header-node.svelte vs. DESIGN.md's icon-badge hierarchy #2717

Closed

Description

@mstomar125

Context

Surfaced as a flag-only item while auditing CSS transitions/animations for #2594 (not part of that issue's scope — no code was touched there).

packages/desktop-app/src/lib/design/components/header-node.svelte (around lines 151-161) sets explicit font sizes for header nodes:

.header-h1 {
  --font-size: 2rem;
  ...
}
.header-h1 :global(.node__content) {
  font-size: 2rem;
  font-weight: bold;
  ...
}
.header-h2 {
  --font-size: 1.5rem;
  ...
}

../nodespace-docs/DESIGN.md states:

Headings (H1–H3) inside the node editor use square icon badges rather than font size variation — the hierarchy is spatial, not typographic.

and in Do's and Don'ts:

Don't size type above 1.5rem in the main content area — headings are indicated by icon badges, not font scale jumps

header-node.svelte's H1 at 2rem directly contradicts both statements (H2 at 1.5rem sits right at the stated ceiling).

What needs deciding

This is a design-intent conflict, not an obvious bug — DESIGN.md may be stale/aspirational here rather than the code being wrong (the icon-badge system may not fully replace type-scale hierarchy in practice). Someone who owns DESIGN.md needs to decide one of:

  1. Update DESIGN.md to reflect that heading font-size variation is intentional (drop or revise the "no type above 1.5rem" / "spatial not typographic" language for headings), or
  2. File a follow-up to change header-node.svelte to rely on icon-badge sizing instead of font-size variation, matching DESIGN.md as written.

Scope

This issue is only to make and record that decision. No code change is implied until the decision is made and a follow-up (if needed) is scoped separately.

Activity

  1. malibio commented on Sep 25, 2026

    @malibio
    Collaborator

    Frontend baseline: 5312/5313 passed (1 failure on first run; no failures on rerun — load-flaky)

  2. self-assigned this
    on Sep 25, 2026
  3. malibio commented on Sep 25, 2026

    @malibio
    Collaborator

    Baseline correction: the 1 failure is src/tests/stores/pro-sync-settings-refresh.test.ts ('a state edge force-refetches the settings node…') — 'Hook timed out in 5000ms' during the full suite, reproducible on 2 full runs. Passes in isolation (3/3, 13ms). Pre-existing on main (first run was before any change); unrelated to header CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions