Skip to content

Commit

Permalink
fix css issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen committed Nov 10, 2024
1 parent d2fb069 commit 2b1dc8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/twoslash/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,16 @@ export const twoSlashStyleSettings = new PluginStyleSettings({
cursorColor: ({ theme }) => theme.colors["editorCursor.foreground"],
completionBoxBackground: ({ theme }) =>
theme.colors["editorSuggestWidget.background"] ||
theme.colors["twoSlash.background"],
theme.colors["editor.background"] ||
theme.bg,
completionBoxBorder: ({ theme }) =>
theme.colors["editorSuggestWidget.border"] ||
theme.colors["twoslash.borderColor"],
theme.colors["titleBar.border"] ||
lighten(
theme.colors["editor.background"],
theme.type === "dark" ? 0.5 : -0.15,
) ||
"transparent",
completionBoxColor: ({ theme }) =>
theme.colors["editorSuggestWidget.foreground"] ||
theme.colors["editor.foreground"] ||
Expand Down
1 change: 1 addition & 0 deletions playground/astro.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default defineConfig({
starlight({
title: "Starlight",
expressiveCode: {
themes: ['github-dark-dimmed'],
plugins: [ectwoslash()],
},
}),
Expand Down

0 comments on commit 2b1dc8b

Please sign in to comment.