Repository navigation
feat(#180): one monochrome design and navigation across all w3-kit sites - #179
Merged
Merged
Conversation
The four sites (w3-kit.com, ui., docs., registry.) each had their own header, footer and look, and subdomain routing leaked internal paths (ui.w3-kit.com redirected to /ui, registry links pointed at /registry/...). - Black and white theme with the logo's purple as the only colour, shared type, spacing and motion tokens. - One shared header (per-site menus plus an Ecosystem switcher) and one footer (per-site columns) on every site. - Routing: TanStack Router rewrite maps subdomains to route folders, so the address bar keeps clean paths; one subdomain list; apex is canonical, www and apex section paths redirect; learn and design subdomains removed. - Landing rebuilt, unlinked /design reference page added; blog, changelog and compare removed. - Components, docs and registry pages rebuilt; old guide pages on ui. now redirect to docs, MCP gets a docs page. - Fixes: component install command (w3-kit@0.1.7), registry API examples that used functions the package does not export, mirrored components not scanned by Tailwind, dead Clearbit logos, sticky elements broken by overflow-x-hidden.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Shared site chrome: header split into a menu hook, desktop nav, actions, panels and mobile menu; one SiteShell replaces the per-site shells; nav config lives with the header and footer in widgets/site-chrome. - One CopyCommand button and one place per shell command. - Chain, token and guide lookups move into their entities; unchecked lookups fail with a clear error instead of crashing on undefined. - One NotFound screen; old design tokens and dead UI primitives removed. - Landing stats read stable keys from the stats generator. - Category filter: only the chosen tab is current, unknown categories show everything. - CI: Chain type gains rpcEndpoints, Storybook stories are no longer mirrored, TanStack Start bumped to 1.168.61 (Vercel blocks 1.168.20 for CVE-2026-102989). - Tests for menus, theme, catalog filter, not-found and recipe tabs.
PetarStoev02
marked this pull request as ready for review
October 29, 2026 12:57
This branch was successfully deployed
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.
Closes #180
Every w3-kit site looked and navigated differently. The main site, ui., docs. and registry. each had their own header, footer and styling. Subdomain routing also leaked internal paths:
ui.w3-kit.comredirected to/ui, and registry links went toregistry.w3-kit.com/registry/....This PR gives all four sites one monochrome theme, with the logo's purple as the only colour, and one routing setup.
Design
tokens.css, with light and dark themes./designreference page is added; nothing links to it.Routing
rewritemaps each subdomain to its route folder, so the address bar keeps clean paths. This replaces the custom server entry and the client-sidereplaceStatehack.learnanddesignsubdomains are removed.www,w3-kit.com/{ui,docs,registry}/*,learn.anddesign.redirect invercel.json./installation,/mcp, …) redirect to docs with a 301.Removed: the blog, the changelog, the compare page and the under-construction pages, plus the code only they used (GSAP and several unused UI primitives).
Bugs fixed along the way
w3-kitbecame the recipe CLI at 0.2.0, so the old command no longer installs components. Install commands now usew3-kit@0.1.7, defined in one place.getTokenAddressandgetRpc, which are not exported by@w3-kit/registry. It now uses only real exports, and the example outputs come from the site's own data.@sourcedirective.overflow-x-hiddenstopped them sticking. Changed tooverflow-x-clip.Review follow-ups (second commit)
widgets/site-chrome, with the nav config inside it. The header is split into a menu hook and small parts, and oneSiteShellframes every site.CopyCommandbutton, and each shell command is defined once.undefined.?categoryshowed an empty grid.CI fixes
tscwas already failing there. TheChaintype now includesrpcEndpoints, and Storybook stories are no longer copied into the component mirror.@tanstack/react-startis bumped from 1.168.20 to 1.168.61, because Vercel refuses to build 1.168.20 (CVE-2026-102989). I stayed on 1.168.x because 1.169 requires Vite 8.@tanstack/react-routeris pinned to 1.170.42 so only one copy of the router is installed.Testing
npx playwright test: 36 passed. The landing spec covers the page, subdomain routing, header menus (Escape and outside click), the theme toggle, the catalog filter, an unknown component and the recipe tabs. The registry spec is updated for the new markup and URLs.npm run build,npm run typecheck,npm run lintandnpm run format:checkall pass. These are the same steps CI runs.Depends on the
learnrepo. The new/mcpdocs page needsdocs/mcp.md, which is local and not yet committed inlearn. In that repo the wholedocs/folder is currently untracked, so CI builds that clonelearnwon't have any of the docs pages. Docs text that is still wrong (the Installation and CLI pages) also lives inlearn.