I spend most of my day in terminals and markdown editors. They should look like they belong together.
Why Another Theme?
The Palette
| Role | Color | Hex |
|---|---|---|
| Background | Deep black | #0d1117 |
| Text | Cool white | #f0f6fc |
| Accent | Purple | #8a6cc4 |
| Highlight | Lavender | #d19af8 |
| Links | Cyan | #5fd4bb |
| Headings | Blue | #7aa2f7 |
| Inline code | Gold | #f0a830 |
| Success | Green | #9ece6a |
| Warning | Red | #f7768e |
| Info | Sky | #89ddff |
Obsidian Theme
- Monochrome sidebar: The file tree and panels use muted grays so the editor pane is the visual focus
- Purple accents: Active states, selections, and UI highlights use #8a6cc4
- Readable code blocks: Fenced code gets a slightly lighter background (#161b22) with the full syntax palette
- No light mode: This is a dark theme. If you want light mode, this isn't for you
Typora Theme
- WYSIWYG focus: Typora renders markdown inline, so the theme emphasizes reading flow over editor chrome
- Print-friendly code blocks: Code blocks have slightly higher contrast since Typora users often export to PDF
- Consistent heading scale: H1 through H6 follow a tighter ratio than Obsidian since Typora content tends to be more document-like
The Monorepo
Text
opencode-themes/
├── obsidian/ # theme.css + manifest.json
├── typora/ # opencode.css + opencode/ assets
├── website/ # Landing page + Typora showcase
├── README.md
└── LICENSE
One-Line AI Install
Text
Install the OpenCode theme for Obsidian from https://github.com/nxxxsooo/opencode-themes — copy obsidian/theme.css and obsidian/manifest.json to my vault's .obsidian/themes/OpenCode/ directory
Text
Install the OpenCode theme for Typora from https://github.com/nxxxsooo/opencode-themes — copy typora/opencode.css and typora/opencode/ folder to my Typora themes directory
Landing Page
Links
- Monorepo: github.com/nxxxsooo/opencode-themes
- Obsidian standalone: github.com/nxxxsooo/obsidian-opencode-theme
- Landing page: mjshao.fun/opencode-themes
- Release: v1.0.0
我每天大部分时间都泡在终端和 Markdown 编辑器里,它们的视觉风格理应统一。
为什么又做一个主题?
配色方案
| 角色 | 颜色 | Hex |
|---|---|---|
| 背景 | 深黑 | #0d1117 |
| 正文 | 冷白 | #f0f6fc |
| 强调 | 紫色 | #8a6cc4 |
| 高亮 | 薰衣草 | #d19af8 |
| 链接 | 青色 | #5fd4bb |
| 标题 | 蓝色 | #7aa2f7 |
| 行内代码 | 金色 | #f0a830 |
| 成功 | 绿色 | #9ece6a |
| 警告 | 红色 | #f7768e |
| 信息 | 天蓝 | #89ddff |
Obsidian 主题
- 单色侧边栏:文件树和面板用低饱和灰,让编辑区成为视觉焦点
- 紫色强调:选中态、激活态、UI 高亮都用 #8a6cc4
- 可读代码块:代码区域用稍浅的背景(#161b22),搭配完整的语法配色
- 没有浅色模式:这就是一个深色主题
Typora 主题
- 所见即所得:Typora 实时渲染 Markdown,所以主题更注重阅读流畅度
- 打印友好的代码块:代码块对比度稍高,因为 Typora 用户经常导出 PDF
- 紧凑的标题层级:H1 到 H6 用了更紧凑的比例,更适合文档类内容
Monorepo 结构
Text
opencode-themes/
├── obsidian/ # theme.css + manifest.json
├── typora/ # opencode.css + opencode/ 资源
├── website/ # Landing page + Typora 预览
├── README.md
└── LICENSE
AI 一键安装
Text
从 https://github.com/nxxxsooo/opencode-themes 安装 OpenCode Obsidian 主题 - 把 obsidian/theme.css 和 obsidian/manifest.json 复制到我的 vault 的 .obsidian/themes/OpenCode/ 目录
Text
从 https://github.com/nxxxsooo/opencode-themes 安装 OpenCode Typora 主题 - 把 typora/opencode.css 和 typora/opencode/ 文件夹复制到我的 Typora 主题目录
Landing Page
链接
- Monorepo:github.com/nxxxsooo/opencode-themes
- Obsidian 独立仓库:github.com/nxxxsooo/obsidian-opencode-theme
- Landing page:mjshao.fun/opencode-themes
- Release:v1.0.0