Skip to content

chore(theme): migrate inline var() to Tailwind utilities (close #4)#75

Merged
alpergundogdu merged 1 commit into
mainfrom
claude/pedantic-newton-19f1b5
May 11, 2026
Merged

chore(theme): migrate inline var() to Tailwind utilities (close #4)#75
alpergundogdu merged 1 commit into
mainfrom
claude/pedantic-newton-19f1b5

Conversation

@alpergundogdu
Copy link
Copy Markdown
Contributor

@alpergundogdu alpergundogdu commented May 11, 2026

Summary

Closes #4. Replaces the remaining inline var(--…) theme-color patterns with the equivalent Tailwind v4 utilities that app/globals.css already exposes via @theme inline.

  • bg-[var(--ink)] text-[var(--paper)]bg-ink text-paper (and the paper mirror) in components/ui/Frame.tsx.
  • Tone-flip class + Docs/Blog underline in components/site/Chrome.tsx move from style={{ borderBottom, paddingBottom }} to className="… border-b border-current pb-[2px]".
  • Brand-span / accent style={{ color: "var(--whisper)" }}className="text-whisper" across Hero.tsx, Comparison.tsx, Close.tsx, FaqItem.tsx.
  • Strikethrough rule background in Comparison.tsxbg-paper.

No visual change

--color-ink, --color-paper, --color-whisper in @theme inline are aliased to var(--ink) / var(--paper) / var(--whisper) — the same vars the old arbitrary-value classes used — so the generated utilities resolve to identical declarations. FaqItem.tsx already mixed text-paper/75 and style={{ color: var(--whisper) }} today, proof the utilities are wired.

Test plan

🤖 Generated with Claude Code

Swap remaining `text-[var(--paper)]` arbitrary-value classes and
`style={{ color: "var(--whisper)" }}` inline styles for the
auto-generated Tailwind v4 utilities (`text-paper`, `text-whisper`,
`bg-paper`, `bg-ink`, `border-current`, `pb-[2px]`).

`app/globals.css` already exposes the tokens via `@theme inline`, so
each utility resolves to the same CSS variable used today — no visual
change, just style consistency across `Frame.tsx`, `Chrome.tsx`,
`Hero.tsx`, `Comparison.tsx`, `Close.tsx`, and `FaqItem.tsx`.

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

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9be9991
Status: ✅  Deploy successful!
Preview URL: https://a8c10bc8.website-70y.pages.dev
Branch Preview URL: https://claude-pedantic-newton-19f1b.website-70y.pages.dev

View logs

@alpergundogdu alpergundogdu merged commit 35399da into main May 11, 2026
11 checks passed
@alpergundogdu alpergundogdu deleted the claude/pedantic-newton-19f1b5 branch May 11, 2026 15:23
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

This PR standardizes theme token usage by replacing inline var(--…) color styles/arbitrary-value classes with the Tailwind v4 utilities generated from @theme inline in app/globals.css, aiming to keep styling consistent while preserving existing visuals.

Changes:

  • Migrate bg-[var(--…)] / text-[var(--…)] usages to bg-ink, bg-paper, text-ink, text-paper in layout/navigation components.
  • Replace inline style={{ color: "var(--whisper)" }} accents with className="text-whisper" across marketing sections.
  • Convert Docs/Blog underline from inline border/padding styles to Tailwind utilities (border-b border-current pb-[2px]).

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
components/ui/Frame.tsx Swap tone mapping from arbitrary var(--…) classes to generated bg-*/text-* utilities.
components/ui/FaqItem.tsx Replace inline whisper color with text-whisper in brand highlighting.
components/site/Hero.tsx Move whisper accents (period + brand word) from inline style to text-whisper.
components/site/Comparison.tsx Convert brand accent and strikethrough rule background to Tailwind utilities (text-whisper, bg-paper).
components/site/Close.tsx Replace inline whisper brand accent with text-whisper.
components/site/Chrome.tsx Replace tone text arbitrary classes with text-paper/text-ink and migrate link underline styling to Tailwind border/padding utilities.

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

Comment thread components/ui/Frame.tsx
Comment on lines +14 to +15
ink: "bg-ink text-paper",
paper: "bg-paper text-ink",
alpergundogdu added a commit that referenced this pull request May 11, 2026
Follow-up to #75 — the audit refresh on #4 missed `components/site/Footer.tsx`,
which still used `bg-[var(--paper)] … text-[var(--ink)]`. Same swap as the
rest of the codebase: utilities resolve to identical CSS through
`@theme inline`, so no visual change.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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): migrate remaining inline var()/style theme colors to Tailwind utilities

3 participants