Skip to content

chore(theme): drop the unused --text-display token #103

Description

@yigitdot

Background

app/globals.css's @theme inline block defines --text-display: clamp(3.5rem, 14vw, 12.5rem) but nothing references it — grep for text-display / --text-display across app/, components/, lib/, content/ finds only the declaration. It's been dead since before #101 (it was --fs-display then; #101 just renamed it along with the rest of the scale for namespace coherence — see the review note). Tailwind v4 won't even emit a text-display utility because it's never used in a class.

Options

  1. Delete it — one-line removal from the @theme inline block. Simplest; the scale loses one rung but no behaviour changes.
  2. Wire it up — if there's an intended "display" headline size larger than --text-h1 that we want on the books, find/define the call site and use text-display. (No such call site exists today, and chore(theme): migrate footer to Tailwind theme utilities #76/feat(blog): redesign the index and post pages as a "field-log" table #99/fix(blog): capitalize post headings, center body, tighten heading rhythm #100's redesigns didn't introduce one, so this seems unlikely.)

Recommendation: option 1 unless someone has a near-term use for a display-size token.

Links

Activity

  1. github-actions commented on May 13, 2026

    @github-actions

    🎯 Agentic Issue Triage

    Summary: Remove the unused --text-display CSS custom property from app/globals.css's @theme inline block. The token has no call sites and Tailwind v4 never emits a utility for it — it's dead code.

    Analysis

    Type: Chore / dead-code cleanup
    Scope: Single-line deletion in app/globals.css
    Risk: None — no component, MDX file, or stylesheet references text-display or --text-display
    Related: Sibling cleanup issue #102 (layout token promotion); both stem from the PR #101 rename pass

    Suggested implementation

    Option 1 (recommended): delete the declaration from @theme inline:

    - --text-display: clamp(3.5rem, 14vw, 12.5rem);

    That's the entire change. No import, no component, no test needs touching.

    Verify with:

    grep -r "text-display\|--text-display" app/ components/ lib/ content/
    # should return no results after the deletion
    pnpm lint && pnpm exec tsc --noEmit && pnpm build
    Sub-tasks checklist
    • Delete --text-display: clamp(3.5rem, 14vw, 12.5rem); from app/globals.css @theme inline
    • Run grep -r "text-display" app/ components/ lib/ content/ to confirm zero remaining references
    • Run pnpm lint && pnpm exec tsc --noEmit && pnpm build to confirm clean build
    • Open PR referencing this issue (conventional commit: chore(theme): drop unused --text-display token)
    Resources

    Generated by Agentic Triage for issue #103 · ● 1.3M · ◷

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/issue-triage.md@c7d030cd6d4607b90d9ac3ffc8b24aff4f251632
    
  2. added a commit that references this issue on May 13, 2026
    d31aaa2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions