Skip to content

v0.8.0

Choose a tag to compare

@macintacos macintacos released this 26 Jul 23:24
· 525 commits to main since this release
Immutable release. Only release title and notes can be modified.
5bc7109

caret 0.8.0 adds nine themes — Catppuccin, GitHub, Dracula and caret's own two — with independent light and dark slots that follow the OS by default, and syntax highlighting that paints in whichever theme is live. It also sharpens the review surface: modals play an exit before they close, the compare toggle counts how many other versions a plan can be diffed against, and the ink ramp holds its contrast floors on raised surfaces like dialogs and dropdowns.

Added

  • Seven vendor palettes — Catppuccin Latte, Frappé, Macchiato and Mocha, GitHub Light and Dark, and Dracula — join caret's own light and dark for nine in the picker. The hex is upstream verbatim; only the mapping onto caret's tokens is ours.
  • Light and dark are now independent slots under a light/dark/system mode. System is the default, so caret follows the OS and swaps slots live when it flips; a pinned mode overrides it. The Appearance pane shows both slots at once and marks the live one.
  • Syntax highlighting derives per palette, so picking Dracula paints Dracula code inside Dracula chrome instead of leaving amber highlighting behind. The filename-excerpt popover highlights in the live theme too.
  • The "Compare versions" toggle badges how many other versions the current plan can be diffed against, and the base/target pickers mark the newest row (current).
  • Modals hold in the DOM long enough to play an exit animation before they unmount, and a re-open mid-exit mounts a fresh surface.
  • A derived-token tier for the colors a palette implies rather than decides, declared so it re-derives correctly inside any subtree painted with a different palette.

Changed

  • A palette can be painted onto any element, not just the document root — theme preview cards now carry the full stamp, so scheme-keyed rules inside a preview resolve against the palette being previewed rather than the page's.
  • One module owns the live appearance, repainting only when the resolved theme actually moves.
  • caret's own two palettes build through the shared theme recipe, and the first-paint :root fallback is generated from the theme registry rather than hand-maintained beside it.

Fixed

  • Dialog enter and exit animations were keyed on a state bits-ui never sets, so Settings, Shortcuts, Request Changes and the approve guard had no animation at all.
  • The ink ramp held its contrast floors only against the base surface. On raised surfaces — dialogs, dropdowns, cards — Frappé's secondary copy sat below AA and three palettes' metadata below 3:1.
  • The version count reached screen readers through a <span>, which ARIA prohibits from carrying a name; it now rides the toggle's own label.

Removed

  • CHANGELOG.md is retired. Release notes are composed for the GitHub Release, which is now the single record of what shipped.