Repository navigation
Restyle the docs site with the Care design system - #153
Merged
Merged
Conversation
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>
Deploying coredocs with
|
| 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 |
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.
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.cssandcare_fe/src/components/ui/.Screenshots
Homepage, light
Homepage, dark
Concept page: inset content panel, Care sidebar with the current page raised, typeset content, table card, "On this page"
Flow page, dark: permission table, sidebar current page, table of contents
Alerts and inline code
Mobile drawer
What changed
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.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.src/css/care/sidebar.css): Care'sSidebarMenuButton. 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.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).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.Testing
npm run buildpasses forenandml.To check
static/img/care_gradient.pngandstatic/img/ohc_logo.pngare no longer used. I left them in place.🤖 Generated with Claude Code