Redesign the app shell, directory, and every page#38

merged
main
GitHub fork: redesign/site-refresh
opened13d agobyIitsluneri
View on GitHubRepository sync pausedPR last imported 7d ago

What changed

A redesign of the site shell and every page, split into focused commits so each can be reviewed (and reverted) on its own:

  1. Apply next/font variables on html so the configured fonts load. The variable classes were on <body>, but Tailwind resolves --font-sans on :root. The reference was invalid there, so every page fell back to the browser's default font.

  2. Use SF Pro Rounded with a Nunito fallback for the UI font.

  3. Rewrite library descriptions without em dashes or promotional copy. 10 used em dashes and 7 read as marketing, which goes against the contributing guide's factual-description rule.

  4. Add sidebar and category icons. These are Iconsax PNGs rendered as CSS masks, so they follow the text colour.

  5. Move every route into a shared app frame. Every page now shares:

    • one sidebar with the brand, search, navigation, page-specific content, GitHub stars and theme toggle
    • a full-height content card that is the only scrolling area

    The sidebar widens on /libraries to hold the filters, and the sidebar search drives the directory directly. Screens below 1024px get a compact top bar. This commit also adds a token-based dark/light theme with no brand-blue chrome, custom scrollbars, and icons centred on the capital letters of their labels.

  6. Redesign the directory filters, toolbar, and cards.

    • The category pill slides between options, and the section headers are full-width.
    • Sort and view are segmented controls.
    • Card previews show at their real 1.9:1 ratio instead of being cropped.
    • Result changes animate with FLIP (cards glide to their new positions), without scaling any text.
  7. Redesign the library detail page.

    • A sticky side card holds the preview, links and details.
    • Install methods sit in a segmented track, with a blur wave when you switch commands.
    • Getting started is a numbered timeline.
    • The copy button cross-fades and resizes to fit its label.
    • The page no longer has a footer.
  8. Rebuild the docs in the new style.

    • Section navigation with a sliding pill, and an "On this page" list that follows the section being read.
    • Shared docs components replace the per-page markup and teal styling.
    • Pages slide in from the direction you navigate.
  9. Redesign the contributors and sponsors pages.

    • Contributors are shown as cards, with totals.
    • Sponsors has an honest empty state instead of placeholder tiers.
    • Neither page shows the footer any more.

Each commit type-checks on its own. The shared stylesheet is layered, so the CSS for commits 6–9 lands in commit 5 and their markup follows.

This is a larger design change. The contributing guide asks for an issue first for changes like this; I'm happy to split it into separate PRs or open one if you prefer.

Type

  • New library
  • Library metadata correction
  • New verified components
  • Bug fix
  • Feature
  • Documentation

Verification

  • I kept this pull request focused. (It's one redesign across the site, split into focused commits.)
  • I ran npm test and npm run build successfully. (32/32 tests pass.)
  • I checked light and dark modes when the interface changed.
  • I checked keyboard access and reduced motion when interaction changed. (Focus rings, arrow-key tab switching and prefers-reduced-motion rules are in place, but I haven't done a full keyboard pass.)
  • I added screenshots or a recording for visible changes. (To follow.)

Related issue

None.

🤖 Generated with Claude Code

Checks

Some checks failed
  • Review rate limited

    Successful
  • VercelGitHub

    Authorization required to deploy.

    Failed
Iitsluneriopened·13d ago
V

@itsluneri is attempting to deploy a commit to the zaid-gd's projects Team on Vercel.

A member of the Team first needs to authorize it.

C

[!WARNING]

Review limit reached

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: bf48946a-596f-4297-8fe3-04b59d44f2c3

📥 Commits

Reviewing files that changed from the base of the PR and between e4f73f300f930799cc7e3566ff04375013de5177 and 75383ff58afaf78bc561cf4c99b8588d3933811f.

📒 Files selected for processing (57)
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • README.md
  • app/contributors/page.module.css
  • app/contributors/page.tsx
  • app/docs/find-a-library/page.tsx
  • app/docs/layout.tsx
  • app/docs/page.tsx
  • app/docs/pull-requests/page.tsx
  • app/docs/report-issues/page.tsx
  • app/docs/request-a-library/page.tsx
  • app/globals.css
  • app/libraries/[slug]/page.tsx
  • app/sponsors/page.tsx
  • components/AppFrame.tsx
  • components/CopyButton.tsx
  • components/DirectoryExplorer.tsx
  • components/DocsSidebar.module.css
  • components/DocsSidebar.tsx
  • components/DocsUI.tsx
  • components/Header.tsx
  • components/LibraryCard.tsx
  • components/LibraryDetail.tsx
  • components/LibraryDetailParts.tsx
  • components/SiteChrome.tsx
  • components/SponsorsSection.tsx
  • components/ui/bento-grid.tsx
  • data/library-details/21st-dev.ts
  • data/library-details/aceternity-ui.ts
  • data/library-details/ai-canvas.ts
  • data/library-details/animata.ts
  • data/library-details/cult-ui.ts
  • data/library-details/dimaac-ui.ts
  • data/library-details/fancy-components.ts
  • data/library-details/godui.ts
  • data/library-details/hampton-ui.ts
  • data/library-details/kibo-ui.ts
  • data/library-details/magic-ui.ts
  • data/library-details/motion-primitives.ts
  • data/library-details/nexvyn-ui.ts
  • data/library-details/obsidian-ui.ts
  • data/library-details/origin-ui.ts
  • data/library-details/rare-ui.ts
  • data/library-details/react-bits.ts
  • data/library-details/recharts.ts
  • data/library-details/rive.ts
  • data/library-details/ruixen-ui.ts
  • data/library-details/satisium-ui.ts
  • data/library-details/shadcnblocks.ts
  • data/library-details/spell-ui.ts
  • data/library-details/types.ts
  • data/library-details/uselayouts.ts
  • data/library-details/wensity-ui.ts
  • lib/directory-query.ts
  • tests/docs-pages.test.mjs
  • tests/library-pages.test.mjs

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

Comment @coderabbitai help to get the list of available commands.

S

@coderabitai Full review

V

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

ProjectDeploymentActionsUpdated
External image colReady ReadyPreviewSep 29, 2026 10:14pm UTC