-
docs: dark mode, navbar polish, scroll reset, platform→dashboard rename (#3465)
发布于
2026-05-20 07:06:06 +00:00 Summary
- Dark/light theme switcher in the navbar. Drops
forcedTheme: 'light'so the toggle actually flips themes; sidebar footer toggle
stays disabled so there's only one switcher. - Dark mode color pass.
--composio-brandlifts to a muted
#5B8BF0(the deep#0007cdbrand reads as unlit text on#0f0f0f).
Card / muted greys nudge to#1c1c1c/#1f1f1f. Borders drop from 10%
white to 6% so card edges sit back.--border/--sidebar-border
follow suit. - Square navbar. Search input and the new theme toggle render with
border-radius: 0to match the rest of the navbar. - Welcome-page scroll reset. New
ScrollResetclient component
wired into the root layout. Next.js App Router skips its built-in scroll
reset when the new route resolves to the same dynamicpage.tsxsegment
— every link from the welcome page to a/docs/*page hits this case,
so users were landing mid-page on the new route. NowusePathname()
change ⇒window.scrollTo(0, 0)(skips first render and any
hash-bearing navigation). platform.composio.dev→dashboard.composio.devacross docs
content + the direct-execution LLM guardrail (28 files).
docs/public/openapi*.jsonleft alone — auto-generated, and the
surviving reference is literally to the legacy dashboard.
Test plan
- Toggle theme from the navbar; verify both light and dark render
- In dark mode, confirm "Docs" nav active state, chip icons,
"CONNECTED" labels, and Ask AI button read clearly against#0f0f0f - Scroll to the bottom of
/docs, click any link in HomeResources /
HomeSurfaces / HomeFeatures — the new page should land at scroll 0 - Click a TOC
#anchorlink inside a docs page — should still
scroll to the anchor (not get clobbered to 0) - Spot-check a few rewritten URLs in cookbooks / quickstart — all
platform.composio.devshould now bedashboard.composio.dev
🤖 Generated with Claude Code
下载附件
- Dark/light theme switcher in the navbar. Drops