##现将预览样式设置为dark
##然后代码在帖子编辑页和详情页引入下方自定义的css代码即可。
![](http://mawen-ufile.cn-bj.ufileos.com/c439a20d-da86-4697-91f4-ace059abcec0.PNG?UCloudPublicKey=TOKEN_30fe6ff0-4d19-498b-b286-69be191b1881&Signature=SD%2FykHjzYbox9PXAgN4UGJ2ykAo%3D&Expires=1895801326)
```css
.editormd-preview-theme-dark .editormd-preview-container{color:inherit;background-color:inherit}.editormd-preview-theme-dark .editormd-preview-container blockquote{background:inherit;border-color:inherit}.markdown-body img{margin:10px 0}.markdown-body strong{font-weight:bold}.editormd-dialog-container select{display:inline-block}.editormd-preview-theme-dark .typ{color:#a8b6c5}.editormd-preview-theme-dark pre .pln{color:#a8b6c5}.editormd-preview-theme-dark .kwd{color:#cb7832}.editormd-preview-theme-dark .tag{color:#89bdff}.editormd-preview-theme-dark .com{color:#7f7f7f}.editormd-preview-theme-dark .str{color:#65b042}.editormd-preview-theme-dark .atv{color:#65b042}.editormd-preview-theme-dark .atn{color:#bdb76b}.editormd-preview-theme-dark .lit{color:#65b042}.editormd-preview-theme-dark .pun{color:#bdb76b}.CodeMirror-activeline-background{background:#f0fbeb}.markdown-body li{list-style:inherit}.editormd-html-preview ol.linenums,.editormd-preview-container ol.linenums{color:#6c7978;padding-left:2.5em}.markdown-body pre li{border-left:1px solid #6c7978;padding-left:10px}.markdown-body a{background:0;color:#009688;text-decoration:none}.markdown-body a:hover{color:#01aaed;text-decoration:none}.editormd-preview-theme-dark{color:#333;background:#fff}.editormd-preview-theme-dark pre{background:#282c34}.editormd-html-preview,.editormd-preview-container{padding:5px;font-size:15px;color:#000}
```
顺便欢迎大家参观我的小站
http://www.zykcoderman.xyz/