Skip to content

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.

theme-fixture.ts
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
pnpm --filter @sentry/starlight-theme-playground dev
pnpm run test
Terminal window
pnpm release:check
pnpm pack:dry
Terminal window
pnpm add @sentry/starlight-theme
package-manager-tabs.mdx
import { TabItem, Tabs } from "@astrojs/starlight/components";
<Tabs>
<TabItem label="pnpm">
```sh
pnpm add @sentry/starlight-theme
```
</TabItem>
<TabItem label="npm">
```sh
npm install @sentry/starlight-theme
```
</TabItem>
</Tabs>
theme.css
.sidebar a {
color: var(--ve-text-tertiary);
color: var(--ve-text-secondary);
}
const longValue =
"https://example.sentry.io/organizations/sentry/issues/?project=123456789&query=is%3Aunresolved%20assigned%3Ame%20level%3Aerror%20environment%3Aproduction";

This indented block checks Starlight’s plain markdown pre styling outside an Expressive Code frame.