Skip to content

Switch to the slate design system theme - #3592

Merged
borland merged 7 commits into
mainfrom
orion/slate-theme
Dec 2, 2026
Merged

borland merged 7 commits into
mainfrom
orion/slate-theme

Conversation

@borland

@borland borland commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Moves the docs site over to the new slate theme from the design system 🎨

  • Pulls @octopusdeploy/design-system-tokens from Octopus's public Artifactory feed now (that's where the slate release lives), so no more copied token files
  • data-theme is now slateLight / slateDark to match the package. Readers' saved light/dark choice still works
  • Tidied up how we use the tokens: semantic tokens directly instead of via aliases, plus a few small fixes (article link hover, dark mode close button hover, author date contrast)
  • Deleted a bunch of dead CSS from the old search UI and unused variables

🤖 Generated with Claude Code

Screenshots

image image

@team-marketing-branch-protections

Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3592.z22.web.core.windows.net/.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@borland

borland commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Claude: Review summary

I found no major or minor issues.

What I checked:

  • Theme attribute switch: every writer of data-theme (ThemeScript.astro, theme-switcher.ts, the three layouts) now writes slateLight/slateDark, and every reader goes through themeFromAttribute. The stored preference, data-theme-preference and the change event still use light/dark, so saved choices carry over. Nothing in the repo (styles, scripts, content, tests) still targets data-theme='light' or 'dark'.
  • Token coverage: every var(--…) in src resolves against globals.css, textTheme.css, site-defined vars, and both slateLightTheme.css and slateDarkTheme.css from 2027.1.1253. Nothing depends on the old lightTheme.css/darkTheme.css, which are no longer imported. The slate light and dark files define the same token set.
  • Dead CSS and variable removal: none of the 78 removed variables are referenced anywhere. None of the removed selectors (.search-dialog, .site-search-results, .result-*, .show-more, .overlay, .yt-video .title colour/hover) match markup in templates or JS. --fore-link and --funk were never defined, so dropping them changes nothing. Every variable still in vars.css is still used.
  • Changes in rendered output: the search hover/active tokens have the same values as the menu tokens they replace. In dark mode the zoom close button now has a visible hover (#282F38 on #16191F); before, its hover colour was the same as the lightbox background. The article link hover only changes anything in dark mode, because slate light uses the same colour for link default and link hover.
  • Registry: the scoped .npmrc entry only affects @octopusdeploy/*, and this is the only package in that scope. The lockfile change is limited to this package.

Not verified: I didn't run the Playwright suite. CI doesn't run it either, so the updated tests/theme.spec.ts is only checked when someone runs pnpm test locally. I also didn't check the pages visually.

Verdict: approve as-is.

borland and others added 6 commits December 2, 2026 17:04
The slate light/dark theme isn't published to npm yet, so copy the
generated stylesheets from an unpublished build of
@octopusdeploy/design-system-tokens (OctopusDeploy commit ba3902e78c7)
and import those instead of the package's light/dark themes.

The slate selectors are rewritten to light/dark so the existing theme
switching works unchanged. The copied files are excluded from
spellcheck because they're generated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rest of this change landed in main via #3552. The search result
hover was left as a blue tint there because colorSearchBackgroundResultHover
isn't in the published tokens package yet, but the slate stylesheets
copied on this branch do define it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Octopus packages now come from Octopus's public Artifactory feed, which has
@octopusdeploy/design-system-tokens 2027.1.1253 with the slate themes. Import
them from the package and delete the copied token files.

The package scopes the slate themes to data-theme="slateLight"/"slateDark", so
data-theme now carries those values. The stored preference, the change event
and the Theme type still use light/dark, so readers' saved choices carry over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Search results use the search tokens for hover and the active row, in place
  of the menu-list tokens with the same values.
- Article links now change colour on hover; hover resolved to the same token
  as the resting colour.
- The lightbox close button hover is visible in dark mode again.
- Author dates use the secondary text token instead of a fixed grey.
- Fonts use the semantic font family tokens instead of the primitives.
- vars.css aliases that only renamed a semantic token are gone; call sites use
  the token directly. Variables nothing referenced are removed.
- Removed the rules for the old search dialog, results list, overlay and
  "show more" button, which nothing renders any more, and two declarations
  that referenced undefined variables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the logo with the current one from octopus.com, renamed to
octopus-logo-v3.svg to bust any cached copies of the old asset. The
wordmark uses currentColor so it follows the light/dark theme, and it
is sized at its native 130x30 to match octopus.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@borland

borland commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

The legacy a.button rule hardcoded the old green button colors, which
overrode the button--primary class on the Getting started page. Use the
same loud button tokens as the top-nav "Start for free" button instead,
and remove the now-unused legacy button and brand green variables.

Also display the bare <span> that MDX wraps a standalone button in as a
block, so the paragraph spacing below the button applies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@borland
borland enabled auto-merge (squash) December 2, 2026 04:31

@rosslovas rosslovas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing here looks unreasonable and from a quick look at the staging site everything looks good ✅

@borland
borland merged commit b24c41e into main Dec 2, 2026
7 checks passed
@borland
borland deleted the orion/slate-theme branch December 2, 2026 04:42
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.

3 participants