Skip to content

fix(themes): readable title and text in the legacy dark theme file - #2240

Merged
Parvinmh merged 1 commit into
release-stagingfrom
Parvinmh/fix/legacy-dark-theme-text
Nov 25, 2026
Merged

Parvinmh merged 1 commit into
release-stagingfrom
Parvinmh/fix/legacy-dark-theme-text

Conversation

@Parvinmh

Copy link
Copy Markdown
Contributor

What

themes/introjs-dark.css (the legacy dark theme file) gives the tooltip a dark background (#434A54), but the title and the text stayed dark grey (#212121), so they were hard to read.

Why

Since the theme system, the base CSS colours the title, the text and the header with var(--introjs-color). The tour root gets .introjs-light by default, which sets that variable to a dark grey. This theme file only set color: #fff on .introjs-tooltip, so the variable won.

How

  • Set --introjs-color: #fff and --introjs-bg: #434A54 on .introjs-tooltip in themes/introjs-dark.css.
  • Make the "Don't show this again" label white (its base colour is a fixed dark grey).

Only this theme file changes. Other themes and the built-in theme: "dark" option are not affected.

Testing

  • Tour tooltip: title and text are now rgb(255, 255, 255) (before: rgb(33, 33, 33)), checked in Chromium with a screenshot, including the "Don't show this again" option.
  • Hint tooltip with this theme: text white on the dark background.
  • No Cypress test loads this file, so no snapshot changes.

themes/introjs-dark.css gives the tooltip a dark background, but the title
and the text take their colour from --introjs-color, which the default
light theme sets to a dark grey. Set the colour variables on the tooltip in
this theme, and make the "Don't show this again" label white too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Parvinmh Parvinmh self-assigned this Nov 25, 2026
@Parvinmh Parvinmh added the bug label Nov 25, 2026
@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
intro-js Ready Ready Preview Nov 25, 2026 3:21pm UTC

Request Review

@Parvinmh
Parvinmh merged commit ad43812 into release-staging Nov 25, 2026
4 checks passed
@Parvinmh
Parvinmh deleted the Parvinmh/fix/legacy-dark-theme-text branch November 25, 2026 15:26

This branch was successfully deployed

1 active deployment
Preview — 930f9f16 Deployed Nov 25, 2026 by vercel[bot]
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