sai-assets可复用网页资产库

墨河 · 深色单色蓝(群青)

mohe-mono-blue v1.0.0 MIT 主题 · 配色与字体 12 文件 · 71 KB
新窗口 ↗
载入预览…

近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文;适用:整套 UI 只用一个色相(背景的 218–223° 蓝),深度靠明度梯而非新色相;强调色取背景中光带同 hue 同饱和(h218 s52)再抬明度,别用高饱和电蓝;卡片半透明(rgba(12,22,44,.20))浮在背景上,让背景墨河透出来;分类色只用同色相的明度/微彩差(亮蓝/中蓝灰/近中性冷灰蓝/蓝),靠文字标签辨义;竖排书脊刊头:writing-mode:vertical-rl + text-orientation:upright,衬线 900 字重;深色底衬线标题可用,正文一律无衬线(衬线细体在深底会糊)

不适用场景

禁用:4 个饱和分类色相(与蓝场打架,是「五颜六色」的根因);高饱和电蓝强调色(h218 s86 = 读作另一个蓝);在注释/代码里保留被 grep 的字符串(会让产物断言假红);深色底用细体衬线正文(锯齿糊)

元数据

类目
主题 · 配色与字体
版本
v1.0.0
许可
MIT
规模
12 文件 · 71 KB
来源
sai-theme-lab · themes/mohe-mono-blue.json

标签

  • dark
  • theme
  • ink
  • blue
  • serif
  • cool
  • monochrome
  • card

验证证据

2026-11-03 · python packs/mohe-mono-blue/scripts/assert_tokens.py

PASS assert_tokens mohe-mono-blue | variants=1 keys=15 hex=10 rgba=5 effects=0 contrast=ink/bg=17.60 onAccent/accent=6.37 | not_in_palette=['red', 'green']

归属与许可

  • Sai Theme Lab · themes/mohe-mono-blue.json · MIT
    原色板来源(旧库原子,只读取用)

取用

固定版本(CDN)
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/nakamotosai/sai-assets@pack/[email protected]/packs/mohe-mono-blue/css/default.css">
raw 直取(跟随 main)
curl -O https://raw.githubusercontent.com/nakamotosai/sai-assets/main/packs/mohe-mono-blue/SKILL.md
仓库内落地
python scripts/apply.py mohe-mono-blue --to <项目目录>
整包下载
https://assets.ouuut.com/downloads/mohe-mono-blue.zip

源码与规则

pack.json
{
  "schema": 1,
  "id": "mohe-mono-blue",
  "title": "墨河 · 深色单色蓝(群青)",
  "kind": "theme",
  "category": "themes",
  "version": "1.0.0",
  "license": "MIT",
  "attribution": [
    {
      "name": "Sai Theme Lab · themes/mohe-mono-blue.json",
      "license": "MIT",
      "what": "原色板来源(旧库原子,只读取用)"
    }
  ],
  "origin": {
    "project": "sai-theme-lab",
    "path": "themes/mohe-mono-blue.json",
    "derived_from": null
  },
  "entry": "SKILL.md",
  "files": {
    "tokens": [
      "tokens/absolute.json",
      "tokens/index.json",
      "tokens/semantic/mohe-mono-blue.json"
    ],
    "css": [
      "css/default.css",
      "css/all.css",
      "css/themes.css"
    ],
    "usage": "docs/usage.md",
    "assert": "scripts/assert_tokens.py",
    "preview": "preview/index.html"
  },
  "tags": [
    "dark",
    "theme",
    "ink",
    "blue",
    "serif",
    "cool",
    "monochrome",
    "card"
  ],
  "when": "近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文;适用:整套 UI 只用一个色相(背景的 218–223° 蓝),深度靠明度梯而非新色相;强调色取背景中光带同 hue 同饱和(h218 s52)再抬明度,别用高饱和电蓝;卡片半透明(rgba(12,22,44,.20))浮在背景上,让背景墨河透出来;分类色只用同色相的明度/微彩差(亮蓝/中蓝灰/近中性冷灰蓝/蓝),靠文字标签辨义;竖排书脊刊头:writing-mode:vertical-rl + text-orientation:upright,衬线 900 字重;深色底衬线标题可用,正文一律无衬线(衬线细体在深底会糊)",
  "not_for": "禁用:4 个饱和分类色相(与蓝场打架,是「五颜六色」的根因);高饱和电蓝强调色(h218 s86 = 读作另一个蓝);在注释/代码里保留被 grep 的字符串(会让产物断言假红);深色底用细体衬线正文(锯齿糊)",
  "default_variant": "mohe-mono-blue",
  "verified": {
    "date": "2026-11-03",
    "how": "python packs/mohe-mono-blue/scripts/assert_tokens.py",
    "evidence": "PASS assert_tokens mohe-mono-blue | variants=1 keys=15 hex=10 rgba=5 effects=0 contrast=ink/bg=17.60 onAccent/accent=6.37 | not_in_palette=['red', 'green']"
  },
  "canonical_home": null,
  "changelog": [
    "1.0.0:语义层按 WCAG ≥4.5:1 修正 accent/on-accent 配对(见 tokens/semantic 的 a11y 与 docs/usage.md);tokens/absolute.json 未改。"
  ]
}
css/default.css
/* Default = mohe-mono-blue — 只链接这一份即最快 apply */
/* 墨河 · 深色单色蓝(群青) — 近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文 */
/* 语义变量与 --theme-* 别名双发;字体/圆角透传源令牌 */

:root,
[data-theme="mohe-mono-blue"],
.theme-mohe-mono-blue {
  color-scheme: dark;
  --bg: #04070F;
  --theme-bg: #04070F;
  --surface: rgba(80,110,170,.10);
  --theme-surface: rgba(80,110,170,.10);
  --surface-2: #101B33;
  --theme-surface-2: #101B33;
  --border: rgba(104,145,217,.14);
  --theme-border: rgba(104,145,217,.14);
  --ink: #EAF0FA;
  --theme-ink: #EAF0FA;
  --ink-muted: #9EB0CC;
  --theme-ink-muted: #9EB0CC;
  --ink-dim: #9EB0CC;
  --theme-ink-dim: #9EB0CC;
  --accent: #6891d9;
  --theme-accent: #6891d9;
  --link: #9fbdf0;
  --theme-link: #9fbdf0;
  --panel: rgba(12,22,44,.20);
  --theme-panel: rgba(12,22,44,.20);
  --ink-faint: #6B7E9C;
  --theme-ink-faint: #6B7E9C;
  --border-strong: rgba(104,145,217,.34);
  --theme-border-strong: rgba(104,145,217,.34);
  --line: rgba(104,145,217,.14);
  --theme-line: rgba(104,145,217,.14);
  --void: #00000F;
  --theme-void: #00000F;
  --on-accent: #04070F;
  --theme-on-accent: #04070F;
  --radius-sm: 8px;
  --theme-radius-sm: 8px;
  --radius-md: 12px;
  --theme-radius-md: 12px;
  --radius-lg: 12px;
  --theme-radius-lg: 12px;
  --font-display: "Source Han Serif SC","Noto Serif SC",serif;
  --theme-font-display: "Source Han Serif SC","Noto Serif SC",serif;
  --font-body: "Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif;
  --theme-font-body: "Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif;
  --font-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --theme-font-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}
css/all.css
/* 墨河 · 深色单色蓝(群青) — 全部变体 + 基础 chrome */
/* 近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文 */
/* 含 :root:单主题整站直接链接本文件 */

:root,
[data-theme="mohe-mono-blue"],
.theme-mohe-mono-blue {
  color-scheme: dark;
  --bg: #04070F;
  --theme-bg: #04070F;
  --surface: rgba(80,110,170,.10);
  --theme-surface: rgba(80,110,170,.10);
  --surface-2: #101B33;
  --theme-surface-2: #101B33;
  --border: rgba(104,145,217,.14);
  --theme-border: rgba(104,145,217,.14);
  --ink: #EAF0FA;
  --theme-ink: #EAF0FA;
  --ink-muted: #9EB0CC;
  --theme-ink-muted: #9EB0CC;
  --ink-dim: #9EB0CC;
  --theme-ink-dim: #9EB0CC;
  --accent: #6891d9;
  --theme-accent: #6891d9;
  --link: #9fbdf0;
  --theme-link: #9fbdf0;
  --panel: rgba(12,22,44,.20);
  --theme-panel: rgba(12,22,44,.20);
  --ink-faint: #6B7E9C;
  --theme-ink-faint: #6B7E9C;
  --border-strong: rgba(104,145,217,.34);
  --theme-border-strong: rgba(104,145,217,.34);
  --line: rgba(104,145,217,.14);
  --theme-line: rgba(104,145,217,.14);
  --void: #00000F;
  --theme-void: #00000F;
  --on-accent: #04070F;
  --theme-on-accent: #04070F;
  --radius-sm: 8px;
  --theme-radius-sm: 8px;
  --radius-md: 12px;
  --theme-radius-md: 12px;
  --radius-lg: 12px;
  --theme-radius-lg: 12px;
  --font-display: "Source Han Serif SC","Noto Serif SC",serif;
  --theme-font-display: "Source Han Serif SC","Noto Serif SC",serif;
  --font-body: "Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif;
  --theme-font-body: "Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif;
  --font-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --theme-font-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}

/* 基础 chrome(opt-in):<body class="theme-apply"> 或 [data-theme-apply] 上底色与基础件 */
.theme-apply,
[data-theme-apply] {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body, system-ui, sans-serif);
  line-height: 1.6;
}

.theme-apply a,
[data-theme-apply] a {
  color: var(--link, var(--accent));
}

.theme-apply code,
.theme-apply pre,
[data-theme-apply] code,
[data-theme-apply] pre {
  font-family: var(--font-mono, ui-monospace, monospace);
  background: var(--code-bg, var(--surface2, var(--surface)));
  border-radius: var(--radius-sm, 4px);
}

.theme-apply .panel,
[data-theme-apply] .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 6px);
  box-shadow: none;
}

.theme-apply .btn-primary,
[data-theme-apply] .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm, 4px);
}
css/themes.css
/* 墨河 · 深色单色蓝(群青) · 共存版:只出 [data-theme] / .theme-<id> 作用域,不含 :root
   多主题应用(站点自带主题切换器)用这一份,避免全局覆盖项目自己的 token;
   单主题直接应用请用 css/default.css。color-scheme 只在 [data-theme] 块里给。 */

[data-theme="mohe-mono-blue"],
.theme-mohe-mono-blue {
  color-scheme: dark;
  --bg: #04070F;
  --theme-bg: #04070F;
  --surface: rgba(80,110,170,.10);
  --theme-surface: rgba(80,110,170,.10);
  --surface-2: #101B33;
  --theme-surface-2: #101B33;
  --border: rgba(104,145,217,.14);
  --theme-border: rgba(104,145,217,.14);
  --ink: #EAF0FA;
  --theme-ink: #EAF0FA;
  --ink-muted: #9EB0CC;
  --theme-ink-muted: #9EB0CC;
  --ink-dim: #9EB0CC;
  --theme-ink-dim: #9EB0CC;
  --accent: #6891d9;
  --theme-accent: #6891d9;
  --link: #9fbdf0;
  --theme-link: #9fbdf0;
  --panel: rgba(12,22,44,.20);
  --theme-panel: rgba(12,22,44,.20);
  --ink-faint: #6B7E9C;
  --theme-ink-faint: #6B7E9C;
  --border-strong: rgba(104,145,217,.34);
  --theme-border-strong: rgba(104,145,217,.34);
  --line: rgba(104,145,217,.14);
  --theme-line: rgba(104,145,217,.14);
  --void: #00000F;
  --theme-void: #00000F;
  --on-accent: #04070F;
  --theme-on-accent: #04070F;
  --radius-sm: 8px;
  --theme-radius-sm: 8px;
  --radius-md: 12px;
  --theme-radius-md: 12px;
  --radius-lg: 12px;
  --theme-radius-lg: 12px;
  --font-display: "Source Han Serif SC","Noto Serif SC",serif;
  --theme-font-display: "Source Han Serif SC","Noto Serif SC",serif;
  --font-body: "Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif;
  --theme-font-body: "Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif;
  --font-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --theme-font-mono: ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}

/* 基础 chrome(opt-in):<body class="theme-apply"> 或 [data-theme-apply] 上底色与基础件 */
.theme-apply,
[data-theme-apply] {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body, system-ui, sans-serif);
  line-height: 1.6;
}

.theme-apply a,
[data-theme-apply] a {
  color: var(--link, var(--accent));
}

.theme-apply code,
.theme-apply pre,
[data-theme-apply] code,
[data-theme-apply] pre {
  font-family: var(--font-mono, ui-monospace, monospace);
  background: var(--code-bg, var(--surface2, var(--surface)));
  border-radius: var(--radius-sm, 4px);
}

.theme-apply .panel,
[data-theme-apply] .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 6px);
  box-shadow: none;
}

.theme-apply .btn-primary,
[data-theme-apply] .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm, 4px);
}
tokens/absolute.json
{
  "id": "mohe-mono-blue",
  "name": "墨河 · 深色单色蓝(群青)",
  "mode": "dark",
  "signature": "近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文",
  "source": "themes/mohe-mono-blue.json",
  "colors": {
    "bg": "#04070F",
    "panel": "rgba(12,22,44,.20)",
    "panelRaise": "#101B33",
    "surface": "rgba(80,110,170,.10)",
    "ink": "#EAF0FA",
    "inkDim": "#9EB0CC",
    "inkFaint": "#6B7E9C",
    "accent": "#6891d9",
    "accentInk": "#9fbdf0",
    "border": "rgba(104,145,217,.14)",
    "borderStrong": "rgba(104,145,217,.34)",
    "line": "rgba(104,145,217,.14)",
    "void": "#00000F"
  }
}
tokens/index.json
{
  "default": "mohe-mono-blue",
  "themes": [
    {
      "id": "mohe-mono-blue",
      "name": "墨河 · 深色单色蓝(群青)",
      "mode": "dark",
      "path": "tokens/semantic/mohe-mono-blue.json",
      "default": true
    }
  ]
}
tokens/semantic/mohe-mono-blue.json
{
  "id": "mohe-mono-blue",
  "name": "墨河 · 深色单色蓝(群青)",
  "mode": "dark",
  "signature": "近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文",
  "colors": {
    "bg": "#04070F",
    "surface": "rgba(80,110,170,.10)",
    "surface2": "#101B33",
    "border": "rgba(104,145,217,.14)",
    "ink": "#EAF0FA",
    "inkMuted": "#9EB0CC",
    "inkDim": "#9EB0CC",
    "accent": "#6891d9",
    "link": "#9fbdf0",
    "panel": "rgba(12,22,44,.20)",
    "inkFaint": "#6B7E9C",
    "borderStrong": "rgba(104,145,217,.34)",
    "line": "rgba(104,145,217,.14)",
    "void": "#00000F",
    "onAccent": "#04070F"
  },
  "fonts": {
    "display": "\"Source Han Serif SC\",\"Noto Serif SC\",serif",
    "body": "\"Noto Sans SC\",\"Noto Sans CJK SC\",\"Source Han Sans SC\",\"Microsoft YaHei\",system-ui,sans-serif",
    "mono": "ui-monospace,SFMono-Regular,Menlo,Consolas,\"Liberation Mono\",monospace"
  },
  "radius": {
    "sm": "8px",
    "md": "12px",
    "lg": "12px"
  },
  "derived": {
    "bg": "bg",
    "surface": "surface",
    "surface2": "panelRaise",
    "border": "border",
    "ink": "ink",
    "inkMuted": "inkDim",
    "inkDim": "inkDim",
    "accent": "accent",
    "link": "accentInk",
    "onAccent": "bg"
  },
  "a11y": {
    "contrast_min": 4.5,
    "pairs": {
      "ink/bg": 17.6,
      "onAccent/accent": 6.37
    },
    "adjusted": true,
    "notes": [
      "源无可用 on-accent 配对;--on-accent 取源 bg(#04070F),配对 6.37:1"
    ]
  }
}
docs/usage.md
# 墨河 · 深色单色蓝(群青) · 用法与配对规则

`mohe-mono-blue` · mode `dark` · 默认变体 `mohe-mono-blue`

**signature**:近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文

- 原色表:`tokens/absolute.json`(源盘 `colors` 原样,不改名不近似)。
- 语义映射:`tokens/semantic/mohe-mono-blue.json`(`derived` 记每个语义键取自哪个源键;`a11y` 记对比度实测)。
- 变量双发:裸语义名(`--bg`)与 `--theme-` 前缀别名(`--theme-bg`)同值,便于接既有项目。
- 你不需要发明 hex:缺哪个角色就用对应变量,不要拿别的色近似。

## 变体表

| id | mode | 何时用 |
|---|---|---|
| `mohe-mono-blue` | `dark` | **默认**;近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文 |

## 变量表(语义名 ↔ 前缀别名)

| 语义键 | CSS 变量 | 别名 |
|---|---|---|
| `bg` | `--bg` | `--theme-bg` |
| `surface` | `--surface` | `--theme-surface` |
| `surface2` | `--surface-2` | `--theme-surface-2` |
| `border` | `--border` | `--theme-border` |
| `ink` | `--ink` | `--theme-ink` |
| `inkMuted` | `--ink-muted` | `--theme-ink-muted` |
| `inkDim` | `--ink-dim` | `--theme-ink-dim` |
| `accent` | `--accent` | `--theme-accent` |
| `link` | `--link` | `--theme-link` |
| `panel` | `--panel` | `--theme-panel` |
| `inkFaint` | `--ink-faint` | `--theme-ink-faint` |
| `borderStrong` | `--border-strong` | `--theme-border-strong` |
| `line` | `--line` | `--theme-line` |
| `void` | `--void` | `--theme-void` |
| `onAccent` | `--on-accent` | `--theme-on-accent` |

## 配对规则(谁配谁)

| 用途 | 变量 | 口径 |
|---|---|---|
| 正文 / 段落 | `--ink` | 页面主文字色,始终用于 `--bg` 之上 |
| 次要文字 | `--ink-muted` / `--ink-dim` | 说明、元信息、时间戳;`--ink-muted` 比 `--ink-dim` 更接近正文 |
| 卡面 / 面板 | `--surface` + `--border` | 卡底用 `--surface`,描边用 `--border`;需要抬升时 `--surface-2` |
| 主按钮 | `--accent` + `--on-accent` | 一个视区只放一个主 CTA;文字色必须用 `--on-accent`(实测 6.37:1) |
| 链接 | `--link` | 链接一律用 `--link`;**强调色(`--accent`)不与链接同色** —— 本主题 `--link` = `#9fbdf0` 与 `--accent` = `#6891d9` 不同值,可直接并置 |
| 危险 / 破坏性 | `--red` | 删除、错误、警报(源色板无 red 角色,本包不发该变量) |
| 成功 | `--green` | 通过、已完成(源色板无 green 角色,本包不发该变量) |
| 页面底 | `--bg` / `--bg-deep` | 大底用 `--bg`,更深的分层用 `--bg-deep` |

一行口径:正文 `--ink`,次要 `--ink-muted`/`--ink-dim`,卡面 `--surface`+`--border`,主按钮 `--accent`+`--on-accent`,链接 `--link`,危险 `--red`,成功 `--green`;强调色不做链接色。

## 字体配方(源 `fonts` 透传)

| 角色 | 变量 | 栈 |
|---|---|---|
| `display` | `--font-display` | "Source Han Serif SC","Noto Serif SC",serif |
| `body` | `--font-body` | "Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC","Microsoft YaHei",system-ui,sans-serif |
| `mono` | `--font-mono` | ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace |

- 标题用 `var(--font-display)`,正文 `var(--font-body)`,代码/数字 `var(--font-mono)`;字重与字号档位不在本包内,按下方 `do` 的约束落地。

## 圆角(源 `radius` 透传)

| 变量 | 值 |
|---|---|
| `--radius-sm` | 8px |
| `--radius-md` | 12px |
| `--radius-lg` | 12px |

## 推荐做法(源 `do`)

- 整套 UI 只用一个色相(背景的 218–223° 蓝),深度靠明度梯而非新色相
- 强调色取背景中光带同 hue 同饱和(h218 s52)再抬明度,别用高饱和电蓝
- 卡片半透明(rgba(12,22,44,.20))浮在背景上,让背景墨河透出来
- 分类色只用同色相的明度/微彩差(亮蓝/中蓝灰/近中性冷灰蓝/蓝),靠文字标签辨义
- 竖排书脊刊头:writing-mode:vertical-rl + text-orientation:upright,衬线 900 字重
- 深色底衬线标题可用,正文一律无衬线(衬线细体在深底会糊)

## 反模式(源 `dont`)

- 4 个饱和分类色相(与蓝场打架,是「五颜六色」的根因)
- 高饱和电蓝强调色(h218 s86 = 读作另一个蓝)
- 在注释/代码里保留被 grep 的字符串(会让产物断言假红)
- 深色底用细体衬线正文(锯齿糊)

## 对比度实测(WCAG,自写公式)

| 组合 | 实测 | 门槛 |
|---|---|---|
| `ink` on `bg` | 17.60:1 | ≥ 4.5:1 |
| `onAccent` on `accent` | 6.37:1 | ≥ 4.5:1 |

### 语义层留痕(透明记录)

- 源无可用 on-accent 配对;--on-accent 取源 bg(#04070F),配对 6.37:1

## 应用片段

```css
/* 单主题:把 css/default.css 全文贴进项目,或在 <head> 里 link 它 */
/* 多主题共存:link css/themes.css,用 <html data-theme="mohe-mono-blue"> 决定何时生效(无 :root,不覆盖项目 token) */
```

```html
<html data-theme="mohe-mono-blue" class="theme-mohe-mono-blue" lang="zh-CN">
  <link rel="stylesheet" href="css/default.css">
```

## 来源 / Provenance

- 实盘:内部商业档案站(已脱敏)(群青·商业深度档案,2026-10-04 上线),源码 [本地路径已移除]
- 配色推导:背景分亮度带取像素实测(暗场 h226 s85 v13 / 中光带 h218 s52 v64 / 亮光 h220 s41 v96)→ 强调色取中光带同款 h218 s52 明度抬到 85 = #6891d9
- 用户验收:卡片不透明度 --panel-a 由用户肉眼定为 0.20,描边 rgba(104,145,217,.14)
- 背景:Lumen River WebGL 概念背景(engine.js + concepts.js,速度 15%,左侧遮罩 72%)
SKILL.md
---
name: mohe-mono-blue
description: "墨河 · 深色单色蓝(群青)(dark 近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文)。触发:墨河 · 深色单色蓝(群青) / mohe-mono-blue / 近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文。不做整站重构。"

---

# mohe-mono-blue

让任何网页/面板变成 **墨河 · 深色单色蓝(群青)** 的样子,不用 agent 自己编 hex。

近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文

## When to use

- 用户点名 墨河 · 深色单色蓝(群青) / mohe-mono-blue / 近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文
- 需要整套配色(bg / bg-deep / surface / ink / accent / 状态色)而不是单个色值
- 需要 整套 UI 只用一个色相(背景的 218–223° 蓝),深度靠明度梯而非新色相
- 需要 强调色取背景中光带同 hue 同饱和(h218 s52)再抬明度,别用高饱和电蓝
- 需要 卡片半透明(rgba(12,22,44,.20))浮在背景上,让背景墨河透出来
- 需要 分类色只用同色相的明度/微彩差(亮蓝/中蓝灰/近中性冷灰蓝/蓝),靠文字标签辨义
- 需要 竖排书脊刊头:writing-mode:vertical-rl + text-orientation:upright,衬线 900 字重
- 需要 深色底衬线标题可用,正文一律无衬线(衬线细体在深底会糊)

## When not to use

- 整站品牌设计系统(要自定义组件/字体体系)→ 用设计类 skill
- 别的主题族(用户点名其它风格)
- 4 个饱和分类色相(与蓝场打架,是「五颜六色」的根因)
- 高饱和电蓝强调色(h218 s86 = 读作另一个蓝)
- 在注释/代码里保留被 grep 的字符串(会让产物断言假红)
- 深色底用细体衬线正文(锯齿糊)

## Default

**`mohe-mono-blue`**(mode `dark`)

| role | hex |
|---|---|
| `bg` | `#04070F` |
| `surface` | `rgba(80,110,170,.10)` |
| `ink` | `#EAF0FA` |
| `accent` | `#6891d9` |
| `link` | `#9fbdf0` |

## Sub-themes (id → when)

| id | mode | contrast | pick when |
|---|---|---|---|
| `mohe-mono-blue` | `dark` | — | **默认**;近黑冷蓝底 + 单一色相 218–223° 明度梯;唯一有彩光是强调色 #6891d9;卡片半透明浮在 WebGL 墨河背景上;竖排书脊刊头(汉字竖排做书脊);衬线标题 + 冷瓷白正文 |

## Files

| path | use |
|---|---|
| `tokens/absolute.json` | 源盘原色表(原样,含未参与语义映射的色) |
| `tokens/index.json` | 变体目录 + default |
| `tokens/semantic/mohe-mono-blue.json` | 语义映射 + `derived`(取源哪个键)+ `a11y`(对比度实测) |
| `css/default.css` | 默认变体一份,含 `:root`,最快 apply |
| `css/all.css` | 全部变体 + 基础 chrome,含 `:root` |
| `css/themes.css` | 共存版:同 all.css 但**无 `:root`**,只 `[data-theme]` / `.theme-<id>` 作用域 |
| `docs/usage.md` | 配对规则 / 字体配方 / 反模式(中文) |
| `preview/index.html` | 活预览(独立单文件) |

## Agent apply steps

1. **Pick variant** — 用户点名变体就用它;否则 `mohe-mono-blue`。
2. **Read tokens** — `tokens/semantic/mohe-mono-blue.json`(`colors` 是语义键,`derived` 说明它取自源盘哪个键)。
3. **写入 CSS 变量** — 项目已有 `--bg/--ink/--accent` 就沿用同名;否则整份贴,或同时写 `--theme-*` 别名。
4. **挂主题作用域** — `<html data-theme="mohe-mono-blue" class="theme-mohe-mono-blue">`;多主题站点用 `css/themes.css`。
5. **选文件** — 单主题 `css/default.css`;多主题 `css/all.css`(带 `:root`)或 `css/themes.css`(不带)。
6. **按角色套件**:
   - 页面底 → `--bg` / `--bg-deep`
   - 卡面面板 → `--surface` + `--border`
   - 正文 → `--ink`;次要 → `--ink-muted` / `--ink-dim`
   - 主按钮 → `--accent` + `--on-accent`(一屏一个 CTA)
   - 链接 → `--link`(**不**用 `--accent`,强调色不做链接色)
   - 危险 → `--red`;成功 → `--green`
7. **不要发明 hex** — 颜色只能来自 `tokens/absolute.json`;缺角色就跳过该变量。
8. **自检** — `python scripts/assert_tokens.py` 必须打印 `PASS assert_tokens mohe-mono-blue`。

### Minimal `:root` snippet (`mohe-mono-blue`)

```css
:root {
  color-scheme: dark;
  --bg: #04070F;
  --surface: rgba(80,110,170,.10);
  --surface-2: #101B33;
  --border: rgba(104,145,217,.14);
  --ink: #EAF0FA;
  --ink-muted: #9EB0CC;
  --ink-dim: #9EB0CC;
  --accent: #6891d9;
  --link: #9fbdf0;
  --panel: rgba(12,22,44,.20);
  --ink-faint: #6B7E9C;
  --border-strong: rgba(104,145,217,.34);
  --line: rgba(104,145,217,.14);
  --void: #00000F;
  --on-accent: #04070F;
}
```

### HTML switch

```html
<html data-theme="mohe-mono-blue" class="theme-mohe-mono-blue">
  <link rel="stylesheet" href="css/default.css">
```

## Hard rules

- **Never** 4 个饱和分类色相(与蓝场打架,是「五颜六色」的根因)(源 `dont`)
- **Never** 高饱和电蓝强调色(h218 s86 = 读作另一个蓝)(源 `dont`)
- **Never** 在注释/代码里保留被 grep 的字符串(会让产物断言假红)(源 `dont`)
- **Never** 深色底用细体衬线正文(锯齿糊)(源 `dont`)

## Notes

- 预览:`preview/index.html`,单文件可直接打开
- 来源与语义层修正:`docs/usage.md` 末节。

← 回索引