Skip to content

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

Merged
yigitdot merged 1 commit into
mainfrom
chore/drop-text-display-token
May 13, 2026
Merged

chore(theme): drop unused --text-display token#104
yigitdot merged 1 commit into
mainfrom
chore/drop-text-display-token

Conversation

@yigitdot
Copy link
Copy Markdown
Collaborator

@yigitdot yigitdot commented May 13, 2026

What

Removes --text-display: clamp(3.5rem, 14vw, 12.5rem) from app/globals.css's @theme inline block.

Why

Nothing references it — grep for text-display / --text-display across app/, components/, lib/, content/ finds only the declaration, and Tailwind v4 never emits a text-display utility because it's never used in a class. Dead since before #101 (it was --fs-display then; #101 renamed it along with the rest of the scale for namespace coherence).

The rest of the @theme inline block was audited at the same time — every other --text-* rung, the --frame-* tokens, the --color-* tokens, and --nav-h are all referenced. One borderline case, --font-sans, has no call site but overrides Tailwind's built-in font-sans utility — tracked in #105, not in scope here.

Verification

  • grep -rn "text-display\|--text-display" app/ components/ lib/ content/ → no matches
  • pnpm lint → clean
  • pnpm exec tsc --noEmit → clean
  • pnpm build → static export succeeded

Closes #103

🤖 Generated with Claude Code

`--text-display: clamp(3.5rem, 14vw, 12.5rem)` in the `@theme inline`
block had no call sites — grep across app/, components/, lib/, content/
found only the declaration, and Tailwind v4 never emits a `text-display`
utility because it's never used in a class. Dead since before #101 (was
`--fs-display`; #101 renamed it along with the rest of the scale).

Closes #103

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 13, 2026 04:20
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: eddc06b
Status: ✅  Deploy successful!
Preview URL: https://39390aad.website-70y.pages.dev
Branch Preview URL: https://chore-drop-text-display-toke.website-70y.pages.dev

View logs

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes an unused typography CSS custom property (--text-display) from the Tailwind v4 @theme inline token block in app/globals.css, reducing dead theme surface area without changing any referenced styling.

Changes:

  • Deleted the --text-display: clamp(3.5rem, 14vw, 12.5rem); token from the @theme inline type scale.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request removes the unused --text-display CSS variable from app/globals.css. I have no feedback to provide as there are no review comments.

@yigitdot yigitdot merged commit d31aaa2 into main May 13, 2026
11 checks passed
@yigitdot yigitdot deleted the chore/drop-text-display-token branch May 13, 2026 04:26
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.

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

2 participants