diff --git a/README.md b/README.md index 0140d7f..d689786 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,10 @@ epigraph: 题记 # 可选 | `--foreground` | `oklch(0.235 0.013 68)` | 暖墨 `#221d18`,不是 `#000` | | `--muted-foreground` | `oklch(0.505 0.012 70)` | 元信息,对比度 5.3:1 | | `--border` / `--input` | `oklch(0.888 0.016 84)` | | +| `--codeblock-bg` | `oklch(0.925 0.017 84)` | 代码块阴槽 `#ece6da`,比页面底更深且同色相 | +| `--codeblock-topbar-bg` | `oklch(0.893 0.018 84)` | 代码块顶栏 | + +> `--codeblock-bg` 原来(`oklch(0.97 0.003 85)`)是**中性灰白**,在暖纸底上会变成一块冷白补丁,很跳。改配色时注意:代码块要比 `--background` 更深、色相一致,不能只是"接近白"。 对比度都还留得很足(正文 15:1、次要文字 7.5:1、主色链接 4.9:1,WCAG AA 要求 4.5:1),所以是「柔和」不是「发灰」。**暗色模式没动。** diff --git a/src/components/footer.astro b/src/components/footer.astro index 1566f0d..2a5d11b 100644 --- a/src/components/footer.astro +++ b/src/components/footer.astro @@ -30,7 +30,7 @@ const statCells = [