Skip to content

Commit 90b5dcf

Browse files
committed
style: remove background highlight from tokens
1 parent 120c68d commit 90b5dcf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

gatsby-browser.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import WebFont from 'webfontloader';
2+
// This theme defines a weird highlight on some tokens which we remove in our style.css
23
import 'prismjs/themes/prism.css';
34

45
WebFont.load({

src/common/style.css

+8
Original file line numberDiff line numberDiff line change
@@ -292,3 +292,11 @@ main {
292292
@apply mb-0;
293293
}
294294
}
295+
296+
.language-css .token.string,
297+
.style .token.string,
298+
.token.entity,
299+
.token.operator,
300+
.token.url {
301+
background: none; /* removing the weird highlighted background from prismjs default theme */
302+
}

0 commit comments

Comments
 (0)