md2wx-cli 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- md2wx/__init__.py +3 -0
- md2wx/cli.py +299 -0
- md2wx/clipboard.py +169 -0
- md2wx/config.py +83 -0
- md2wx/containers.py +177 -0
- md2wx/converter.py +206 -0
- md2wx/fetcher.py +211 -0
- md2wx/gallery.py +199 -0
- md2wx/publisher.py +136 -0
- md2wx/styler.py +288 -0
- md2wx/theme.py +117 -0
- md2wx/theme_extractor.py +295 -0
- md2wx/themes/bauhaus.yaml +207 -0
- md2wx/themes/bold-green.yaml +198 -0
- md2wx/themes/bold-navy.yaml +197 -0
- md2wx/themes/default.yaml +217 -0
- md2wx/themes/github-tech.yaml +104 -0
- md2wx/validator.py +166 -0
- md2wx/wechat_api.py +141 -0
- md2wx_cli-0.2.0.dist-info/METADATA +184 -0
- md2wx_cli-0.2.0.dist-info/RECORD +25 -0
- md2wx_cli-0.2.0.dist-info/WHEEL +5 -0
- md2wx_cli-0.2.0.dist-info/entry_points.txt +2 -0
- md2wx_cli-0.2.0.dist-info/licenses/LICENSE +21 -0
- md2wx_cli-0.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
name: "bold-green"
|
|
2
|
+
description: "大胆森林绿风格:白底绿色主色,清新自然,适合环保健康和可持续发展内容"
|
|
3
|
+
colors:
|
|
4
|
+
primary: "#16a34a"
|
|
5
|
+
secondary: "#22c55e"
|
|
6
|
+
text: "#1a2e1a"
|
|
7
|
+
text_light: "#4a6a4a"
|
|
8
|
+
background: "#ffffff"
|
|
9
|
+
code_bg: "#f0fdf4"
|
|
10
|
+
code_color: "#15803d"
|
|
11
|
+
quote_border: "#16a34a"
|
|
12
|
+
quote_bg: "#f0fdf4"
|
|
13
|
+
border_radius: "8px"
|
|
14
|
+
darkmode:
|
|
15
|
+
background: "#0f1a0f"
|
|
16
|
+
text: "#d8e8d8"
|
|
17
|
+
text_light: "#8aaa8a"
|
|
18
|
+
primary: "#4ade80"
|
|
19
|
+
code_bg: "#162816"
|
|
20
|
+
code_color: "#6ee7a0"
|
|
21
|
+
quote_bg: "#142014"
|
|
22
|
+
quote_border: "#4ade80"
|
|
23
|
+
base_css: |
|
|
24
|
+
body {
|
|
25
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
line-height: 1.8;
|
|
28
|
+
color: #1a2e1a;
|
|
29
|
+
background: #ffffff;
|
|
30
|
+
max-width: 720px;
|
|
31
|
+
margin: 0 auto;
|
|
32
|
+
padding: 20px;
|
|
33
|
+
word-wrap: break-word;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
h1 {
|
|
37
|
+
font-size: 26px;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
color: #ffffff;
|
|
40
|
+
margin: 32px 0 16px 0;
|
|
41
|
+
padding: 12px 16px;
|
|
42
|
+
background: #16a34a;
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
line-height: 1.4;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
h2 {
|
|
48
|
+
font-size: 22px;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
color: #16a34a;
|
|
51
|
+
margin: 28px 0 14px 0;
|
|
52
|
+
padding: 8px 0 8px 12px;
|
|
53
|
+
border-left: 4px solid #16a34a;
|
|
54
|
+
line-height: 1.4;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
h3 {
|
|
58
|
+
font-size: 18px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
color: #15803d;
|
|
61
|
+
margin: 24px 0 12px 0;
|
|
62
|
+
line-height: 1.4;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
h4 {
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
color: #1a2e1a;
|
|
69
|
+
margin: 20px 0 10px 0;
|
|
70
|
+
line-height: 1.4;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
p {
|
|
74
|
+
font-size: 16px;
|
|
75
|
+
line-height: 1.8;
|
|
76
|
+
color: #1a2e1a;
|
|
77
|
+
margin: 12px 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
strong {
|
|
81
|
+
font-weight: 700;
|
|
82
|
+
color: #16a34a;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
em {
|
|
86
|
+
font-style: italic;
|
|
87
|
+
color: #4a6a4a;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
code {
|
|
91
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
background: #f0fdf4;
|
|
94
|
+
color: #15803d;
|
|
95
|
+
padding: 2px 6px;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
pre {
|
|
100
|
+
background: #f0fdf4;
|
|
101
|
+
color: #1a2e1a;
|
|
102
|
+
padding: 16px;
|
|
103
|
+
border-radius: 8px;
|
|
104
|
+
overflow-x: auto;
|
|
105
|
+
margin: 16px 0;
|
|
106
|
+
line-height: 1.6;
|
|
107
|
+
border: 1px solid #bbf7d0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
pre code {
|
|
111
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
112
|
+
font-size: 14px;
|
|
113
|
+
background: none;
|
|
114
|
+
color: #1a2e1a;
|
|
115
|
+
padding: 0;
|
|
116
|
+
border-radius: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
blockquote {
|
|
120
|
+
border-left: 4px solid #16a34a;
|
|
121
|
+
background: #f0fdf4;
|
|
122
|
+
margin: 16px 0;
|
|
123
|
+
padding: 12px 16px;
|
|
124
|
+
border-radius: 0 8px 8px 0;
|
|
125
|
+
color: #1a2e1a;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
blockquote p {
|
|
129
|
+
margin: 8px 0;
|
|
130
|
+
color: #1a2e1a;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
ul {
|
|
134
|
+
padding-left: 24px;
|
|
135
|
+
margin: 12px 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
ol {
|
|
139
|
+
padding-left: 24px;
|
|
140
|
+
margin: 12px 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
li {
|
|
144
|
+
font-size: 16px;
|
|
145
|
+
line-height: 1.8;
|
|
146
|
+
color: #1a2e1a;
|
|
147
|
+
margin: 6px 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
table {
|
|
151
|
+
width: 100%;
|
|
152
|
+
border-collapse: collapse;
|
|
153
|
+
margin: 16px 0;
|
|
154
|
+
font-size: 15px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
thead {
|
|
158
|
+
background: #16a34a;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
th {
|
|
162
|
+
background: #16a34a;
|
|
163
|
+
color: #ffffff;
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
padding: 10px 14px;
|
|
166
|
+
text-align: left;
|
|
167
|
+
border: 1px solid #16a34a;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
td {
|
|
171
|
+
padding: 10px 14px;
|
|
172
|
+
border: 1px solid #d1fae5;
|
|
173
|
+
color: #1a2e1a;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
tr {
|
|
177
|
+
background: #ffffff;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
img {
|
|
181
|
+
max-width: 100%;
|
|
182
|
+
height: auto;
|
|
183
|
+
display: block;
|
|
184
|
+
margin: 24px auto;
|
|
185
|
+
border-radius: 8px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
a {
|
|
189
|
+
color: #16a34a;
|
|
190
|
+
text-decoration: none;
|
|
191
|
+
font-weight: 500;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
hr {
|
|
195
|
+
border: none;
|
|
196
|
+
border-top: 2px solid #d1fae5;
|
|
197
|
+
margin: 24px 0;
|
|
198
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
name: "bold-navy"
|
|
2
|
+
description: "大胆藏青风格:白底藏青主色,稳重专业,适合金融商务和行业分析内容"
|
|
3
|
+
colors:
|
|
4
|
+
primary: "#1e3a5f"
|
|
5
|
+
secondary: "#2c5282"
|
|
6
|
+
text: "#1a1a2e"
|
|
7
|
+
text_light: "#4a5568"
|
|
8
|
+
background: "#ffffff"
|
|
9
|
+
code_bg: "#f0f4f8"
|
|
10
|
+
code_color: "#1e3a5f"
|
|
11
|
+
quote_border: "#1e3a5f"
|
|
12
|
+
quote_bg: "#f0f4f8"
|
|
13
|
+
border_radius: "6px"
|
|
14
|
+
darkmode:
|
|
15
|
+
background: "#0a0f1a"
|
|
16
|
+
text: "#d8dce8"
|
|
17
|
+
text_light: "#8890a0"
|
|
18
|
+
primary: "#5b8cc8"
|
|
19
|
+
code_bg: "#141a28"
|
|
20
|
+
code_color: "#7ca8e0"
|
|
21
|
+
quote_bg: "#101828"
|
|
22
|
+
quote_border: "#5b8cc8"
|
|
23
|
+
base_css: |
|
|
24
|
+
body {
|
|
25
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
line-height: 1.8;
|
|
28
|
+
color: #1a1a2e;
|
|
29
|
+
background: #ffffff;
|
|
30
|
+
max-width: 720px;
|
|
31
|
+
margin: 0 auto;
|
|
32
|
+
padding: 20px;
|
|
33
|
+
word-wrap: break-word;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
h1 {
|
|
37
|
+
font-size: 26px;
|
|
38
|
+
font-weight: 700;
|
|
39
|
+
color: #1e3a5f;
|
|
40
|
+
margin: 32px 0 16px 0;
|
|
41
|
+
padding-bottom: 12px;
|
|
42
|
+
border-bottom: 3px solid #1e3a5f;
|
|
43
|
+
line-height: 1.4;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
h2 {
|
|
47
|
+
font-size: 22px;
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
color: #1e3a5f;
|
|
50
|
+
margin: 28px 0 14px 0;
|
|
51
|
+
padding: 8px 0 8px 12px;
|
|
52
|
+
border-left: 4px solid #1e3a5f;
|
|
53
|
+
border-bottom: 1px solid #e2e8f0;
|
|
54
|
+
line-height: 1.4;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
h3 {
|
|
58
|
+
font-size: 18px;
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
color: #2c5282;
|
|
61
|
+
margin: 24px 0 12px 0;
|
|
62
|
+
line-height: 1.4;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
h4 {
|
|
66
|
+
font-size: 16px;
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
color: #1a1a2e;
|
|
69
|
+
margin: 20px 0 10px 0;
|
|
70
|
+
line-height: 1.4;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
p {
|
|
74
|
+
font-size: 16px;
|
|
75
|
+
line-height: 1.8;
|
|
76
|
+
color: #1a1a2e;
|
|
77
|
+
margin: 12px 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
strong {
|
|
81
|
+
font-weight: 700;
|
|
82
|
+
color: #1e3a5f;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
em {
|
|
86
|
+
font-style: italic;
|
|
87
|
+
color: #4a5568;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
code {
|
|
91
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
background: #f0f4f8;
|
|
94
|
+
color: #1e3a5f;
|
|
95
|
+
padding: 2px 6px;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
pre {
|
|
100
|
+
background: #1e3a5f;
|
|
101
|
+
color: #e2e8f0;
|
|
102
|
+
padding: 16px;
|
|
103
|
+
border-radius: 6px;
|
|
104
|
+
overflow-x: auto;
|
|
105
|
+
margin: 16px 0;
|
|
106
|
+
line-height: 1.6;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
pre code {
|
|
110
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
background: none;
|
|
113
|
+
color: #e2e8f0;
|
|
114
|
+
padding: 0;
|
|
115
|
+
border-radius: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
blockquote {
|
|
119
|
+
border-left: 4px solid #1e3a5f;
|
|
120
|
+
background: #f0f4f8;
|
|
121
|
+
margin: 16px 0;
|
|
122
|
+
padding: 12px 16px;
|
|
123
|
+
border-radius: 0 6px 6px 0;
|
|
124
|
+
color: #2c5282;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
blockquote p {
|
|
128
|
+
margin: 8px 0;
|
|
129
|
+
color: #2c5282;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
ul {
|
|
133
|
+
padding-left: 24px;
|
|
134
|
+
margin: 12px 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
ol {
|
|
138
|
+
padding-left: 24px;
|
|
139
|
+
margin: 12px 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
li {
|
|
143
|
+
font-size: 16px;
|
|
144
|
+
line-height: 1.8;
|
|
145
|
+
color: #1a1a2e;
|
|
146
|
+
margin: 6px 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
table {
|
|
150
|
+
width: 100%;
|
|
151
|
+
border-collapse: collapse;
|
|
152
|
+
margin: 16px 0;
|
|
153
|
+
font-size: 15px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
thead {
|
|
157
|
+
background: #1e3a5f;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
th {
|
|
161
|
+
background: #1e3a5f;
|
|
162
|
+
color: #ffffff;
|
|
163
|
+
font-weight: 600;
|
|
164
|
+
padding: 10px 14px;
|
|
165
|
+
text-align: left;
|
|
166
|
+
border: 1px solid #1e3a5f;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
td {
|
|
170
|
+
padding: 10px 14px;
|
|
171
|
+
border: 1px solid #e2e8f0;
|
|
172
|
+
color: #1a1a2e;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
tr {
|
|
176
|
+
background: #ffffff;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
img {
|
|
180
|
+
max-width: 100%;
|
|
181
|
+
height: auto;
|
|
182
|
+
display: block;
|
|
183
|
+
margin: 24px auto;
|
|
184
|
+
border-radius: 6px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
a {
|
|
188
|
+
color: #2c5282;
|
|
189
|
+
text-decoration: none;
|
|
190
|
+
font-weight: 500;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
hr {
|
|
194
|
+
border: none;
|
|
195
|
+
border-top: 2px solid #e2e8f0;
|
|
196
|
+
margin: 24px 0;
|
|
197
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
name: "default"
|
|
2
|
+
description: "现代极简杂志编辑风:Noto Serif 宋体衬线大标题,Slate-600 通透正文,曜石黑字重对比,浅灰蓝底色"
|
|
3
|
+
typography:
|
|
4
|
+
font_heading: '"Noto Serif SC", "Songti SC", STSong, Georgia, serif'
|
|
5
|
+
font_body: '-apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif'
|
|
6
|
+
font_code: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace'
|
|
7
|
+
|
|
8
|
+
components:
|
|
9
|
+
heading_h2:
|
|
10
|
+
style: "none"
|
|
11
|
+
color: "#0f172a"
|
|
12
|
+
font_size: "21px"
|
|
13
|
+
section_divider: true
|
|
14
|
+
strong:
|
|
15
|
+
color: "#0f172a"
|
|
16
|
+
font_weight: 600
|
|
17
|
+
callout:
|
|
18
|
+
style: "center-card"
|
|
19
|
+
background: "#eff6ff"
|
|
20
|
+
color: "#2563eb"
|
|
21
|
+
border_radius: "8px"
|
|
22
|
+
image:
|
|
23
|
+
border_radius: "8px"
|
|
24
|
+
box_shadow: "0 4px 18px rgba(15, 23, 42, 0.08)"
|
|
25
|
+
canvas:
|
|
26
|
+
background: "#f8fafc"
|
|
27
|
+
|
|
28
|
+
colors:
|
|
29
|
+
primary: "#0f172a"
|
|
30
|
+
secondary: "#2563eb"
|
|
31
|
+
text: "#475569"
|
|
32
|
+
text_light: "#64748b"
|
|
33
|
+
background: "#f8fafc"
|
|
34
|
+
code_bg: "#1e293b"
|
|
35
|
+
code_color: "#e2e8f0"
|
|
36
|
+
quote_border: "#2563eb"
|
|
37
|
+
quote_bg: "#eff6ff"
|
|
38
|
+
quote_color: "#2563eb"
|
|
39
|
+
border_radius: "8px"
|
|
40
|
+
darkmode:
|
|
41
|
+
background: "#090d16"
|
|
42
|
+
text: "#cbd5e1"
|
|
43
|
+
primary: "#f8fafc"
|
|
44
|
+
code_bg: "#0f172a"
|
|
45
|
+
code_color: "#e2e8f0"
|
|
46
|
+
quote_bg: "#172554"
|
|
47
|
+
|
|
48
|
+
base_css: |
|
|
49
|
+
body {
|
|
50
|
+
font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
51
|
+
font-size: 15px;
|
|
52
|
+
line-height: 1.9;
|
|
53
|
+
color: #475569;
|
|
54
|
+
background: #f8fafc;
|
|
55
|
+
max-width: 640px;
|
|
56
|
+
margin: 0 auto;
|
|
57
|
+
padding: 24px 16px;
|
|
58
|
+
word-break: break-word;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
h1 {
|
|
62
|
+
font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
|
|
63
|
+
font-size: 24px;
|
|
64
|
+
font-weight: 700;
|
|
65
|
+
color: #0f172a;
|
|
66
|
+
margin: 36px 0 20px 0;
|
|
67
|
+
line-height: 1.4;
|
|
68
|
+
text-align: left;
|
|
69
|
+
letter-spacing: -0.01em;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
h2 {
|
|
73
|
+
font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
|
|
74
|
+
font-size: 21px;
|
|
75
|
+
font-weight: 700;
|
|
76
|
+
color: #0f172a;
|
|
77
|
+
margin: 40px 0 16px 0;
|
|
78
|
+
line-height: 1.4;
|
|
79
|
+
letter-spacing: -0.01em;
|
|
80
|
+
border: none;
|
|
81
|
+
padding: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
h3 {
|
|
85
|
+
font-family: "Noto Serif SC", "Songti SC", STSong, Georgia, serif;
|
|
86
|
+
font-size: 18px;
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
color: #0f172a;
|
|
89
|
+
margin: 28px 0 12px 0;
|
|
90
|
+
line-height: 1.5;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
h4, h5, h6 {
|
|
94
|
+
font-size: 15px;
|
|
95
|
+
font-weight: 600;
|
|
96
|
+
color: #0f172a;
|
|
97
|
+
margin: 24px 0 10px 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
p {
|
|
101
|
+
margin: 0 0 16px 0;
|
|
102
|
+
line-height: 1.9;
|
|
103
|
+
font-size: 15px;
|
|
104
|
+
color: #475569;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
strong {
|
|
108
|
+
color: #0f172a;
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
em {
|
|
113
|
+
font-style: italic;
|
|
114
|
+
color: #334155;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
blockquote {
|
|
118
|
+
margin: 20px 0;
|
|
119
|
+
padding: 16px 20px;
|
|
120
|
+
background: #eff6ff;
|
|
121
|
+
color: #2563eb;
|
|
122
|
+
border-radius: 8px;
|
|
123
|
+
font-size: 15px;
|
|
124
|
+
font-weight: 600;
|
|
125
|
+
line-height: 1.8;
|
|
126
|
+
text-align: center;
|
|
127
|
+
border: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
blockquote p {
|
|
131
|
+
margin: 0;
|
|
132
|
+
color: #2563eb;
|
|
133
|
+
text-align: center;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
ul, ol {
|
|
137
|
+
margin: 16px 0;
|
|
138
|
+
padding-left: 24px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
li {
|
|
142
|
+
margin-bottom: 8px;
|
|
143
|
+
line-height: 1.8;
|
|
144
|
+
color: #475569;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
code {
|
|
148
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
149
|
+
font-size: 13.5px;
|
|
150
|
+
background: #f1f5f9;
|
|
151
|
+
color: #0f172a;
|
|
152
|
+
padding: 2px 6px;
|
|
153
|
+
border-radius: 4px;
|
|
154
|
+
border: 1px solid #e2e8f0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
pre {
|
|
158
|
+
margin: 20px 0;
|
|
159
|
+
padding: 16px 20px;
|
|
160
|
+
background: #1e293b;
|
|
161
|
+
border-radius: 8px;
|
|
162
|
+
overflow-x: auto;
|
|
163
|
+
line-height: 1.6;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
pre code {
|
|
167
|
+
background: transparent;
|
|
168
|
+
color: #e2e8f0;
|
|
169
|
+
padding: 0;
|
|
170
|
+
border-radius: 0;
|
|
171
|
+
font-size: 13.5px;
|
|
172
|
+
border: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
a {
|
|
176
|
+
color: #2563eb;
|
|
177
|
+
text-decoration: none;
|
|
178
|
+
font-weight: 500;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
hr {
|
|
182
|
+
border: none;
|
|
183
|
+
border-top: 1px solid #e2e8f0;
|
|
184
|
+
margin: 36px 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
img {
|
|
188
|
+
max-width: 100%;
|
|
189
|
+
height: auto;
|
|
190
|
+
border-radius: 8px;
|
|
191
|
+
display: block;
|
|
192
|
+
margin: 24px auto;
|
|
193
|
+
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
table {
|
|
197
|
+
width: 100%;
|
|
198
|
+
border-collapse: collapse;
|
|
199
|
+
margin: 20px 0;
|
|
200
|
+
font-size: 14px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
th, td {
|
|
204
|
+
padding: 10px 14px;
|
|
205
|
+
border: 1px solid #e2e8f0;
|
|
206
|
+
text-align: left;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
th {
|
|
210
|
+
background: #f1f5f9;
|
|
211
|
+
font-weight: 600;
|
|
212
|
+
color: #0f172a;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
tr:nth-child(even) {
|
|
216
|
+
background: #f8fafc;
|
|
217
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
name: github-tech
|
|
2
|
+
description: "GitHub 极简科技文档风(经典深炭黑、下沉细分割线、OneDark 代码高亮)"
|
|
3
|
+
|
|
4
|
+
colors:
|
|
5
|
+
primary: "#0969da"
|
|
6
|
+
secondary: "#57606a"
|
|
7
|
+
text: "#24292f"
|
|
8
|
+
background: "#ffffff"
|
|
9
|
+
code_bg: "#f6f8fa"
|
|
10
|
+
border: "#d0d7de"
|
|
11
|
+
highlight_bg: "#fff5b1"
|
|
12
|
+
darkmode:
|
|
13
|
+
text: "#c9d1d9"
|
|
14
|
+
background: "#0d1117"
|
|
15
|
+
primary: "#58a6ff"
|
|
16
|
+
code_bg: "#161b22"
|
|
17
|
+
quote_bg: "#161b22"
|
|
18
|
+
|
|
19
|
+
base_css: |
|
|
20
|
+
body {
|
|
21
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
22
|
+
color: var(--text);
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
line-height: 1.6;
|
|
25
|
+
letter-spacing: 0.544px;
|
|
26
|
+
}
|
|
27
|
+
h1 {
|
|
28
|
+
font-size: 30px;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
color: var(--text);
|
|
31
|
+
line-height: 1.25;
|
|
32
|
+
margin: 24px 0 16px;
|
|
33
|
+
padding-bottom: 0.3em;
|
|
34
|
+
border-bottom: 1px solid var(--border);
|
|
35
|
+
}
|
|
36
|
+
h2 {
|
|
37
|
+
font-size: 22px;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
color: var(--text);
|
|
40
|
+
line-height: 1.25;
|
|
41
|
+
margin: 24px 0 16px;
|
|
42
|
+
padding-bottom: 0.3em;
|
|
43
|
+
border-bottom: 1px solid var(--border);
|
|
44
|
+
}
|
|
45
|
+
h3 {
|
|
46
|
+
font-size: 18px;
|
|
47
|
+
font-weight: 600;
|
|
48
|
+
color: var(--text);
|
|
49
|
+
line-height: 1.25;
|
|
50
|
+
margin: 20px 0 12px;
|
|
51
|
+
}
|
|
52
|
+
p {
|
|
53
|
+
margin: 16px 0;
|
|
54
|
+
line-height: 1.6;
|
|
55
|
+
color: var(--text);
|
|
56
|
+
}
|
|
57
|
+
blockquote {
|
|
58
|
+
margin: 16px 0;
|
|
59
|
+
padding: 0 1em;
|
|
60
|
+
border-left: 0.25em solid var(--border);
|
|
61
|
+
color: var(--secondary);
|
|
62
|
+
background-color: transparent;
|
|
63
|
+
}
|
|
64
|
+
pre {
|
|
65
|
+
margin: 16px 0;
|
|
66
|
+
padding: 16px;
|
|
67
|
+
background-color: var(--code-bg);
|
|
68
|
+
border-radius: 6px;
|
|
69
|
+
line-height: 1.45;
|
|
70
|
+
}
|
|
71
|
+
code {
|
|
72
|
+
font-family: "SF Mono", Consolas, Monaco, "Courier New", monospace;
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
color: var(--text);
|
|
75
|
+
}
|
|
76
|
+
table {
|
|
77
|
+
width: 100%;
|
|
78
|
+
margin: 16px 0;
|
|
79
|
+
border-collapse: collapse;
|
|
80
|
+
font-size: 13px;
|
|
81
|
+
}
|
|
82
|
+
th {
|
|
83
|
+
background-color: #ffffff;
|
|
84
|
+
border: 1px solid var(--border);
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
color: var(--text);
|
|
87
|
+
padding: 6px 13px;
|
|
88
|
+
}
|
|
89
|
+
td {
|
|
90
|
+
border: 1px solid var(--border);
|
|
91
|
+
color: var(--text);
|
|
92
|
+
padding: 6px 13px;
|
|
93
|
+
}
|
|
94
|
+
hr {
|
|
95
|
+
margin: 24px 0;
|
|
96
|
+
border: none;
|
|
97
|
+
height: 0.25em;
|
|
98
|
+
background-color: var(--border);
|
|
99
|
+
}
|
|
100
|
+
mark {
|
|
101
|
+
background-color: var(--highlight-bg);
|
|
102
|
+
padding: 0 2px;
|
|
103
|
+
border-radius: 2px;
|
|
104
|
+
}
|