Skip to content

feat: add Hatsune Miku and Snow Miku 2026 themes#35

Open
ExplodingDragon wants to merge 7 commits into
lutinglt:mainfrom
ExplodingDragon:feat-39
Open

feat: add Hatsune Miku and Snow Miku 2026 themes#35
ExplodingDragon wants to merge 7 commits into
lutinglt:mainfrom
ExplodingDragon:feat-39

Conversation

@ExplodingDragon

@ExplodingDragon ExplodingDragon commented Jun 9, 2026

Copy link
Copy Markdown

Add two native Gitea color themes inspired by the Hatsune Miku Theme (hatsune-miku-theme) — a color system traced from Miku's character design, built with perceptual color science (JzCzhz) for readability and CVD safety.

  • Dark: Hatsune Miku — concert hall at night. Tonic at F# (180° teal), twelve-tone chromatic hue system, soprano/mp ensemble, skirt-stage background, four-voice interactive states.
  • 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.

Each color annotated with exact source references to DESIGN.md sections, core.ts character palette, and rendered theme output hex values. Registered as 'miku' series producing github-miku-dark/light/auto CSS. Screenshots marked as TODO.

dark:
图片

light:
图片

Add two native Gitea color themes inspired by the Hatsune Miku Theme
(hatsune-miku-theme) — a color system traced from Miku's character design,
built with perceptual color science (JzCzhz) for readability and CVD safety.

- Dark: Hatsune Miku — concert hall at night.
  Tonic at F# (180° teal), twelve-tone chromatic hue system,
  soprano/mp ensemble, skirt-stage background, four-voice interactive states.
- 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.

Each color annotated with exact source references to DESIGN.md sections,
core.ts character palette, and rendered theme output hex values.
Registered as 'miku' series producing github-miku-dark/light/auto CSS.
Screenshots marked as TODO.
@lutinglt lutinglt added the enhancement 新的样式或功能 New feature or request label Jun 9, 2026
All Gitea dark themes place nav.bg darker than body (nav recedes).
The original Miku design had House (sidebar) lighter than Stage
(editor) per the concert hall metaphor, but this breaks Gitea's
layout intuition. Now nav.bg uses Void-tier darkness while body
retains the Stage anchor. Secondary remains at House for visible
borders, and menu floats at Float as a spotlight overlay.
@ExplodingDragon ExplodingDragon marked this pull request as ready for review June 9, 2026 09:07
Secondary was #23282D (House, only 9 lightness points above body #1A1F24),
making borders nearly invisible. Bumped secondary.self to #2C3339 (~18pt gap),
comparable to other dark themes (Gitea native #3F4248, GitHub #3D444D).
Recalculated gradient steps and updated hardcoded references (projectColumnBg,
expandButton, hover.opaque, console.border).
primary.self was #39C5BB (Miku canonical hair) which with white text
(#FCF8F0) had only 2.0:1 contrast — button text was unreadable.
Changed to hair.shadow #067C82 (CR 4.71) while preserving the canonical
#39C5BB at primary.dark.num3 for link/accent text (CR 7.81 on body).
Recalculated primary dark/light gradient steps from the new anchor.
.ui.green.button uses --color-green as background with white text.
The former #8AF9B4 (negi bright, L≈0.60) gave CR=1.22 — unreadable.
Changed self to #5A8F4A (negi stalk deepened, CR=3.63) while keeping
green.light at #8AF9B4 for foreground emphasis (git added, success text).
diff.added.fg, message.success.text, ansi.green remain independent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 新的样式或功能 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants