Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
7606812 to
f165742
Compare
f165742 to
5f84cc0
Compare
|
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 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. |
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
#21222cfor the sidebar and header, BGLight#343746for elevated surfaces, BGLighter#424450for hover and BGDarker#191a21for inputs. Light mode uses Alucard's Floating#efeddcfor chrome and Background Lighter#ece9dffor 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:
#6272a4is 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.#ffb8b8instead.Primary hover uses the official ANSI Bright Blue (
#d6acffin dark,#7862d0in 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 inchangelog.d/dracula-palette.md.Validation
settings.test.tsruns the WCAG check on both Dracula themes and checks that the xterm theme matches the--term-*tokens. Withi18n.test.ts,changelog-fold.test.tsand the conventions tests: 94 pass, 0 fail.bun run typecheckpasses.settings-pages-demo-regression.tspasses. 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.Screenshots