Skip to content

chore(theme): migrate footer to Tailwind theme utilities#76

Merged
alpergundogdu merged 1 commit into
mainfrom
claude/footer-theme-utils
May 11, 2026
Merged

chore(theme): migrate footer to Tailwind theme utilities#76
alpergundogdu merged 1 commit into
mainfrom
claude/footer-theme-utils

Conversation

@alpergundogdu
Copy link
Copy Markdown
Contributor

Summary

Follow-up to #75. Copilot's review on that PR (discussion) caught one site that the audit refresh on #4 missed:

  • components/site/Footer.tsx:4bg-[var(--paper)] pt-16 pb-10 text-[var(--ink)]bg-paper pt-16 pb-10 text-ink.

Other var(--…) uses in Footer.tsx (lines 5, 9, 14) target --frame-gutter, --frame-max, and --fs-micro — layout/typography vars, not theme colors, so they're out of scope for #4.

No visual change

Same reasoning as #75: --color-paper / --color-ink in @theme inline are aliased to var(--paper) / var(--ink). Old and new classes resolve to identical CSS.

Test plan

  • pnpm lint
  • pnpm exec tsc --noEmit
  • pnpm build (static export)

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings May 11, 2026 15:25
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 180fb72
Status: ✅  Deploy successful!
Preview URL: https://8f15f954.website-70y.pages.dev
Branch Preview URL: https://claude-footer-theme-utils.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

Migrates the Footer component’s theme-color usage from arbitrary var(--…) Tailwind classes to the project’s Tailwind v4 theme utilities (bg-paper, text-ink), aligning with the ongoing theme-token cleanup from #75 / issue #4 while preserving identical rendered CSS.

Changes:

  • Replace bg-[var(--paper)] with bg-paper in components/site/Footer.tsx.
  • Replace text-[var(--ink)] with text-ink in components/site/Footer.tsx.

💡 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 updates the Footer component to use Tailwind theme utilities for background and text colors instead of arbitrary values. The reviewer suggested further consolidating the styles by moving the inline paddingInline style into the className attribute using a Tailwind arbitrary value utility for better consistency.

Comment thread components/site/Footer.tsx
@alpergundogdu alpergundogdu merged commit b3ed471 into main May 11, 2026
11 checks passed
@alpergundogdu alpergundogdu deleted the claude/footer-theme-utils branch May 11, 2026 16:03
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.

3 participants