wewrite/toolkit/themes/github.yaml
wangzhuc 2fa0d7fa6d 排版引擎大升级:CJK修复 + 外链脚注 + 暗黑模式 + 容器语法 + 16主题 + 画廊UI
converter.py 新增 6 项能力:
- CJK-Latin 自动加空格(中英混排更易读)
- 加粗标点外移(修复微信渲染 bug)
- ul/ol 转 section(微信原生列表不稳定)
- 外链→编号脚注 + 文末参考链接(微信屏蔽外链)
- data-darkmode-* 属性注入(适配微信暗黑模式)
- :::dialogue / :::timeline / :::callout / :::quote 容器语法

主题系统:
- 从 4 个扩充到 16 个(含字节/少数派/报纸/包豪斯/水墨/午夜等风格)
- 所有主题新增 darkmode 色值
- 新增 gallery 命令:浏览器内 16 主题并排预览 + 一键复制

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 22:53:28 +08:00

198 lines
3.5 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: "github"
description: "GitHub风格白底蓝色链接等宽代码块简洁清晰适合技术文档和开发者内容"
colors:
primary: "#0969da"
secondary: "#0550ae"
text: "#1f2328"
text_light: "#656d76"
background: "#ffffff"
code_bg: "#f6f8fa"
code_color: "#0550ae"
quote_border: "#d0d7de"
quote_bg: "#f6f8fa"
border_radius: "6px"
darkmode:
background: "#0d1117"
text: "#e6edf3"
text_light: "#8b949e"
primary: "#58a6ff"
code_bg: "#161b22"
code_color: "#79c0ff"
quote_bg: "#161b22"
quote_border: "#30363d"
base_css: |
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
font-size: 16px;
line-height: 1.75;
color: #1f2328;
background: #ffffff;
max-width: 720px;
margin: 0 auto;
padding: 20px;
word-wrap: break-word;
}
h1 {
font-size: 26px;
font-weight: 600;
color: #1f2328;
margin: 32px 0 16px 0;
padding-bottom: 10px;
border-bottom: 1px solid #d1d9e0;
line-height: 1.4;
}
h2 {
font-size: 22px;
font-weight: 600;
color: #1f2328;
margin: 28px 0 14px 0;
padding-bottom: 8px;
border-bottom: 1px solid #d1d9e0;
line-height: 1.4;
}
h3 {
font-size: 18px;
font-weight: 600;
color: #1f2328;
margin: 24px 0 12px 0;
line-height: 1.4;
}
h4 {
font-size: 16px;
font-weight: 600;
color: #1f2328;
margin: 20px 0 10px 0;
line-height: 1.4;
}
p {
font-size: 16px;
line-height: 1.75;
color: #1f2328;
margin: 12px 0;
}
strong {
font-weight: 600;
color: #1f2328;
}
em {
font-style: italic;
color: #1f2328;
}
code {
font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
font-size: 13.6px;
background: rgba(175,184,193,0.2);
color: #1f2328;
padding: 3px 6px;
border-radius: 6px;
}
pre {
background: #f6f8fa;
color: #1f2328;
padding: 16px;
border-radius: 6px;
overflow-x: auto;
margin: 16px 0;
line-height: 1.5;
border: 1px solid #d1d9e0;
}
pre code {
font-family: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
font-size: 13.6px;
background: none;
color: #1f2328;
padding: 0;
border-radius: 0;
}
blockquote {
border-left: 4px solid #d0d7de;
background: transparent;
margin: 16px 0;
padding: 4px 16px;
border-radius: 0;
color: #656d76;
}
blockquote p {
margin: 8px 0;
color: #656d76;
}
ul {
padding-left: 28px;
margin: 12px 0;
}
ol {
padding-left: 28px;
margin: 12px 0;
}
li {
font-size: 16px;
line-height: 1.75;
color: #1f2328;
margin: 4px 0;
}
table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
font-size: 15px;
}
thead {
background: #f6f8fa;
}
th {
background: #f6f8fa;
color: #1f2328;
font-weight: 600;
padding: 8px 14px;
text-align: left;
border: 1px solid #d1d9e0;
}
td {
padding: 8px 14px;
border: 1px solid #d1d9e0;
color: #1f2328;
}
tr {
background: #ffffff;
}
img {
max-width: 100%;
height: auto;
display: block;
margin: 24px auto;
border-radius: 6px;
}
a {
color: #0969da;
text-decoration: none;
font-weight: 400;
}
hr {
border: none;
height: 2px;
background: #d1d9e0;
margin: 24px 0;
}