Skip to content

Commit

Permalink
Respect editor fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Scullin committed Aug 31, 2023
1 parent 5c08e1d commit 4ee70ee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ interface PrismContainerProps {
}

export const PrismContainer = styled.pre<PrismContainerProps>`
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
font-family: var(--vscode-editor-font-family);
font-size: var(--vscode-editor-font-size);
color: ${props => (props.darkMode ? '#9cdcfe' : '#333388')};
span.token.keyword {
Expand Down

0 comments on commit 4ee70ee

Please sign in to comment.