Skip to content

feat(settings): a Dracula palette, Classic in dark and Alucard in light - #976

Closed
demrom wants to merge 1 commit into
devswha:mainfrom
demrom:feat/dracula-palette
Closed

demrom wants to merge 1 commit into
devswha:mainfrom
demrom:feat/dracula-palette

Conversation

@demrom

@demrom demrom commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Change

Adds Dracula to Settings → Appearance → Colors, built the same way as the Catppuccin palette. Dark mode gets Dracula Classic and light mode gets Alucard Classic. After #507, simple palettes like this one can be reviewed apart from theme packs.

Colors come from draculatheme.com/spec. For the dark chrome I took the shades the official VS Code port uses: BGDark #21222c for the sidebar and header, BGLight #343746 for elevated surfaces, BGLighter #424450 for hover and BGDarker #191a21 for inputs. Light mode uses Alucard's Floating #efeddc for chrome and Background Lighter #ece9df for hover. The terminal uses Background, Foreground, Selection and a Purple cursor. Code follows the VS Code classic mapping: keywords are Pink, functions Green, strings Yellow, numbers Purple and types Cyan.

Some official colors fail the 4.5:1 check in the palette test. I kept their hue and changed only the lightness:

  • Comment #6272a4 is 2.05:1 on the dark hover row, so dimmed text and the idle state use #a9b2cd, a lighter color with the same hue and saturation.
  • On the dark hover row no official red or pink reaches 4.5:1 as a badge (Red is 2.77:1, Pink 3.42:1). The input state uses the light red #ffb8b8 instead.
  • Alucard Cyan, Red, Green and Yellow are darker for badges and code on the light panel.

Primary hover uses the official ANSI Bright Blue (#d6acff in dark, #7862d0 in light), and the strong border uses Alucard Background Darker #bcbab3.

I also updated DESIGN.md, the terminal theme in settings.ts, the palette enum in telemetry and the ko/ja/zh labels. The changelog line is in changelog.d/dracula-palette.md.

Validation

  • settings.test.ts runs the WCAG check on both Dracula themes and checks that the xterm theme matches the --term-* tokens. With i18n.test.ts, changelog-fold.test.ts and the conventions tests: 94 pass, 0 fail.
  • bun run typecheck passes.
  • settings-pages-demo-regression.ts passes. It selects Dracula in both themes on 320 and 390 px phones and on a 1440 px desktop, then checks that the choice survives a reload, that xterm gets the same terminal tokens as the page, and that nothing is cut off.
  • I also looked at chat, terminal, settings and the phone drawer in Chrome, in both themes at 1440 and 390 px.

Screenshots

Dracula Alucard
Dracula chat at 1440 px Alucard chat at 1440 px
Dracula settings at 390 px Alucard settings at 390 px

@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 93456d8e-66c9-4a33-9c9f-5a638f39a063
📥 Commits

Reviewing files that changed from the base of the PR and between 7606812 and 5f84cc0.

📒 Files selected for processing: 10
  • DESIGN.md
  • scripts/settings-pages-demo-regression.ts
  • src/components/SettingsDialog.tsx
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.test.ts
  • src/lib/i18n.zh.ts
  • src/lib/settings.test.ts
  • src/lib/settings.ts
  • src/styles.css
🚧 Files skipped from review as they are similar to previous changes: 4
  • src/lib/i18n.ja.ts
  • src/lib/i18n.zh.ts
  • src/lib/i18n.ko.ts
  • DESIGN.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

📝 Summary

Summary by CodeRabbit

  • New Features
    • Added the opt-in Dracula palette to Appearance, with Dracula Classic for dark mode and Alucard Classic for light mode.
    • Applied coordinated colors across the interface, terminal, and syntax highlighting. Your selected palette is preserved after reload.
    • Added Dracula’s palette name to Japanese, Korean, and Simplified Chinese translations.
  • Documentation
    • Documented Dracula’s palette colors and usage.

Adds Dracula and Alucard color definitions for dark and light themes. The Appearance selector, settings validation, telemetry types, and regression coverage now include Dracula.

Changes: Dracula palette

Layer / File(s) Summary
Palette colors and specification
src/styles.css, DESIGN.md, changelog.d/dracula-palette.md
Adds Dracula’s dark and light palette tokens, including surface, text, accent, status, terminal, and syntax colors. Documents palette specifications, syntax mappings, file-viewer warning colors, and the changelog entry.
Palette settings and selection
src/lib/settings.ts, shared/telemetry.ts, src/components/SettingsDialog.tsx, src/lib/i18n.*.ts, src/lib/i18n.test.ts
Adds Dracula to the palette type and sanitizer, terminal and document theme colors, telemetry values, and Appearance selector. Adds Japanese, Korean, and Simplified Chinese labels.
Palette validation and regression checks
src/lib/settings.test.ts, scripts/settings-pages-demo-regression.ts
Tests palette sanitization, persistence, theme variants, and contrast. Adds desktop and phone checks for Appearance, chat, terminal, and the phone workspace sidebar.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Suggested reviewers: devswha

Merge Risk: ⚪ Minimal · up to 5f84c

No actionable merge-blocking issue remains; the Dracula regression can locate the Pane controls across platforms.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 10 files. (2 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely identifies the main change: adding Dracula Classic for dark mode and Alucard for light mode.
Description check Passed The description includes complete Change and Validation sections. It explains the resulting behavior, implementation details, design decisions, tests, type checking, regression coverage, and manual ve…
Full details: Docstring Coverage

Explanation

Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 10 files. (2 skipped: 2 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@demrom
demrom marked this pull request as ready for review October 13, 2026 18:30
@demrom
demrom force-pushed the feat/dracula-palette branch from 7606812 to f165742 Compare October 14, 2026 11:14
@demrom
demrom force-pushed the feat/dracula-palette branch from f165742 to 5f84cc0 Compare October 14, 2026 12:38
@devswha

devswha commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Thank you for the Dracula palette, it was carefully put together. I'm closing it because of a policy change rather than anything in the PR itself.

In #1078 the app went down to three color palettes (Amber, Charcoal and Catppuccin) and stopped taking new ones (see "Color palettes" in CONTRIBUTING.md). Each palette is a light and a dark block that every later token change has to fill in, and DESIGN.md has to mirror it, so the cost keeps growing with the count.

Themes beyond those three are meant to come as opt-in theme packs instead, which #507 is discussing. Dracula would be a great first candidate there, and your input on that issue is very welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants