improve styling for links
This commit is contained in:
parent
7addf2c9ea
commit
4604369fb4
3 changed files with 8 additions and 2 deletions
|
|
@ -77,14 +77,13 @@ const StyledMarkdown = styled.div<{
|
|||
}
|
||||
word-wrap: break-word;
|
||||
border-radius: ${defaultBorderRadius};
|
||||
background-color: ${vscEditorBackground};
|
||||
background-color: var(--vscode-textCodeBlock-background);
|
||||
font-size: ${getFontSize() - 2}px;
|
||||
font-family: var(--vscode-editor-font-family);
|
||||
}
|
||||
|
||||
code:not(pre > code) {
|
||||
font-family: var(--vscode-editor-font-family);
|
||||
color: var(--vscode-input-placeholderForeground);
|
||||
}
|
||||
|
||||
background-color: ${(props) => props.bgColor};
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@ export const vscForeground = varWithFallback("foreground");
|
|||
export const vscButtonBackground = varWithFallback("primary-background");
|
||||
export const vscButtonForeground = varWithFallback("primary-foreground");
|
||||
export const vscEditorBackground = varWithFallback("editor-background");
|
||||
export const vscTextCodeBlockBackground = varWithFallback(
|
||||
"textCodeBlockBackground",
|
||||
);
|
||||
export const vscListActiveBackground = varWithFallback("list-active");
|
||||
export const vscFocusBorder = varWithFallback("border-focus");
|
||||
export const vscListActiveForeground = varWithFallback(
|
||||
|
|
|
|||
|
|
@ -140,6 +140,10 @@ export const THEME_COLORS = {
|
|||
vars: ["--vscode-textLink-foreground"],
|
||||
default: "#5c9ce6", // medium blue
|
||||
},
|
||||
textCodeBlockBackground: {
|
||||
vars: ["--vscode-textCodeBlock-background"],
|
||||
default: "#1e1e1e", // same as editor-background
|
||||
},
|
||||
accent: {
|
||||
vars: ["--vscode-tab-activeBorderTop", "--vscode-focusBorder"],
|
||||
default: "#4d8bf0", // bright blue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue