Skip to content

feat: add selectable Shiki themes - #242

Merged
jcarver989 merged 3 commits into
mainfrom
feat/plan-84-shiki-themes
Jul 13, 2026
Merged

feat: add selectable Shiki themes#242
jcarver989 merged 3 commits into
mainfrom
feat/plan-84-shiki-themes

Conversation

@jcarver989

Copy link
Copy Markdown
Contributor

Summary

Replaces highlight.js with Shiki and maps a curated set of tm-themes palettes onto semantic UI, annotation, Mermaid, and code-highlight tokens. Adds a palette button with a responsive theme grid, compact bordered swatches, system-aware defaults, and localStorage persistence. Implements PLAN-84.

Review focus

  • Please review the fallback mapping from VS Code theme colors into ContextBridge's semantic tokens, especially contrast behavior across the light and dark themes.
  • The highlighter uses fine-grained language/theme imports and Shiki's synchronous JavaScript regex engine; please consider the resulting single-file bundle-size trade-off against the runtime theme-switching behavior.

Commits

  • 1ee8da0 — add Shiki highlighting, semantic themes, the persisted theme picker, and browser coverage.
  • 52a3130 — document the browser theme architecture and package ownership.

@jcarver989
jcarver989 marked this pull request as ready for review July 13, 2026 18:54
@jcarver989
jcarver989 requested a review from blimmer as a code owner July 13, 2026 18:54
@jcarver989
jcarver989 merged commit fa0ac48 into main Jul 13, 2026
13 of 14 checks passed
@jcarver989
jcarver989 deleted the feat/plan-84-shiki-themes branch July 13, 2026 18:54
jcarver989 pushed a commit that referenced this pull request Jul 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.10.0](v0.9.3...v0.10.0)
(2026-07-13)


### Features

* add selectable Shiki themes
([#242](#242))
([fa0ac48](fa0ac48))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: contextbridge-pr-automation[bot] <259134118+contextbridge-pr-automation[bot]@users.noreply.github.com>
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