Custom Theme
#631
-
Are there any docs on the theme config and the available options? , Is there a way to toggle the CSS values (data-theme) to customize the colors |
Beta Was this translation helpful? Give feedback.
Answered by
RSS1102
Nov 2, 2023
Replies: 2 comments 2 replies
-
You can refer to here and copy CSS to create your own theme .cherry.theme__ (you want to class name){
} /**
* 配置主题,第三方可以自行扩展主题
*/
theme: [
{ className: 'default', label: '默认' },
{ className: 'dark', label: '暗黑' },
{ className: 'light', label: '明亮' },
{ className: 'green', label: '清新' },
{ className: 'red', label: '热情' },
{ className: 'violet', label: '淡雅' },
{ className: 'blue', label: '清幽' },
+ { className: 'you want to class name', label: 'you want to name' },
], |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
tigawanna
-
https://github.com/Tencent/cherry-markdown/wiki/%E9%85%8D%E7%BD%AE%E4%B8%BB%E9%A2%98 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can refer to here and copy CSS to create your own theme
class name
/** * 配置主题,第三方可以自行扩展主题 */ theme: [ { className: 'default', label: '默认' }, { className: 'dark', label: '暗黑' }, { className: 'light', label: '明亮' }, { className: 'green', label: '清新' }, { className: 'red', label: '热情' }, { className: 'violet', label: '淡雅' }, { className: 'blue', label: '清幽' }, + { className: 'you want to class name', label: 'you want to name' }, ],