{"slug":"chinese-web-themes","title":"chinese-web-themes","summary":"中式网页主题库。当用户要\"中国风网页\"\"国风网站样式\"\"古风博客主题\"\"中式配色 CSS\"\"水墨风页面\"\"新中式网页\"\"给网站换个中国风皮肤\"时使用。提供 8 套可直接引入的 CSS 主题，内置中文排版规范。","platform":"Claude","tags":["design","development"],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-27T19:10:08.147054Z","repo":{"url":"https://github.com/sanhuang520-ship-it/awesome-chinese-ai-tools","stars":12,"forks":7,"license":"MIT","updatedAt":"2026-11-23T08:26:40Z"},"bodyHtml":"<hr>\n<h2>name: chinese-web-themes\ndescription: 中式网页主题库。当用户要\"中国风网页\"\"国风网站样式\"\"古风博客主题\"\"中式配色 CSS\"\"水墨风页面\"\"新中式网页\"\"给网站换个中国风皮肤\"时使用。提供 8 套可直接引入的 CSS 主题，内置中文排版规范。\nmetadata:\nauthor: sanhuang520-ship-it\ncategory: design\ntags: design, chinese, ui, development</h2>\n<h1>中式网页主题库</h1>\n<p><strong>一个事实</strong>：主流网页主题库里有日式极简，却几乎没有中式的。</p>\n<p>我们查过某个 32 套主题的知名库——有 <code>japanese-minimal</code>、<code>tokyo-night</code>、<code>nord</code>、<code>gruvbox</code>，\n<strong>一套中式的都没有</strong>。中文用户想做国风网页，只能自己从零调色。</p>\n<h2>什么时候用</h2>\n<p>做中国风网页/博客/文档站、给现有站换中式皮肤、要一套中式配色方案、中文长文阅读页排版。</p>\n<h2>8 套主题</h2>\n<table>\n<thead>\n<tr>\n<th>主题</th>\n<th><code>data-theme</code></th>\n<th>色系</th>\n<th>适合</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>水墨</strong></td>\n<td><code>ink</code></td>\n<td>素白宣纸 · 墨黑</td>\n<td>随笔、诗词、极简博客</td>\n</tr>\n<tr>\n<td><strong>青绿</strong></td>\n<td><code>azurite</code></td>\n<td>石青 · 石绿</td>\n<td>文旅、山水、《千里江山图》感</td>\n</tr>\n<tr>\n<td><strong>宋韵</strong></td>\n<td><code>song</code></td>\n<td>天青 · 素雅</td>\n<td>茶文化、克制的品牌站</td>\n</tr>\n<tr>\n<td><strong>敦煌</strong></td>\n<td><code>dunhuang</code></td>\n<td>土红 · 石青</td>\n<td>文化 IP、历史题材</td>\n</tr>\n<tr>\n<td><strong>朱砂</strong></td>\n<td><code>vermilion</code></td>\n<td>中国红 · 墨</td>\n<td>节庆、有力度的主张</td>\n</tr>\n<tr>\n<td><strong>新中式</strong></td>\n<td><code>neo</code></td>\n<td>木色 · 素白</td>\n<td>家居、当代品牌</td>\n</tr>\n<tr>\n<td><strong>竹韵</strong></td>\n<td><code>bamboo</code></td>\n<td>竹青 · 米白</td>\n<td>清雅、自然、健康</td>\n</tr>\n<tr>\n<td><strong>夜宴</strong></td>\n<td><code>night</code></td>\n<td>墨底 · 暗金</td>\n<td>深色模式</td>\n</tr>\n</tbody>\n</table>\n<p>另有 <code>auto</code> —— 跟随系统深色偏好。</p>\n<h2>怎么用</h2>\n<p><strong>1. 引入样式</strong></p>\n<pre><code>&lt;html lang=\"zh-CN\" data-theme=\"ink\"&gt;\n  &lt;link rel=\"stylesheet\" href=\"themes.css\"&gt;\n</code></pre>\n<p><strong>2. 切换主题</strong>（改属性即可，无需重载）</p>\n<pre><code>document.documentElement.dataset.theme = 'azurite';\n</code></pre>\n<p><strong>3. 可选装饰</strong></p>\n<pre><code>&lt;html data-theme=\"ink\" data-paper=\"on\"&gt;      &lt;!-- 宣纸纹理 --&gt;\n&lt;html data-theme=\"song\" data-indent=\"print\"&gt; &lt;!-- 首行缩进（印刷风）--&gt;\n</code></pre>\n<h3>接入现有网站时</h3>\n<p>用户要求保留原有正文、代码块或组件样式时，不要把主题 CSS 当作整站重置。优先给最短接入方案，并在上线清单里<strong>逐项写出</strong>这 6 类检查；不能因为其中一项看似与配色无关而省略：</p>\n<ol>\n<li><strong>正文</strong>：行宽、字号、行高、段落间距没有被主题意外覆盖。</li>\n<li><strong>移动端</strong>：窄屏无横向溢出，长标题、图片和表格仍可用。</li>\n<li><strong>代码块</strong>：字体、背景、语法高亮、换行或横向滚动保持原行为。</li>\n<li><strong>样式覆盖</strong>：确认样式加载顺序、选择器优先级和生产缓存；优先只覆盖变量。</li>\n<li><strong>授权</strong>：主题本身只用系统字体；若项目另加字体、图片或纹理，必须核对商用许可与署名要求。</li>\n<li><strong>无障碍</strong>：正文/链接/焦点对比度、键盘焦点和减少动态效果偏好可辨识。</li>\n</ol>\n<p>如果用户只要审查或方案，不要生成整份 CSS，也不要为了“演示”修改文件。</p>\n<h2>关键：中文排版已内置</h2>\n<p>这是和普通主题库最大的区别——<strong>不只是换颜色，排版规范也写进去了</strong>：</p>\n<table>\n<thead>\n<tr>\n<th>项目</th>\n<th>值</th>\n<th>为什么</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>行高</td>\n<td><code>1.75</code></td>\n<td>中文字符方正，西文常用的 1.5 会挤</td>\n</tr>\n<tr>\n<td>行宽</td>\n<td><code>38em</code></td>\n<td>中文一行 30-40 字最舒服</td>\n</tr>\n<tr>\n<td>字体栈</td>\n<td>西文在前、中文在后</td>\n<td>混排时英文才好看</td>\n</tr>\n<tr>\n<td>断行</td>\n<td><code>line-break: strict</code></td>\n<td>标点不出现在行首（避头尾）</td>\n</tr>\n<tr>\n<td>强调</td>\n<td>着重号，不用斜体</td>\n<td><strong>中文没有真斜体</strong>，会被拉斜变形</td>\n</tr>\n<tr>\n<td>标题</td>\n<td>衬线字体</td>\n<td>宋体标题更有中文书卷气</td>\n</tr>\n</tbody>\n</table>\n<h2>CSS 变量（可覆盖）</h2>\n<p>每套主题定义这 8 个：</p>\n<pre><code>--bg           页面底色\n--surface      卡片/代码块底色\n--line         分隔线\n--ink          正文文字\n--ink-strong   标题/强调\n--ink-soft     次要文字\n--accent       强调色（链接、引用条）\n--accent-weak  强调色的浅版\n</code></pre>\n<p>想微调，直接在自己的 CSS 里覆盖：</p>\n<pre><code>[data-theme=\"ink\"] { --accent: #8C3A2E; }\n</code></pre>\n<h2>无障碍</h2>\n<p>8 套主题的正文对比度实测在 <strong>9.4 – 12.2</strong>，均超过 WCAG AA 标准（4.5）。</p>\n<h2>选择建议</h2>\n<table>\n<thead>\n<tr>\n<th>你的内容</th>\n<th>推荐</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>文字为主的长阅读</td>\n<td><code>ink</code>、<code>song</code>（留白多、不抢戏）</td>\n</tr>\n<tr>\n<td>需要一点色彩</td>\n<td><code>azurite</code>、<code>bamboo</code></td>\n</tr>\n<tr>\n<td>要有文化厚度</td>\n<td><code>dunhuang</code></td>\n</tr>\n<tr>\n<td>要热闹/有力</td>\n<td><code>vermilion</code></td>\n</tr>\n<tr>\n<td>商业品牌</td>\n<td><code>neo</code></td>\n</tr>\n<tr>\n<td>夜间阅读</td>\n<td><code>night</code></td>\n</tr>\n</tbody>\n</table>\n<h2>边界</h2>\n<ol>\n<li><strong>不替你决定商用字体</strong>。主题用的是系统字体栈，不引入商用字体。若要用方正/汉仪等付费字体，授权自行核实。</li>\n<li><strong>不做完整 UI 框架</strong>。这是排版主题，不含按钮、表单、栅格等组件库。</li>\n<li><strong>配色是起点不是终点</strong>。品牌项目建议在此基础上按品牌色微调。</li>\n<li><strong>文化元素慎用</strong>。若在主题外另加龙凤祥云等纹样，注意寓意与场合（参见 <code>guochao-visual-cn</code> 的纹样速查）。</li>\n</ol>\n<h2>相关</h2>\n<ul>\n<li><code>chinese-typography</code> —— 中文排版规范详解（本主题的排版部分基于它）</li>\n<li><code>guochao-visual-cn</code> —— 国潮视觉，做图用（本主题做网页用）</li>\n</ul>\n","files":[{"path":"demo.html","sizeBytes":3822,"isText":false},{"path":"SKILL.md","sizeBytes":5199,"isText":true},{"path":"themes.css","sizeBytes":6821,"isText":false}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-27T19:11:50.918481Z","sha256":"FC04EF963E33BF81D5617258BAB68A871028BE0B4FD6CA937E51E367F83C82D6","sizeBytes":7904},"review":null,"source":{"repositoryUrl":"https://github.com/sanhuang520-ship-it/awesome-chinese-ai-tools","path":"skills/chinese-web-themes","license":"MIT","commit":"9abdb1f69f608755478e3067322c32819e60fbae","subtreeSha":"E9DF103685B6165E2A854A47ED4CCA1CB717213BA0A76CB32330EB56A6CBC5D9","lastSyncedAt":"2026-11-27T19:10:06.73682Z"},"reviewedAt":"2026-11-27T19:16:35.592421Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/sanhuang520-ship-it/awesome-chinese-ai-tools/tree/main/skills/chinese-web-themes"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install sanhuang520-ship-it-awesome-chinese-ai-tools@llmmart"},{"target":"git","command":"git clone https://github.com/sanhuang520-ship-it/awesome-chinese-ai-tools.git"}]}