1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00

add a light code syntax theme

This commit is contained in:
Matthias Kretschmann 2020-06-01 16:47:36 +02:00
parent 2b60310bdf
commit e13b437ab1
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 13 additions and 2 deletions

View File

@ -71,9 +71,15 @@ module.exports = {
// https://github.com/andrewbranch/gatsby-remark-vscode // https://github.com/andrewbranch/gatsby-remark-vscode
resolve: 'gatsby-remark-vscode', resolve: 'gatsby-remark-vscode',
options: { options: {
theme: 'Nord', theme: {
default: 'Polar',
parentSelector: { 'body.dark': 'Nord' }
},
injectStyles: false, injectStyles: false,
extensions: ['nord-visual-studio-code'], extensions: [
'nord-visual-studio-code',
`${__dirname}/vendor/polar-0.0.6.vsix`
],
languageAliases: {} languageAliases: {}
} }
} }

View File

@ -52,6 +52,11 @@ pre {
background-color: $code-bg; background-color: $code-bg;
} }
// overwrite Polar theme background color
&:global(.polar) {
background-color: lighten($body-background-color, 3%);
}
// make 'em scrollable // make 'em scrollable
overflow: auto; overflow: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;

BIN
vendor/polar-0.0.6.vsix vendored Normal file

Binary file not shown.