-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
如何修改latex公式、表格、mermaid图形的字体(与mermaid线条)颜色 #600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
分别回答一下三个问题:
示例: # test
```mermaid
pie
title 为什么总是宅在家里?
"喜欢宅" : 45
"天气太热" : 70
"穷" : 500
"没人约" : 95
```
```mermaid
%%{
init: {
'theme': 'base',
'themeVariables': {
'primaryTextColor': '#f00'
}
}
}%%
pie
title 为什么总是宅在家里?
"喜欢宅" : 45
"天气太热" : 70
"穷" : 500
"没人约" : 95
```
```mermaid
%%{
init: {
'theme': 'base',
'themeVariables': {
'primaryColor': '#BB2528',
'primaryTextColor': '#fff',
'primaryBorderColor': '#7C0000',
'lineColor': '#F8B229',
'secondaryColor': '#006100',
'tertiaryColor': '#fff'
}
}
}%%
graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
B --> G[/Another/]
C ==>|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
subgraph section
C
D
E
F
G
end
``` 效果展示: pie
title 为什么总是宅在家里?
"喜欢宅" : 45
"天气太热" : 70
"穷" : 500
"没人约" : 95
%%{
init: {
'theme': 'base',
'themeVariables': {
'primaryTextColor': '#f00'
}
}
}%%
pie
title 为什么总是宅在家里?
"喜欢宅" : 45
"天气太热" : 70
"穷" : 500
"没人约" : 95
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如何修改latex公式、表格、mermaid图形的字体(与mermaid线条)颜色。
因为定义了背景颜色,需要相对固定的配色方案。列表区域可以使用自定义css里面的listitem修改。但是这三个区域没有找到对应的css,尝试了几次默认颜色不会变化,而且这几个区域会受到深色模式影响变更颜色,请问能否在md内而不借助外部html编辑工具解决这个问题。
The text was updated successfully, but these errors were encountered: