diff --git a/_posts/theme/2026-07-19-Shidunzi.md b/_posts/theme/2026-07-19-Shidunzi.md new file mode 100644 index 00000000..470ae8cd --- /dev/null +++ b/_posts/theme/2026-07-19-Shidunzi.md @@ -0,0 +1,152 @@ +--- +layout: theme +title: Shidunzi +category: theme +date: 2026-07-19 +homepage: https://github.com/Lei285714/Shidunzi-Typora-theme +download: https://github.com/Lei285714/Shidunzi-Typora-theme/archive/main.zip +built-in: false +author: Lei285714 +thumbnail: shidunzi.png +typora-root-url: ../../ +--- + +# 石墩子 · Shidunzi + +> 🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿 +> +> —— 石埻子吧创始人,石墩子好 + +**Shidunzi** 是一座基于 Typora 1.13 设计的暗色主题。青灰石作主色,玄武黑到月白的四层石阶,彩色全部取自矿物颜料。气质沉稳、不刺眼,深夜写作不晃眼。 + +主题里藏了两座墩子:一座娘化墩在侧栏底部一边视奸你一边溜达,一座来自复活节岛的石像墩立在文档滚动条上,随你滚动而上下移动。点开任意标题,左侧会浮现对应数字的墩做层级标识;无序列表前六层,每层一款不同的墩。 + +安装完成之后,你可以先阅读项目文件夹里的 Function-demonstration.md,体验石墩子的完整功能 + +## 安装 + +将 `shidunzi.css` 与 `shidunzi/` 子目录放到 Typora 主题目录(在偏好设置-外观中打开主题文件夹): + +重启打开 Typora,**菜单栏 → 主题 → Shidunzi**,即刻生效。 + +## 设计要点 + +**13 色青石色板**:灰全部落在冷青灰做石身,从玄武黑到月白字四层背景阶梯;彩全部是石色矿物颜料。配色板抽取为 CSS 变量定义在 `:root` 里,方便整体扩展或派生。 + +**两档石青**:UI 主强调用二青 `#7E9FB6` 沉稳,代码关键字用三青 `#A7C7DD` 清亮——对应耄耋的两套金棕。暗色底下"加纯"方向反转:亮者为纯。代码比 UI 主强调更显眼,因为代码阅读频率高。 + +**编辑反馈丰富**:标题进入编辑态显示对应数字的墩,代码块装饰条精确盖住边框 miter 角,公式编辑区背景与文档同色而非 Typora 默认的灰白。 + +**两座墩子**:娘化墩沿侧栏底部 24 秒一个来回直线巡游,按住触发跳跃;石像墩立在主滚动条 thumb 上,位置随滚动百分比天然移动,thumb 被压短时整体等比缩小、永不裁头斩脚。纯 CSS 实现,无 JS。 + +**代码高亮真正生效**:27 个 token 类全部带 `.cm-s-inner` 与 `.cm-s-typora-default` 双前缀,压过 Typora 内置默认配色——围栏代码块与源代码模式一起接管。这个特异度坑耄耋踩了一整个版本才被发现,石墩子出厂即免疫。 + +**打印双轨**:导出 PDF 保留青石底观感,物理打印自动切回白底黑字,不给打印机喂一整页的墨。 + +## 项目结构 + +``` +themes/ +├── shidunzi.css 主样式表,约 2700 行,55 节 +└── shidunzi/ + ├── fonts/ + │ ├── newsreader.woff2 + │ ├── newsreader-italic.woff2 内嵌字体 + │ └── OFL.txt + ├── 娘化墩.png 侧栏巡游墩(500×500) + ├── 石像墩.png 滚动条石像(339×737) + ├── 1墩.png ~ 6墩.png 标题编辑态层级 marker + ├── 费力挪墩.png 列表 L1 marker + ├── 哈基米墩.png 列表 L2 marker + ├── 井盖墩.png 列表 L3 marker + ├── 菊花墩.png 列表 L4 marker + ├── 麦麦墩.png 列表 L5 marker + └── 象棋墩.png 列表 L6 marker +``` + +## 鸣谢 + +- 费力挪墩 +- 哈基米墩 +- 井盖墩 +- 菊花墩 +- 麦麦墩 +- 娘化墩 +- 象棋墩 +- 写主题时陪我熬夜的所有 Claude + +## 许可 + +随便用。石墩子不会向你要什么,它只是坐在那里——你什么时候回来,它都在。 + + + + + +# Shidunzi · 石墩子 + +> 🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿🗿 +> +> — Founder of the 石埻子 Tieba: "Shidunzi is good." + +**Shidunzi** (石墩子 — "stone dun": the squat stone bollards, piers, and sit-anywhere stone stools found all over Chinese streets, spiritual kin of the moai 🗿) is a dark theme carved for Typora 1.13. Blue-gray stone sets the base tone, four stone steps climb from basalt black to moon white, and every accent color is ground from mineral pigments. Calm, matte, and glare-free — made for late-night writing. + +Two duns live hidden inside the theme: a Moe Dun strolls along the bottom of the sidebar, keeping an eye on you as she paces, while a moai statue dun from Easter Island stands on the document scrollbar, riding up and down as you scroll. Click into any heading and the matching number of duns surfaces on the left as a level marker; unordered lists wear a different dun on each of their first six levels. + +Once installed, open `Function-demonstration.md` from the project folder first for a full tour of everything Shidunzi can do. + +## Installation + +Copy `shidunzi.css` and the `shidunzi/` subfolder into your Typora themes folder (Preferences → Appearance → Open Theme Folder): + +Restart Typora, then choose **Menu bar → Themes → Shidunzi**. Takes effect immediately. + +## Design Notes + +**A 13-color bluestone palette.** Every gray sits in cool blue-gray to build the stone's body, with a four-step background ladder from basalt black up to moon-white text; every accent is a stone-derived mineral pigment. The whole palette is lifted into CSS variables on `:root`, making it easy to extend or derive new themes. + +**Two grades of azurite.** The primary UI accent uses èrqīng (second-grade azurite) `#7E9FB6`, steady and calm; code keywords use sānqīng (third-grade azurite) `#A7C7DD`, bright and clear — the counterpart of the two gold-browns in 耄耋 (Màodié), this theme's predecessor. On a dark ground the direction of "adding purity" flips: the brighter shade reads as the purer one. Code gets the more conspicuous grade because code is read far more often. + +**Rich editing feedback.** Headings in edit mode show the matching number of duns; the code-block accent bar covers the border's miter corners precisely; the formula editing area matches the document background instead of Typora's default gray-white patch. + +**Two resident duns.** The Moe Dun patrols the bottom of the sidebar in a straight line, one round trip every 24 seconds, and press-and-hold makes her hop. The Moai Dun stands on the main scrollbar thumb, its position riding naturally on the scroll percentage; when the thumb gets squeezed short, the whole statue scales down proportionally — its head and feet never clipped. Pure CSS. No JS. + +**Code highlighting that actually takes effect.** All 27 token classes carry the double prefix `.cm-s-inner` and `.cm-s-typora-default`, overriding Typora's built-in defaults — fenced code blocks and source-code mode are taken over together. 耄耋 sat in this specificity pit for an entire release before anyone noticed; Shidunzi ships immune. + +**Dual-track printing.** PDF export keeps the bluestone look; physical printing switches automatically back to black-on-white, so your printer isn't force-fed a full page of ink. + +## Project Structure + +``` +themes/ +├── shidunzi.css Main stylesheet — ~2,700 lines, 55 sections +└── shidunzi/ + ├── fonts/ + │ ├── newsreader.woff2 + │ ├── newsreader-italic.woff2 Embedded fonts + │ └── OFL.txt + ├── 娘化墩.png Moe Dun — sidebar patroller (500×500) + ├── 石像墩.png Moai Dun — scrollbar statue (339×737) + ├── 1墩.png ~ 6墩.png Heading-level markers in edit mode + ├── 费力挪墩.png List L1 marker — Ferrero Dun + ├── 哈基米墩.png List L2 marker — Hachimi Dun + ├── 井盖墩.png List L3 marker — Manhole Dun + ├── 菊花墩.png List L4 marker — Chrysanthemum Dun + ├── 麦麦墩.png List L5 marker — McDun + └── 象棋墩.png List L6 marker — Xiangqi Dun +``` + +## Acknowledgements + +- Ferrero Dun(费力挪墩) +- Hachimi Dun(哈基米墩) +- Manhole Dun(井盖墩) +- Chrysanthemum Dun(菊花墩) +- McDun(麦麦墩) +- Moe Dun(娘化墩) +- Xiangqi Dun(象棋墩) +- And every Claude who stayed up through the night with me while this theme was being written + +## License + +Use it however you like. A shidunzi asks nothing of you — it just sits there. Whenever you come back, it will still be there. \ No newline at end of file diff --git a/media/thumbnails/shidunzi.png b/media/thumbnails/shidunzi.png new file mode 100644 index 00000000..0a128d99 Binary files /dev/null and b/media/thumbnails/shidunzi.png differ