Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,25 @@ THEMES = github-pink-auto, github-pink-light, github-pink-dark, github-pink-soft
<img src="https://raw.githubusercontent.com/lutinglt/gitea-github-theme/assets/screenshots/pink/pink-soft-dark.png"/>
</details>

### Miku Themes

> Inspired by [Hatsune Miku Theme](https://github.com/vauxe/hatsune-miku-theme) — a color theme traced from Hatsune
> Miku's character design, built with perceptual color science for readability and color vision accessibility.

```ini
THEMES = github-miku-auto, github-miku-light, github-miku-dark
```

<details>
<summary>Miku</summary>
<h4>theme-github-miku-dark.css</h4>
<p>Dark: Hatsune Miku — the concert hall at night. Tonic at F# (180° teal), twelve-tone hue system, soprano/mp ensemble. Skirt-stage background, four-voice interactive states, CVD-safe status palette.</p>
<!-- TODO: screenshot -->
<h4>theme-github-miku-light.css</h4>
<p>Light: Snow Miku 2026 — Shiawase Patisserie. Tonic at G (210° cyan), warm cream canvas + cool blue chrome, dual-tier ensemble (sopranino/soprano), gamut-max mp. Chocolate ink on cream, ice frost selection.</p>
<!-- TODO: screenshot -->
</details>

### Gitea Themes

```ini
Expand Down
19 changes: 19 additions & 0 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,25 @@ THEMES = github-pink-auto, github-pink-light, github-pink-dark, github-pink-soft
<img src="https://raw.githubusercontent.com/lutinglt/gitea-github-theme/assets/screenshots/pink/pink-soft-dark.png"/>
</details>

### 初音未来主题

> 灵感来源于 [Hatsune Miku Theme](https://github.com/vauxe/hatsune-miku-theme)
> — 从初音未来角色设计中提取的色彩主题,基于感知色彩科学构建,兼顾可读性与色觉无障碍。

```ini
THEMES = github-miku-auto, github-miku-light, github-miku-dark
```

<details>
<summary>Miku</summary>
<h4>theme-github-miku-dark.css</h4>
<p>深色:初音未来 — 夜晚的演唱会厅。主音 F#(180° 蓝绿),十二音色相体系,soprano/mp 合奏。裙子色舞台背景,四声部交互状态,CVD 安全状态色板。</p>
<!-- TODO: screenshot -->
<h4>theme-github-miku-light.css</h4>
<p>浅色:Snow Miku 2026 — 幸福甜点店。主音 G(210° 青色),暖奶油画布 + 冷蓝色框架,双音区合奏(sopranino/soprano),gamut-max mp。巧克力油墨书于奶油,冰霜结晶选中。</p>
<!-- TODO: screenshot -->
</details>

### Gitea 主题

```ini
Expand Down
4 changes: 4 additions & 0 deletions src/build-output.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
`${PREFIX}pink-light.css`,
`${PREFIX}pink-soft-dark.css`,
`${PREFIX}pink-auto.css`,
// miku
`${PREFIX}miku-dark.css`,
`${PREFIX}miku-light.css`,
`${PREFIX}miku-auto.css`,
// gitea
`${PREFIX}gitea-dark.css`,
`${PREFIX}gitea-light.css`,
Expand Down Expand Up @@ -91,7 +95,7 @@
execSync("bun run bundle", { cwd: ROOT_DIR, stdio: "pipe" });
}
} catch {
execSync("bun run bundle", { cwd: ROOT_DIR, stdio: "pipe" });

Check failure on line 98 in src/build-output.test.ts

View workflow job for this annotation

GitHub Actions / checks (vitest)

src/build-output.test.ts

Error: Command failed: bun run bundle $ tsgo -b && bunx --bun vite build error: script "bundle" exited with code 1 ❯ src/build-output.test.ts:98:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 1, signal: null, output: [ null, '<Buffer(885) ...>', '<Buffer(77) ...>' ], pid: 2507, stdout: '<Buffer(885) ...>', stderr: '<Buffer(77) ...>' }
}

it("dist 目录存在且包含主题文件", () => {
Expand Down
7 changes: 7 additions & 0 deletions theme.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ export default defineThemeConfig({
light: { theme: themes.gitea.light },
},
},
{
themeSeriesName: "miku",
themes: {
dark: { theme: themes.miku.dark },
light: { theme: themes.miku.light },
},
},
{
themeSeriesName: "catppuccin",
themes: {
Expand Down
Loading
Loading