-[fix] Tooltip content that uses `Text`, or icons colored by the primary, secondary or accent tokens, as the Tooltip docs show, now reads on the tooltip's inverted surface instead of taking the surface's own color. Its primary, secondary and accent text and icon colors (status and hue colors keep the page's values) come from three new theme tokens, `--color-text-primary-inverted`, `--color-text-secondary-inverted` and `--color-text-accent-inverted`. A theme with concrete colors that does not set them gets values computed from its own colors when the theme is generated: the surface's text color, and the theme's secondary text and accent at 4.5:1 on `--color-background-inverted`. Where a theme's accent is the tooltip surface's own color, accent text takes the secondary color. The Butter, Gothic, Matcha, Stone and Y2K themes, and their templates that `astryx` copies into a project, set the three roles to named stops of their own palettes. Plain text keeps the tooltip's own text color. Nothing is measured on the page. The token reference that `astryx docs tokens` prints lists the three roles.
0 commit comments