chore(theme): drop unused --text-display token#104
Merged
Conversation
`--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>
Deploying website with
|
| 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 |
There was a problem hiding this comment.
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 inlinetype scale.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes
--text-display: clamp(3.5rem, 14vw, 12.5rem)fromapp/globals.css's@theme inlineblock.Why
Nothing references it —
grepfortext-display/--text-displayacrossapp/,components/,lib/,content/finds only the declaration, and Tailwind v4 never emits atext-displayutility because it's never used in a class. Dead since before #101 (it was--fs-displaythen; #101 renamed it along with the rest of the scale for namespace coherence).The rest of the
@theme inlineblock was audited at the same time — every other--text-*rung, the--frame-*tokens, the--color-*tokens, and--nav-hare all referenced. One borderline case,--font-sans, has no call site but overrides Tailwind's built-infont-sansutility — tracked in #105, not in scope here.Verification
grep -rn "text-display\|--text-display" app/ components/ lib/ content/→ no matchespnpm lint→ cleanpnpm exec tsc --noEmit→ cleanpnpm build→ static export succeededCloses #103
🤖 Generated with Claude Code