Skip to content

fix: tint only the points in dark mode, not the story titles - #32

Merged
ericboehs merged 2 commits into
masterfrom
fix/dark-mode-points-only
Aug 30, 2026
Merged

fix: tint only the points in dark mode, not the story titles#32
ericboehs merged 2 commits into
masterfrom
fix/dark-mode-points-only

Conversation

@ericboehs

Copy link
Copy Markdown
Owner

Story titles go back to UIkit's .uk-light white. The blue is now confined to the points column.

Verified in the browser per scheme:

story title points high-score points background
dark rgb(255,255,255) rgb(88,166,255) rgb(88,166,255) rgb(0,0,0)
light rgb(13,13,13) rgb(13,13,13) rgb(30,135,240) rgb(255,255,255)

Light mode is untouched.

A correction to PR #31

That PR's description claimed the story detail page title was fixed to blue. It wasn't — views/story.erb never made it into the commit. A git checkout views/story.erb while probing ETag behaviour reverted the uncommitted change first, and the file is absent from the merge (git log -S confirms the class never landed on any branch).

The claim was wrong and I should have checked the diff rather than trusting the edit. That page should keep white titles now anyway, so nothing needs adding back.

Visited links

The new .points selectors are more specific than the global table a:visited, so without an explicit rule clicked stories would have stopped dimming — in dark mode only. An explicit visited rule preserves the existing grey.

One consequence worth naming

Light mode distinguishes ordinary points (#0d0d0d) from high-scoring ones (#1e87f0) by colour. Tinting every point blue flattens that distinction in dark mode — both are now #58a6ff. If you want the highlight back, ordinary points can take a dimmer blue.

Tests: 119 runs, 320 assertions.

Story titles go back to UIkit's .uk-light white; the blue is now confined
to the points column, which is what was actually wanted.

Also fixes a claim in the previous PR. It said the story detail page
title was fixed, but views/story.erb never made it into the commit -- a
`git checkout views/story.erb` while probing ETag behaviour reverted the
uncommitted change first. The file was absent from the merge. That page
should keep white titles now anyway, so nothing needs adding back.

Visited points keep the grey they already had: the new rules are more
specific than `table a:visited`, so without an explicit rule they would
have started overriding it and clicked stories would stop dimming.

Verified in the browser per scheme. Dark: title rgb(255,255,255), points
rgb(88,166,255). Light: unchanged at rgb(13,13,13) with the high-score
highlight still rgb(30,135,240).

One consequence worth naming: light mode distinguishes ordinary points
from high-scoring ones by colour, and tinting every point blue flattens
that distinction in dark mode.
Visited listing titles are grey, not white -- the global `table a:visited`
outranks UIkit. And the visited rule preserves grey *points* in dark mode,
where the new scoped selectors would otherwise outrank that global rule;
light mode was never affected.
@ericboehs
ericboehs force-pushed the fix/dark-mode-points-only branch from 20d24b3 to 9984414 Compare August 30, 2026 03:35
@ericboehs
ericboehs merged commit e6757bc into master Aug 30, 2026
2 checks passed
@ericboehs
ericboehs deleted the fix/dark-mode-points-only branch August 30, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant