Skip to content

Hover fills are invisible in the light theme #37

Closed

Description

@fctl-sh

What is wrong. In the light theme, hovering a session row on the home page or a project's page changes nothing you can see except the arrow fading in. The row's highlight is there, but it is #fbfbfb on the #fafafa canvas. The dark theme shows it (#1b1b1b on #171717).

How it works now. Hover fills use the raised token: hover:bg-raised/30 on the session rows (web/src/routes/home.tsx, web/src/routes/project.tsx), hover:bg-raised/60 on tool rows in a transcript (web/src/components/session/tool.tsx) and the sidebar (web/src/components/shell/app-shell.tsx), and hover:bg-raised on icon buttons, the copy button and the repository picker (web/src/routes/new-project.tsx). In @hyperstructure/design's tokens.css, the light theme sets --c-raised: #ffffff, the same as --c-surface. So a raised hover fill is close to invisible on the canvas (#fafafa) and invisible on surfaces (#ffffff). Most buttons also darken their text on hover, so they still respond. The session rows, tool rows and the repository picker keep their text as it is, so the fill is their main cue.

Measured in Chromium against cargo xtask dev (pixels sampled from screenshots of a hovered and an unhovered session row on the home page):

Theme Hovered row Unhovered row
Light #fbfbfb #fafafa
Dark #1b1b1b #171717

What should happen

Compatibility. Web app only. If the fix is a token, it is a change in hyperstructure/design, a new tag, and a bump of @hyperstructure/design in web/package.json.

Decisions for a person. Where the fix lives: a hover token in hyperstructure/design (or a light raised that isn't white, which also changes raised buttons and cards), or different classes in this repository.

Found while fixing the session rows' hover padding.

Session: https://app.fctl.sh/s/ses_01M56BXM0HKXAFZDEMXPN188ZP

Activity

  1. added
    bug
    web
    on Oct 18, 2026
  2. fctl-sh commented on Oct 18, 2026

    @fctl-sh
    ContributorAuthor

    Two pull requests fix this, with CI green on both:

    Measured on main and on #65 in both themes (the full table is in #65): in the light theme the fills now have the same contrast with what is under them as in the dark theme, on the canvas and on surfaces. For example, a hovered session row is #f5f5f5 on #fafafa (1.04) against dark's #1a1a1a on #171717 (1.03), and the dialog's close button is #f1f1f1 on white (1.13) against dark's 1.14. The dark theme is within one level of what it was on the canvas.

    Where the fix lives. This issue left that to a person. The pull requests take the token in hyperstructure/design, for the reasons in #65. If you'd rather have one of the other options, say so in #65.

    What is left

    1. A person merges feat(tokens): add hover, a fill for hovered rows and buttons design#6 and releases it (gh workflow run release.yml --repo hyperstructure/design --ref main -f bump=auto), which makes it v0.4.0.
    2. fix(web): make hover fills visible in the light theme #65 moves from the commit to the v0.4.0 tag, then a person merges it, which closes this issue.

    Also found, not changed

    • On a project's page, the selected filter ("All", "Active", "Mine") is bg-raised too, so in the light theme it is a white pill on the #fafafa canvas. It isn't a hover fill, so fix(web): make hover fills visible in the light theme #65 leaves it.
    • fctl.sh's copy button fills with --c-raised on hover (.copy:hover in hyperstructure/fctl-site's src/site.css), the same white-on-white. It can use --c-hover once fctl.sh moves to v0.4.0.

    Session: https://app.fctl.sh/s/ses_01M57HTNZ0QVWB2TG8Q0CV38Q2

  3. fctl-sh commented on Oct 18, 2026

    @fctl-sh
    ContributorAuthor

    Fixed by #65, merged as 711744f and deployed to app.fctl.sh (the merge's CI run, deploy included, passed). The web app still installs @hyperstructure/design from hyperstructure/design#6's commit, because #65 was merged before that pull request was. Moving it to the v0.4.0 tag once design#6 is merged and released is #66.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugweb

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions