Skip to content

Custom Theme Support#53

Merged
amadeus merged 3 commits intomainfrom
amadeus/custom-themes
Oct 14, 2025
Merged

Custom Theme Support#53
amadeus merged 3 commits intomainfrom
amadeus/custom-themes

Conversation

@amadeus
Copy link
Copy Markdown
Member

@amadeus amadeus commented Oct 14, 2025

  • Refactor types to support custom themes
    • We are still managing our own internal API for theme/themes however
    • Autocomplete should work properly for valid themes
    • Custom themes must be registered manually through the provided helper in
      SharedHighlighter before a highlighter instance attempts to load
      them
  • Adds a light/dark pierre theme
  • Docs have been updated to use new pierre-dark/light
    • Also updated the shiki theme example to include every shiki theme
  • Fixed a few other derps along the way
    • UniversalRenderer was misspelled
    • There was a bug with some variable names in CodeRenderer
CleanShot 2025-10-14 at 14 28 53

@amadeus amadeus requested review from fat and mdo October 14, 2025 21:19
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
pierrejs-diff-demo Ready Ready Preview Oct 14, 2025 9:27pm
pierrejs-docs Ready Ready Preview Oct 14, 2025 9:27pm

* Refactor types to support custom themes
  * We are still managing our own internal API for theme/themes however
  * Autocomplete should work properly for valid themes
  * Custom themes must be registered manually through the provided helper in
    SharedHighlighter before a highlighter instance attempts to load
    them
* Adds a light/dark pierre theme
* Fixed a few other derps along the way
  * UniversalRenderer was misspelled
  * There was a bug with some variable names in CodeRenderer

Formatting fixes
Also updated the theme example to provide every possible shiki theme
@amadeus amadeus force-pushed the amadeus/custom-themes branch from c21922f to 0ed331b Compare October 14, 2025 21:26
@amadeus amadeus merged commit 1f4c309 into main Oct 14, 2025
2 checks passed
@amadeus amadeus deleted the amadeus/custom-themes branch October 14, 2025 21:28
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.

1 participant