Skip to content

v0.1.4 — Follow light/dark theme switching

Latest

Choose a tag to compare

@youngxhui youngxhui released this 23 Sep 09:42

Sidebar labels and values now stay readable when OpenCode switches between light and dark mode.

Fixed

  • Labels use theme.text.base and values use theme.text.muted instead of the terminal default foreground, so they no longer render as unreadable white text on light backgrounds.
  • Added a themeText() fallback chain for the OpenCode 2.0.9 token renames (text.default → text.base, text.subdued → text.muted, no aliases kept).
  • Colors are read inside JSX property expressions so babel-preset-solid wraps them in _$effect and they re-evaluate live.
  • Subscribes to renderer theme_mode / palette events with delayed re-bumps (150ms / 600ms) because the host re-resolves color tokens asynchronously — the value read right at event time may still be stale.

Changed

  • Bump version to 0.1.4.

Full diff: v0.1.3...v0.1.4