Repository navigation
docs: visual refresh of the documentation site - #1374
Merged
Merged
Conversation
- 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
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.
A pass over the look of cxjs.io, reviewed item by item on a local dev server. Only
homedocs/changes.Colors
#0975aa, 5:1 on white); buttons keep the brand#27aae1.Code examples
<Rectangle style="fill: var(--cx-theme-background-color)" />.Navigation
Fixes
darkclass is carried over to the new document before the swap.prefers-reduced-motion.Checked