Skip to content

docs: visual refresh of the documentation site - #1374

Merged
mstijak merged 4 commits into
masterfrom
docs/visual-improvements
Nov 27, 2026
Merged

mstijak merged 4 commits into
masterfrom
docs/visual-improvements

Conversation

@mstijak

@mstijak mstijak commented Nov 27, 2026

Copy link
Copy Markdown
Member

A pass over the look of cxjs.io, reviewed item by item on a local dev server. Only homedocs/ changes.

Colors

  • The logo cyan is the single accent color in both themes. Dark mode mixed indigo, violet and teal.
  • Link text in light mode uses a darker cyan (#0975aa, 5:1 on white); buttons keep the brand #27aae1.
  • Inline code uses violet from the logo gradient, at 90% of the text size.
  • Links underline on hover.
  • List bullets and the import line under page titles use a visible muted gray.

Code examples

  • When code continues below the visible area, a fade and an "↓ N more lines" hint show it; the height is unchanged.
  • Code blocks without tabs get the same header bar as tabbed ones, so the StackBlitz link no longer covers code.
  • On phones, the file tabs are smaller and scroll sideways when they don't fit.
  • Fira Code is now actually loaded (400/500/600). It was specified but never loaded, so code looked different on every system. Ligatures are off.
  • Examples use theme variables instead of hard-coded light colors, so charts, drop zones and cards no longer show as white blocks in dark mode. Chart areas use <Rectangle style="fill: var(--cx-theme-background-color)" />.

Navigation

  • Docs header: the same logo as the homepage (grows on hover, links home), followed by a "Docs" label.
  • Sidebar: each group has a rail; the active page is marked with a cyan bar, hovered pages with a gray one. Rows are 32px instead of 40px. When a page is opened directly, its entry is scrolled into view.
  • Phones: a search button in the header opens a full-width search panel.
  • Search results no longer include the "On this page" box or the previous/next links in their excerpts.

Fixes

  • Dark mode no longer flashes light colors during client-side navigation: the dark class is carried over to the new document before the swap.
  • Homepage feature cards are visible without JavaScript (they were hidden until the reveal script ran), and all homepage motion is turned off with prefers-reduced-motion.
  • The homepage heading wraps evenly on phones.

Checked

  • Light and dark, 360/390/1440px, with Playwright screenshots during review.
  • A dark-mode scan of all 181 doc pages with examples finds no light backgrounds left in demos.
  • Production build passes; search works on desktop and in the mobile panel.

- Colors: the logo cyan is the single accent color in both themes (dark mode
  used indigo, violet and teal); link text in light mode uses a darker cyan for
  contrast, and inline code uses violet from the logo, slightly smaller
- Links underline on hover
- Code examples: a fade and "N more lines" hint when the code continues below
  the visible area; compact, scrollable file tabs on phones
- Docs header: the same logo as the homepage, with "CxJS Docs" linking back to
  the homepage and the docs start
- Sidebar: the active page is scrolled into view when a page is opened
  directly; denser rows; each group has a rail line with the active page marked
  in cyan and hovered pages in gray
- Dark mode no longer flashes light colors during client-side navigation
- Import line under page titles follows the theme colors
- Homepage: feature cards no longer stay invisible without the script, all
  motion is disabled with "reduce motion", and the heading wraps evenly on
  phones
- Phones: a search button in the docs header opens a full-width search panel
- Code uses Fira Code, which was specified but never loaded, so it looked
  different on every system; ligatures are off so code reads as typed
- List bullets and numbers are a visible muted gray in both themes
- The clear button in the search box is centered
- Search results no longer include the "On this page" box or the
  previous/next links in their excerpts
Examples used hard-coded light colors (white chart areas, #ddd borders, white
cards, light drop zones), which showed as bright blocks in dark mode. They now
use the theme variables, e.g. <Rectangle style="fill: var(--cx-theme-background-color)" />
for chart areas, so they look the same as before in light mode and fit dark mode.
- Code examples without tabs get the same header bar as tabbed ones, so the
  StackBlitz link no longer covers the first line of code
- The import line under page titles is semi-bold again (Fira Code 600 is now
  loaded, so it is no longer rendered as faux bold)
- "Docs" next to the logo is a plain label; the logo links to the homepage
- "On this page" starts collapsed on the Chart page
@mstijak
mstijak merged commit 672ddea into master Nov 27, 2026
2 checks passed
@mstijak
mstijak deleted the docs/visual-improvements branch November 27, 2026 10:16
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.

1 participant