Skip to content

Commit 668d68f

Browse files
kidonngulivz
authored andcommitted
refactor(theme-default): Import Prism theme in stylesheets instead of "Layout.vue" to allow custom styles to override them. (#1707)
* remove prism theme in default layout * add prism theme to code.styl
1 parent 2a59800 commit 668d68f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@vuepress/theme-default/layouts/Layout.vue

-2
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,3 @@ export default {
145145
}
146146
}
147147
</script>
148-
149-
<style src="prismjs/themes/prism-tomorrow.css"></style>

packages/@vuepress/theme-default/styles/code.styl

+2
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,5 @@ div[class~="language-bash"]:before
133133

134134
div[class~="language-php"]:before
135135
content "php"
136+
137+
@import '~prismjs/themes/prism-tomorrow.css'

0 commit comments

Comments
 (0)