Skip to content

Bring back the palette picker with light and dark pairs - #150

Merged
aivanchenk merged 1 commit into
mainfrom
fix/lost-palettes
Oct 14, 2026
Merged

aivanchenk merged 1 commit into
mainfrom
fix/lost-palettes

Conversation

@aivanchenk

Copy link
Copy Markdown
Collaborator

Closes #149

The palette picker had shrunk to Science and Flux after #133. It now offers seven palettes again. Each Crameri palette is a light and dark pair that follows the theme:

Light theme Dark theme
vik berlin
broc lisbon
cork tofino
bam vanimo
roma managua
RdBu RdBu
Flux Flux

Changes

  • Adds lisbon, tofino, bam and managua, downsampled to 33 stops from the official Crameri 8.0.0 tables. The same method rebuilds the existing six tables exactly.
  • The picker shows the active map's real name.
  • On the dark maps, zero now draws in the dark panel colour (--editor-bg-primary), so near-zero hours blend into the panel instead of showing as a black band. The shift fades out toward both ends, so the strongest colours are unchanged.
  • Older stored choices still load: "Science" becomes vik/berlin, and a stored dark map name maps back to its pair.
  • New THIRD_PARTY_NOTICES.md with sources and licences: Crameri (MIT), ColorBrewer RdBu (Apache 2.0), CET Flux via colorcet (CC BY 4.0).

Checks

  • 212 tests pass, including new ones for the pairs, older stored choices, zero matching the panel, and colours getting brighter away from zero.
  • Type check, lint on src and build are clean.
  • Checked in the browser in both themes. In dark theme, no fingerprint cell is darker than the panel.

Not in this PR

PDF and image exports still always use vik, whatever palette is picked. That was already the case before this change.

The picker had shrunk to Science and Flux. It now offers vik, broc, cork,
bam, roma, RdBu and Flux, and each Crameri palette switches to its
dark-centred counterpart (berlin, lisbon, tofino, vanimo, managua) in the
dark theme. Adds lisbon, tofino, bam and managua from Crameri 8.0.0.

On the dark maps, zero now draws in the dark panel colour, so near-zero
hours blend into the panel instead of showing as a black band.

Older stored choices still load. Sources and licences are in
THIRD_PARTY_NOTICES.md.

Closes #149
@github-actions

Copy link
Copy Markdown

🚀 Vercel preview deployed

Preview URL: https://earth-prints-hl9jbyool-anastasiia-s-projects10.vercel.app

@aivanchenk
aivanchenk merged commit a6b3756 into main Oct 14, 2026
2 checks passed
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.

lost palettes

1 participant