Skip to content

Commit 3ed1063

Browse files
docs(code examples): changing code styling to match github
1 parent f5ded3d commit 3ed1063

File tree

3 files changed

+3
-156
lines changed

3 files changed

+3
-156
lines changed

apps/website/src/global.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
/* no horizontal overflow on code examples */
159159
.tab-size pre {
160160
white-space: pre-wrap;
161+
background: transparent !important;
161162
}
162163
}
163164

apps/website/src/routes/docs/_components/highlight/highlight.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export const Highlight = component$(
4343
const str = await (window as any).shikiji.codeToHtml(modifiedCode, {
4444
lang: language,
4545
themes: {
46-
light: 'vitesse-light',
47-
dark: 'vitesse-dark',
46+
light: 'github-dark',
47+
dark: 'github-dark',
4848
},
4949
});
5050
codeSig.value = str.toString();

apps/website/src/routes/global.css

Lines changed: 0 additions & 154 deletions
This file was deleted.

0 commit comments

Comments
 (0)