Repository navigation
style(theme): warm greys, a green default, and cluster counts that read - #469
Conversation
The built-in seeds move to a green primary (#2D9A76) and a coral contrast (#E0775C), and every marker colour now comes from the palette engine by one rule, branded or not: the pin is the ramp's step 9, the cluster disc its step 10, one pale halo per role, and the count black or white by contrast. The stock disc lands on #268264 with a white count at 4.7:1 (was 2.4:1 on the translucent #37BB92), and the disc is opaque. The six hard-coded stock marker constants are gone. The neutral ramp is Radix sand, aliased under the gray-* names, so text and borders read faintly warm; the panels stay white and near-black. A dismissible Alert's close glyph is dimmed to 80%, which clears 3:1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed stepHex Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…'s dark green In light mode a selected radio card or toggle filled with primary step 9 and its black on-colour, which on the green default read bright beside the step-12 buttons and checkboxes. Both now match the solid Button: step 12 under white in light mode, step 9 and its on-colour in dark. Danger still wins in both modes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
As in the warm-look proposal build: a pin carries a thin 1.2 outline in the basemap's fixed edge colour (black on the light map, white on the dark one), and no translucent ring, so its head is drawn full size again. The cluster bubble keeps its pale halo as its only edge. The pins' art is now per mode, so Map.tsx re-registers the marker images on a theme switch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Smaller than what it replaces: six hard-coded Studio hexes, stepHex and onHex all go, and an unbranded map now runs the engine a tenant's runs, for −12 net lines. The contrast claims check out — white is 4.71:1 on the step-10 disc #268264, black 6.0:1 on the step-9 solid #2d9a76 where white is 3.5:1 — so both on-colour picks are the engine's. The consumer mirror is real: SahajCloud#1263 sets color1 #2D9A76 / color3 #E0775C, matching DEFAULT_SEEDS, and no embed parameter, origin or CSP row changes.
Two things a reviewer cannot get from the PR. The body cites "the ticket" three times and links none; an org-wide search finds none either, so its scope claims are unverifiable. And both ## Preview rows say "preview pending" on a wholly visual change, leaving hex measurements as the only evidence of how it looks.
Findings
should-fix—markers.ts:157: a comment this diff adds namesstepHex, which this diff deletes.docs/rules/mapbox.md:71too.should-fix—globals.css:324: the default light on-colour becomes black, so the Schedule-X comment at line 539 ("light: white") is now wrong.should-fix—markers.ts:154: StreamlineringOfinto its one caller.consider—Alert.tsx:21:Chip.tsx:29keeps theopacity-60this glyph just left for a measured 3:1 floor.
What was checked
Read whole on the branch: palette.ts, markers.ts, layers.ts, globals.css, the four docs. Ladder walked for all 7 new pieces (streamliner: 7 covered, 6 kept). Confirmed vagueRing/vagueDot still use mode via MARKER_OUTLINE, and the deleted stock hexes survive only in a tenant stub and a host-page header. Consumer side: SahajCloud appearance.ts and #1263. Not read: WeMeditateWeb and the WordPress templates, outside this session's repo scope. No question threads. Profile read.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
… smooth The pin art was rasterised at 2× its 34×38 box and shrunk to 0.85 with `icon-size`. Mapbox resamples a scaled icon from its atlas with no mipmaps, which stair-stepped the pins' 1.2 outline at both 1× and 2× (and every image at 1×). Each image is now rasterised at the size it shows and at the screen's own devicePixelRatio, and the resting pin layers carry no `icon-size`, so Mapbox draws them 1:1. The hover highlight still scales up, by 1 / PIN_SIZE, to keep its pop. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The contrast was drawn against `stepHex`, which this branch deletes, so a fresh reader could not find the function the note contrasts with. `buildScale` is what `boundsLayer` still uses to take a step off a seed without `selected-distinct`. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYzmvbGXxGDz4QixH8
One call site since the halo became the bubble's alone, where `shiftHex` reads the same. Colours are identical: the frozen stock SVGs and the branded expectations both pass untouched. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYzmvbGXxGDz4QixH8
The engine picks black or white per role, so the note's "light: white, dark: black" held only for a tenant whose solid is dark. Every default `--*-on` is black on this branch. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYzmvbGXxGDz4QixH8
The same idiom and the same measurement as the Alert's close glyph. The one rendered chip is neutral, whose step-12 glyph already cleared the floor at 60% (4.2:1), but the tinted variants measured 2.3:1 there. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYzmvbGXxGDz4QixH8
|
All four critic threads adopted. Each reply has its SHA.
Lean gate green. Security review: no findings. Body refreshed. ⚠ The branch moved mid-run: head 4ef40d7 → d71d5f2 and the body was rewritten at 18:09Z, both after I read them. I rebuilt my commits on d71d5f2. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. 🤖 Written by the sydevs autonomous loop — see what this is
#469's theme change and this branch's inline embed both inserted a new entry at the top of the changelog's Unreleased > Changed section. Both are host-visible and independent, so both entries stay, the inline embed's first as the later landing. Every other overlap auto-merged in disjoint regions: #469 rewrote the palette, the markers and the grey ramp, while this branch only renamed the slot machinery those files mention. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYkskqfH2N9ChAJsXr
Summary
gray-*names, and the panels stay white and near-black.#2D9A76and a coral contrast#E0775C.Change outline
Behaviour — where marker colours come from
The six hard-coded stock colours are gone. An unbranded embed now runs
DEFAULT_SEEDSthrough the same engine a tenant's colours go through.Behaviour — the marker art and how it is registered
A pin swaps its translucent ring for the basemap's fixed edge, as in the warm-look proposal build. That makes its art differ by mode. Every image is now drawn at the size it shows, at the screen's pixel ratio.
Flow — the paints that read those colours
Contract — the palette engine
Components — selected states and the stylesheet
Preview
--primary-onMapbox,Inputs / Radio Group,Inputs / Toggle Group,Alert; default preset) — preview pendingContract impact
docs/embedding.md, "Your brand colours reach the map", now says:CHANGELOG.mdhas a Changed entry.No parameter, origin, CSP, storage or Permissions-Policy change. Neither host (WeMeditateWeb's
lib/atlas-embed.tsor the WordPress templates) passes colours, so neither changes.chore(clients): mirror the atlas's new default colours SahajCloud#1263 mirrors
DEFAULT_SEEDSinATLAS_DEFAULT_COLORS, the fallback for the admin colour pickers. The two can merge in either order.Test results
check.sh: lint, typecheck,test:run): ✓, 2381 passed and 1 skipped. Re-run green over the four review commits.Modal.focus-openerfailed intermittently when the lane ran beside a dev server and Ladle. It passed alone and on every rerun, and it is untouched here.icon-size.assert-css-scopedconfirms the alias compiles to:where(.sy-atlas).pnpm size✓.clients/mecolours stubbed):#268264and pin#2d9a76in both modes.#3a7bd5embed gets its own blue markers.--gray-11is#63635ein light mode and#b5b3adin dark.#1c5f48under white in light mode,#61d1acunder black in dark.Manual verification
#d87b64) and circle (#d2664b) should read as distinct from the greens. The hover pin scales up and may look slightly soft.--sx-color-on-primary, which affects the today highlight. Check that it reads well.Notes for reviewer
Decisions the owner made in-session:
So branded maps change too. Circles go one step darker and solid, counts are re-picked and halos turn paler, and pins gain the edge. The ticket's option A had said branded maps would stay as they were.
The pins' art is now per mode, so
Map.tsxre-registers the markers on a theme switch. The first switch into a mode decodes that mode's images, so its pins can land a frame after the new style. Ashortcut:note says so.The pixel ratio is read once per registration. A window moved to a screen with another ratio keeps slightly soft markers until the next palette or theme change. That is also a
shortcut:.Ordering: the ticket put the warm greys after the g-tidy-type-edges token piece. That piece is not on
mainor in any open PR. Both changes are one block inglobals.css.Dismissed findings from the first review pass:
colorsinto the layer factories. The extra derivations cost tens of µs and run only at mount, a theme switch or a palette change.DEFAULT_MARKER_COLORSis computed at import. That is about 0.25 ms, once, in the lazy full-interface chunk.Map.tsxmemoises on the palette object, so that costs one derivation per change.@themeand its 25 readers instead of aliasing. The alias is the smaller change.opacity-60is left insrc/.wire.tsandserve-embed-review.mjsstill use#1E6C71. Those are a branded fixture and a host page, not mirrors of the default.Security review (triggered by
src/styles/): no findings. Every colour that reaches the SVG or a paint is colord-normalised#rrggbb, and the ratio is numeric.Detail
#2d9a76;#268264with halo#9cd8c4;#d87b64;#d2664bwith halo#e8c4bb;#000000on the light map and#ffffffon the dark map, 1.2 wide in art units (≈ 1 CSS px).#30A47Dpin,#268264circle and#9ED8C2halo. The seed#2D9A76was chosen so that step 10 lands exactly on#268264, and the halo shift was retuned so the stock halo lands on#9cd8c4.#30A47Dseed would make the engine pick a black count, because white is only 3.0:1 on it. That is why the circle takes the darker step.🤖 Generated with Claude Code