Commit c064547
docs: migrate to @sentry/starlight-theme (#996)
## Summary
Migrate the CLI docs site from a custom 1900-line dark theme to the
shared `@sentry/starlight-theme` package.
## Changes
### Added
- `@sentry/starlight-theme` — shared Starlight plugin with dark-only
theme, component overrides (Header, Footer, ThemeSelect, Pagination),
and monochrome code highlighting
- `docs/src/styles/cli.css` — slim (~250 lines) of CLI-specific styles
(splash page, feature sections, overscroll easter egg)
### Removed
- `docs/src/styles/custom.css` — 1869 lines of custom dark theme CSS
(now provided by the shared theme)
- `docs/src/components/ThemeProvider.astro` — dark-mode forcing (theme
handles this)
- `docs/src/components/ThemeSelect.astro` — empty theme select (theme
handles this)
- `docs/src/components/Header.astro` — custom header (theme provides its
own)
- `docs/src/components/CodeBlock.astro` — unused
- `docs/src/components/CommandBox.astro` — unused (imported but never
rendered)
- Custom `expressiveCode` config with `github-dark` theme
### Updated
- `astro.config.mjs` — uses `sentryStarlightTheme()` plugin and
`monochromeCodeTheme`
- `@astrojs/starlight` bumped to `^0.39.2` (theme peer dependency)
- `astro` bumped to `^6.3.5`
- `InstallSelector.astro` — uses monochrome theme instead of
`github-dark` for Shiki highlighting
- Component font references updated from hardcoded `'JetBrains Mono'` to
`var(--sl-font-mono)`
- `PageTitle.astro` — uses theme design tokens (`--ve-*`)
### Kept (CLI-specific)
- `InstallSelector`, `PackageManagerCode`, `Terminal`,
`FeatureTerminal`, `FeatureVisual`, `PageTitle` components
- Splash/landing page layout and feature section CSS
- Overscroll easter egg
- Google Fonts (Inter + JetBrains Mono)
- Plausible analytics, OG images
- `@sentry/astro` integration and sourcemap config
## Visual changes expected
- Syntax highlighting switches from `github-dark` to monochrome (shared
theme)
- Header follows shared theme design (GitHub link moves to footer social
links)
- Sidebar, code blocks, tabs, and content styling follow shared theme
defaults
- Overall color palette is very similar (same `#0a0a0f` background, same
`#8b5cf6` purple accent)
## Notes
- The lockfile (`bun.lock`) needs regeneration after merging — run `cd
docs && bun install`
- Visual review of the PR preview is recommended, especially the landing
page and command reference pages
---------
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Miguel Betegón <miguelbetegongarcia@gmail.com>1 parent 33515c5 commit c064547
16 files changed
Lines changed: 779 additions & 2243 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 61 | + | |
73 | 62 | | |
74 | | - | |
75 | 63 | | |
76 | | - | |
77 | 64 | | |
78 | 65 | | |
79 | 66 | | |
| |||
91 | 78 | | |
92 | 79 | | |
93 | 80 | | |
94 | | - | |
| 81 | + | |
95 | 82 | | |
96 | 83 | | |
97 | 84 | | |
| |||
235 | 222 | | |
236 | 223 | | |
237 | 224 | | |
238 | | - | |
| 225 | + | |
239 | 226 | | |
240 | 227 | | |
241 | 228 | | |
| |||
245 | 232 | | |
246 | 233 | | |
247 | 234 | | |
248 | | - | |
| 235 | + | |
249 | 236 | | |
250 | 237 | | |
251 | 238 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments