Skip to content

Let hosts theme the canvas minimap grid and default item color - #352

Merged
einari merged 1 commit into
mainfrom
canvas/minimap-theming
Sep 27, 2026
Merged

einari merged 1 commit into
mainfrom
canvas/minimap-theming

Conversation

@einari

@einari einari commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Added

  • --cratis-canvas-minimap-grid-color and --cratis-canvas-minimap-item-color theme the Canvas minimap dot grid and items that have no color of their own. Both fall back to the current colors, so the minimap looks the same until you set them.

The minimap drew its dot grid and its uncolored items from inline
styles, so a host could only change them by changing surface-border and
the text color for everything else too. Two component tokens,
--cratis-canvas-minimap-grid-color and --cratis-canvas-minimap-item-color,
now take precedence. They are deliberately left undefined and read with
a fallback, so they resolve on the minimap itself and follow a dark
subtree; the fallbacks are today's values, so nothing changes until a
host sets them.
@einari einari added the minor label Sep 27, 2026
@einari
einari merged commit 6b0d508 into main Sep 27, 2026
50 of 51 checks passed
@einari
einari deleted the canvas/minimap-theming branch September 27, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant