-
Notifications
You must be signed in to change notification settings - Fork 74
feat: add plugin-markdown-chart #249
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
Conversation
89fa630
to
b09f322
Compare
Pull Request Test Coverage Report for Build 15470406371Details
💛 - Coveralls |
@pengzhanbo I have some issues with katex in markmap, helps would be appreciated. |
I haven't used |
203dcb9
to
d4bad4a
Compare
✅ Deploy Preview for vuepress-ecosystem ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
62f68aa
to
01b02ba
Compare
6bfd0bd
to
1b9f741
Compare
f899860
to
dd1668b
Compare
This PR is now ready, it will replace chart features in md-enhance. |
2578362
to
fa7bad6
Compare
dark: isDarkMode, | ||
background: isDarkMode ? '#1e1e1e' : '#fff', | ||
|
||
primaryColor: isDarkMode ? '#389d70' : '#4abf8a', | ||
primaryBorderColor: isDarkMode ? '#389d70' : '#4abf8a', | ||
primaryTextColor: isDarkMode ? '#fff' : '#000', | ||
|
||
secondaryColor: '#ffb500', | ||
secondaryBorderColor: isDarkMode ? '#fff' : '#000', | ||
secondaryTextColor: isDarkMode ? '#ddd' : '#333', | ||
|
||
tertiaryColor: isDarkMode ? '#282828' : '#efeef4', | ||
tertiaryBorderColor: isDarkMode ? '#bbb' : '#242424', | ||
tertiaryTextColor: isDarkMode ? '#ddd' : '#333', | ||
|
||
// Note | ||
noteBkgColor: isDarkMode ? '#f6d365' : '#fff5ad', | ||
noteTextColor: '#242424', | ||
noteBorderColor: isDarkMode ? '#f6d365' : '#333', | ||
|
||
lineColor: isDarkMode ? '#d3d3d3' : '#333', | ||
textColor: isDarkMode ? '#fff' : '#242424', | ||
|
||
mainBkg: isDarkMode ? '#389d70' : '#4abf8a', | ||
errorBkgColor: '#eb4d5d', | ||
errorTextColor: '#fff', | ||
|
||
// Flowchart | ||
nodeBorder: isDarkMode ? '#389d70' : '#4abf8a', | ||
nodeTextColor: isDarkMode ? '#fff' : '#242424', | ||
|
||
// Sequence | ||
signalTextColor: isDarkMode ? '#9e9e9e' : '#242424', | ||
|
||
// Class | ||
classText: '#fff', | ||
|
||
// State | ||
labelColor: '#fff', | ||
|
||
attributeBackgroundColorEven: isDarkMode ? '#0d1117' : '#fff', | ||
attributeBackgroundColorOdd: isDarkMode ? '#161b22' : '#f8f8f8', | ||
|
||
// Colors | ||
fillType0: isDarkMode ? '#cf1322' : '#f1636e', | ||
fillType1: '#f39c12', | ||
fillType2: '#2ecc71', | ||
fillType3: '#fa541c', | ||
fillType4: '#25a55b', | ||
fillType5: '#13c2c2', | ||
fillType6: '#096dd9', | ||
fillType7: '#aa6fe9', | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't necessarily have to use the default theme's green benchmark color, as it doesn't look very appealing. Here are some adjustments I made in the plume
theme for your reference; I think this looks much nicer.
defineMermaidConfig({
theme: 'default',
themeVariables: isDarkMode => ({
- primaryColor: isDarkMode ? '#389d70' : '#4abf8a',
- primaryBorderColor: isDarkMode ? '#389d70' : '#4abf8a',
- primaryTextColor: isDarkMode ? '#fff' : '#000',
+ primaryColor: isDarkMode ? '#c8abfa' : '#6f42c1',
+ primaryBorderColor: isDarkMode ? '#669' : '#99c',
+ primaryTextColor: isDarkMode ? '#c8abfa' : '#6f42c1',
- noteBkgColor: isDarkMode ? '#f6d365' : '#fff5ad',
+ noteBkgColor: isDarkMode ? '#c96' : '#fff5ad',
- noteBorderColor: isDarkMode ? '#f6d365' : '#333',
+ noteBorderColor: isDarkMode ? '#c86' : '#333',
- textColor: isDarkMode ? '#fff' : '#242424',
+ textColor: isDarkMode ? '#d3d3d3' : '#242424',
- mainBkg: isDarkMode ? '#389d70' : '#4abf8a',
+ mainBkg: isDarkMode ? 'rgb(159 122 234 / 0.16)' : 'rgb(159 122 234 / 0.14)',
- nodeBorder: isDarkMode ? '#389d70' : '#4abf8a',
- nodeTextColor: isDarkMode ? '#fff' : '#242424',
+ nodeBorder: isDarkMode ? '#669' : '#99c',
+ nodeTextColor: isDarkMode ? '#c8abfa' : '#6f42c1',
+ edgeLabelBackground: isDarkMode ? '#333' : '#ddd',
}),
+ class: {
+ hideEmptyMembersBox: true,
+ },
+ look: 'handDrawn',
})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.