Skip to content

feat(theme): add Dracula color theme and support local preview icons - #7189

Draft
znarfm wants to merge 2 commits into
fmhy:mainfrom
znarfm:dracula
Draft

znarfm wants to merge 2 commits into
fmhy:mainfrom
znarfm:dracula

Conversation

@znarfm

@znarfm znarfm commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the Dracula color theme (light and dark variants) and updates the color picker to resolve local preview assets via VitePress withBase.

Changes

  • Theme Definition: Added draculaTheme config (docs/.vitepress/theme/themes/configs/dracula.ts) and registered it in themeRegistry (index.ts).
  • Styling: Defined divider, border, and gutter custom properties for Dracula in style.scss.
  • Preview Asset Support: Updated ColorPicker.vue to support relative/root-relative paths (/, .) wrapped in withBase() for base URL compatibility.
  • Assets: Added docs/public/dracula.webp preview thumbnail.

Verification

  • Switched to Dracula theme in both light and dark modes.
  • Verified borders, accents, custom blocks, and hero gradients render correctly.
  • Confirmed the theme preview thumbnail displays properly in the color picker component across base routes.

Screenshots

Theme picker:
image

Dark:
image
image

Alucard for light theme too:
image

@znarfm
znarfm requested a review from taskylizard as a code owner November 11, 2026 04:38
@github-actions github-actions Bot added the core Core changes to our VitePress setup label Nov 11, 2026
Comment on lines +1061 to +1066
/* Borders & Dividers */
html[data-theme='dracula'] {
--vp-c-divider: #44475a;
--vp-c-border: #6272a4;
--vp-c-gutter: #191a21;
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We currently have no option to set colors to dividers and stuff for theme files like catpuccin.ts and dracula.ts. So i added this to override for now, since default color for these variables are hard to see because of the bg color of dracula theme.

lemme know if we can refactor theme files to support theming borders and dividers.

@nbats
nbats marked this pull request as draft November 11, 2026 19:26
@nbats

nbats commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Nice work much appreciated, I'll pass this onto our Discord to get thoughts from other devs first

@vesaber

vesaber commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

is the .webp logo intentional? Although Dracula doesn't have a press page, they still have their static icon displayed in the format .svg.

@znarfm

znarfm commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

is the .webp logo intentional? Although Dracula doesn't have a press page, they still have their static icon displayed in the format .svg.

Where can I get the svg file of their icon? I only got it from their Wikipedia page which is in webp format.

This branch has not been deployed

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

Labels

core Core changes to our VitePress setup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants