Skip to content

Commit 79d95fa

Browse files
authored
Merge pull request #397 from cayxc/gh-pages
Mdmdt 配图更新
2 parents 722a6c6 + a43f64c commit 79d95fa

21 files changed

+33
-30
lines changed

_posts/theme/2024-11-27-Mdmdt.md

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ thumbnail: mdmdt.png
1010
typora-root-url: ../../
1111
typora-copy-images-to: ../../media/theme/mdmdt
1212
---
13-
![mdmdt-theme](/media/theme/mdmdt/mdmdt-cover.png)
13+
![typora-mdmdt-theme](/media/theme/mdmdt/mdmdt.png)
14+
1415
# About Mdmdt theme
1516
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/cayxc/Mdmdt?include_prereleases&color=blue&logo=hack-the-box)
1617
![GitHub license](https://img.shields.io/github/license/cayxc/Mdmdt.svg)
@@ -19,44 +20,43 @@ typora-copy-images-to: ../../media/theme/mdmdt
1920

2021
[中文文档](https://github.com/cayxc/Mdmdt/blob/main/readme.zh.md)
2122

22-
**Mdmdt** is an abbreviation for Markdown Minimalism Document Theme, meaning: Markdown Minimalism Document Theme.
23-
24-
**Mdmdt** is a deeply customized personalized Typora theme, aimed at creating a **refreshing and minimalist** document style.
23+
**Mdmdt** is an abbreviation for Markdown Minimalism Document Theme, meaning: Markdown Minimalism Document Theme.**Mdmdt** is a deeply customized personalized Typora theme, aimed at creating a **refreshing and minimalist** document style. The **Mdmdt** theme has now been included in the [official Typora theme library](https://theme.typoraio.cn).
2524

2625
Compared to the default theme style, the following aspects have been mainly modified:
27-
1. A simple and comfortable color scheme style
28-
2. Add rounded corner style
29-
3. Title Style
30-
4. Table Style
31-
5. Reference box style
32-
6. Image Style
33-
7. Code Highlight Style
34-
8. File Tree Style
35-
9. Document list style: changed to card structure
36-
10. Outline style: Added a directory tree structure, making the directory hierarchy more concise and clear
37-
11. Automatically follow the bright/dark theme mode of the system (the bright/dark theme can be set separately)
26+
1. Simple and comfortable color matching style
27+
2. Modify the title style
28+
3. Modify the table style
29+
4. Modify the reference box style
30+
5. Add rounded corner style to the image
31+
6. Add highlight style to code
32+
7. Modify file tree, outline, and document list styles
33+
8. Automatic follow system's light/dark theme mode (can be set separately for light/dark themes)
34+
9. Modify other UI styles
3835

3936
> [!IMPORTANT]
4037
>
4138
> **Attention**: This theme has only been tested in Windows and MacOS environments, and has not been tested in Linux environments. Please be aware when using it!
4239
4340

44-
# Effect
45-
![mdmdt-text](/media/theme/mdmdt/mdmdt-text.jpg)
46-
![mdmdt-source](/media/theme/mdmdt/mdmdt-source.jpg)
47-
![mdmdt-code](/media/theme/mdmdt/mdmdt-code.jpg)
48-
![mdmdt-list](/media/theme/mdmdt/mdmdt-list.jpg)
49-
![mdmdt-blockquote](/media/theme/mdmdt/mdmdt-blockquote.jpg)
50-
![mdmdt-mermaid](/media/theme/mdmdt/mdmdt-mermaid.jpg)
51-
![mdmdt-title](/media/theme/mdmdt/mdmdt-title.jpg)
41+
# Preview
42+
43+
![mdmdt-text](/media/theme/mdmdt/mdmdt-text.png)
44+
![mdmdt-source](/media/theme/mdmdt/mdmdt-source.png)
45+
![mdmdt-code](/media/theme/mdmdt/mdmdt-code.png)
46+
![mdmdt-list](/media/theme/mdmdt/mdmdt-list.png)
47+
![mdmdt-math](/media/theme/mdmdt/mdmdt-math.png)
48+
![mdmdt-blockquote](/media/theme/mdmdt/mdmdt-blockquote.png)
49+
![mdmdt-mermaid](/media/theme/mdmdt/mdmdt-mermaid.png)
50+
![mdmdt-title](/media/theme/mdmdt/mdmdt-title.png)
5251

5352
---
5453

5554
![mdmdt-ui-1](/media/theme/mdmdt/mdmdt-ui-1.png)
5655
![mdmdt-ui-2](/media/theme/mdmdt/mdmdt-ui-2.png)
57-
![mdmdt-ui-3](/media/theme/mdmdt/mdmdt-ui-3.jpg)
56+
![mdmdt-ui-3](/media/theme/mdmdt/mdmdt-ui-3.png)
5857
![mdmdt-ui-4](/media/theme/mdmdt/mdmdt-ui-4.png)
5958

59+
6060
# How to use it
6161
Using custom themes is very simple, as follows:
6262

@@ -74,13 +74,14 @@ If you only want to use a separate bright or dark theme, the method is as follow
7474

7575

7676
# Modify font
77-
If you are not satisfied with the font, you can modify the corresponding font as follows:
77+
If you are not satisfied with the font, you can refer to the following methods to modify the corresponding font:
7878

79-
1. Modify the font of the main text, find `body {font-family:"PingFang SC",..., !important;}``body.os-windows {font-family: Helvetica,..., !important;}` and `textarea {...}`, and add the font you want to use at the beginning of `font-family:`, such as `font-family: "name of the font you want to use", Helvetica, ..., !important;`
79+
1. Modify the text font and find: `font-family: "PingFang SC", "Microsoft YaHei", Arial, "Helvetica Neue", Helvetica, sans-serif;` , Then add the font you want to use in the first position after "font-family:", such as: `font-family: "The font name you want to use", "PingFang SC", ..., sans-serif;`
8080

81-
2. Modify the font of the code, find `code, tt {...}` and `pre {...}`, and add `font-family: "name of the font you want to use" !important;` Then modify `.os-windows pre,.os-windows code {font-family: initial !important;}` , such as `font-family: "name of the font you want to use" !important;`
81+
2. Modify the code font and find: `--monospace: "JetBrains Mono", "Source Code Pro", "Fira Code", Consolas, Inconsolata, "Cascadia Code", Monaco, "Ubuntu Mono", monospace;`,Then add the font you want to use in its first position, such as: `--monospace: "The font name you want to use", "JetBrains Mono", ..., monospace;`
82+
83+
**Attention: The prerequisite for changing the font is that the corresponding font is installed on your computer, otherwise the modification is invalid;** If you are not familiar with the "font-family" property of CSS, you can refer to it here: https://developer.mozilla.org/zh-CN/docs/Web/CSS/font-family
8284

83-
**Attention: The prerequisite for changing the font is that the corresponding font is installed on your computer, otherwise the modification is invalid.**
8485

8586
# Export HTML
8687

@@ -108,10 +109,12 @@ This plugin provides the following rich features:
108109

109110
Please refer to the plugin homepage for specific details of **mdtht.js** plugin.
110111

112+
---
113+
111114
**Export mdtht.js as an HTML rendering (Light theme)**
115+
<img src="/media/theme/mdmdt/mdtht-light.png"/>
112116

113117
---
114-
<img src="/media/theme/mdmdt/mdtht-light.png"/>**Export mdtht.js as an HTML rendering (Dark theme)**
115118

116-
---
119+
**Export mdtht.js as an HTML rendering (Dark theme)**
117120
<img src="/media/theme/mdmdt/mdtht-dark.png"/>
-399 KB
Binary file not shown.
653 KB
Loading

media/theme/mdmdt/mdmdt-code.jpg

-2.02 MB
Binary file not shown.

media/theme/mdmdt/mdmdt-code.png

1.03 MB
Loading

media/theme/mdmdt/mdmdt-cover.png

-1.13 MB
Binary file not shown.

media/theme/mdmdt/mdmdt-list.jpg

-385 KB
Binary file not shown.

media/theme/mdmdt/mdmdt-list.png

712 KB
Loading

media/theme/mdmdt/mdmdt-math.png

458 KB
Loading
-548 KB
Binary file not shown.

0 commit comments

Comments
 (0)