Skip to content

feat(theme): align docs header, footer, palette, and favicons with cow.fi - #699

Open
fairlighteth wants to merge 5 commits into
mainfrom
feat/cowfi-design-alignment
Open

fairlighteth wants to merge 5 commits into
mainfrom
feat/cowfi-design-alignment

Conversation

@fairlighteth

@fairlighteth fairlighteth commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Replaced the navbar with the single-row cow.fi dark floating pill (56px), 9-dot CoW apps switcher, inline section links (covering all 15 generated /category/* routes), lifted Search pill, GitHub link, and Trade on CoW Swap CTA.
  • Moved the mobile hamburger toggle to the far right, kept the full-width cyan CTA inside the drawer, and guarded active nav matching to docs routes so 404s under a docs path do not trigger a hydration mismatch.
  • Switched the theme control to a direct 2-state Light/Dark toggle that still respects OS preference on first load without a no-op system click.
  • Swizzled the footer to the shared cow.fi CoW DAO footer (expanded by default with keyboard-accessible collapse toggle, X link, © CoW DAO copyright, legal links, and reduced-motion-safe marquee).
  • Replaced the legacy blue/navy palette with cow.fi warm monochrome neutrals in light (#FFF8F7 canvas, #FFFFFF cards and code blocks, #F0DEDE borders and active sidebar) and espresso dark (#141011 / #1E1617), with underlined neutral links, plain breadcrumbs, matching DocSearch modal, and dark-safe MEV Blocker interstitial card.
  • Configured Studio Feixen Sans for headings/nav/CTA and Inter Variable (with OFL license) for docs body in src/assets/fonts/, replaced the white-boxed favicon with cow.fi transparent light/dark PNGs and 16x16 Safari mask icon, added contrast-checked Prism themes, and fixed Use with LLM keyboard/ARIA behavior.

Why

  • Aligns CoW Docs visually and structurally with cow.fi (CoW DAO / CoW Protocol) and addresses the UI, contrast, favicon, footer, and theme-toggle QA issues flagged on the new docs preview (cow-docs-preview.vercel.app).

Screenshots

Mode Before (docs.cow.fi) After (PR #699 preview)
Light Homepage before in light mode Homepage after in light mode
Dark Homepage before in dark mode Homepage after in dark mode

QA Testing

Preview URL QA:

Developer verification:

  • Verified production yarn build emits a single hashed copy of all 6 font files in build/assets/fonts/ with zero broken links or anchors across 117 docs.
  • Verified zero console/hydration errors on /, /cow-protocol, /category/benefits, /governance/missing, and /mevblocker, plus >= 4.5:1 syntax token contrast and dark-mode MEV Blocker card legibility.

Reviewer note:

  • Confirm CoW's Studio Feixen license covers hosting the 4 .woff2 files in this public repo (the same binaries are currently committed in cowprotocol/cowswap).
  • On the separate cow-docs-preview.vercel.app branch, the homepage React #418/#423 hydration errors come from 3 nested <p> wrappers in docs/README.mdx (two <p className="cow-footnote"> blocks and the <p> inside .cow-split); switching the footnote wrappers to <div className="cow-footnote"> clears them.

Preview URLs

@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Dec 3, 2026 1:06pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 127fdc29-2bfa-4e15-ae3d-9e9448405355
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@fairlighteth fairlighteth self-assigned this Dec 2, 2026
@fairlighteth
fairlighteth requested review from a team and elena-zh December 2, 2026 18:44
@fairlighteth
fairlighteth marked this pull request as ready for review December 2, 2026 18:44
@fairlighteth
fairlighteth requested a review from a team as a code owner December 2, 2026 18:44
…ode, mermaid, footer alignment, and mobile tables

@elena-zh elena-zh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome!

This branch was successfully deployed

1 active deployment
Preview — 6f35395d Deployed Dec 3, 2026 by vercel[bot]
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.

2 participants