Code Fixtures
Use this page for Expressive Code and markdown code block checks.
Inline code should share the same calm code surface as larger examples:
pnpm --filter @sentry/starlight-theme-playground dev --host 0.0.0.0.
JavaScript
Section titled “JavaScript”export interface EvaluationResult { name: string; score: number; metadata?: Record<string, unknown>;}
export function summarize(results: EvaluationResult[]) { return results.map((result) => ({ label: result.name, passed: result.score >= 0.8, }));}Terminal
Section titled “Terminal”pnpm --filter @sentry/starlight-theme-playground devpnpm run testpnpm release:checkpnpm pack:dryPackage Manager Tabs
Section titled “Package Manager Tabs”pnpm add @sentry/starlight-themenpm install @sentry/starlight-themeyarn add @sentry/starlight-themeimport { TabItem, Tabs } from "@astrojs/starlight/components";
<Tabs> <TabItem label="pnpm">
```shpnpm add @sentry/starlight-theme```
</TabItem> <TabItem label="npm">
```shnpm install @sentry/starlight-theme```
</TabItem></Tabs>.sidebar a { color: var(--ve-text-tertiary); color: var(--ve-text-secondary);}Long Line
Section titled “Long Line”const longValue = "https://example.sentry.io/organizations/sentry/issues/?project=123456789&query=is%3Aunresolved%20assigned%3Ame%20level%3Aerror%20environment%3Aproduction";Plain Markdown Pre
Section titled “Plain Markdown Pre”This indented block checks Starlight’s plain markdown pre styling outside an Expressive Code frame.