Skip to content

Restyle the docs site with the Care design system - #153

Merged
bodhish merged 2 commits into
mainfrom
claude/docs-care-design-system-0f8a38
Dec 4, 2026
Merged

bodhish merged 2 commits into
mainfrom
claude/docs-care-design-system-0f8a38

Conversation

@rithviknishad

@rithviknishad rithviknishad commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

The docs site now uses the same design system as the Care app: CareUI's tokens, type, layout and components, ported from care_fe/src/style/careui.css and care_fe/src/components/ui/.

Screenshots

Homepage, light

1-home-light

Homepage, dark

2-home-dark

Concept page: inset content panel, Care sidebar with the current page raised, typeset content, table card, "On this page"

3-concept-light

Flow page, dark: permission table, sidebar current page, table of contents

4-flow-dark

Alerts and inline code

5-alerts-light

Mobile drawer

6-mobile-drawer-light

What changed

  • Tokens (src/css/care-tokens.css): CareUI's OKLCH palettes (Tailwind v4 values), semantic tokens for light and dark, radius scale, shadows and easing. Care's high-contrast tokens apply when the reader's OS asks for more contrast.
  • Type: Figtree and Geist Mono, as in Care. Malayalam keeps Noto Sans Malayalam first.
  • Shell (src/css/care/shell.css): doc pages use Care's inset sidebar layout. The navbar and sidebar share the sidebar colour, and the page sits on a raised, rounded panel. The navbar uses Care's light and dark wordmarks with a "Docs" label.
  • Sidebar (src/css/care/sidebar.css): Care's SidebarMenuButton. The current page is raised and ringed, with a primary bar on its right edge. Sub-menus hang off a guide line, and top-level categories are uppercase group labels.
  • Content (src/css/care/content.css): Care's typeset rhythm, table cards, admonitions as Care alerts (Lucide icons), breadcrumbs, primary version badge, kbd, and a table of contents with an "On this page" heading (src/theme/TOC, which reuses the theme's existing translation key).
  • Components (src/css/care/components.css): Care's buttons (primary with inset highlight, outline, ghost), badges, cards, dropdown menus, tabs and the search field. DocSearch takes Care colours. The Algolia logo keeps its own colour, as the free plan requires.
  • Homepage: the Care icon, Care components and Lucide icons. All translation ids are unchanged.
  • Code blocks: the background comes from the Care tokens. The dark theme is now One Dark (was Dracula), to match One Light.

Testing

  • npm run build passes for en and ml.
  • Checked in the browser in light, dark and mobile: doc, concept, flow, playbook and deployment pages, the 3.0 "unmaintained" banner, admonitions, code blocks, tables, the mobile drawer and the homepage.
  • Navbar items share one centre line, including the locale and version dropdowns.

To check

  • The Malayalam navbar title is now "ഡോക്സ്" (a transliteration of "Docs"), to sit beside the Care wordmark. Please confirm the wording.
  • static/img/care_gradient.png and static/img/ohc_logo.png are no longer used. I left them in place.

🤖 Generated with Claude Code

rithviknishad and others added 2 commits December 3, 2026 22:57
Port CareUI (care_fe/src/style/careui.css) to the docs: the same OKLCH
palettes, semantic tokens, radius scale, shadows and easing, with Figtree
and Geist Mono. Care's high-contrast tokens follow the OS preference.

- Doc pages use Care's inset shell: navbar and sidebar on the sidebar
  colour, content on a raised, rounded panel.
- Sidebar follows Care's SidebarMenuButton: a raised, ringed current page
  with a primary edge bar, sub-menus on a guide line, and top-level
  categories as group labels.
- Content follows Care's typeset rhythm. Tables, admonitions, breadcrumbs,
  the version badge, kbd, buttons, badges, cards, dropdowns, tabs and the
  search field use Care's component styles.
- The table of contents gets an "On this page" heading (TOC wrapper,
  existing translation key).
- Navbar uses Care's light and dark wordmarks with a "Docs" label.
- Code blocks take their background from the Care tokens; the dark code
  theme is One Dark, to match One Light.
- Homepage uses the Care icon, Care components and Lucide icons. All
  translation ids are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Docusaurus gives the badge `.badge` as well, and the neutral `.badge`
styles load later with the same specificity, so in light mode the badge
was grey while dark mode showed it green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e082d62
Status: ✅  Deploy successful!
Preview URL: https://e551b3f0.coredocs.pages.dev
Branch Preview URL: https://claude-docs-care-design-syst.coredocs.pages.dev

View logs

@bodhish
bodhish merged commit 4ee302d into main Dec 4, 2026
3 checks passed
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