@chrtco/sdk 0.10.21 → 0.10.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -28844,36 +28844,60 @@ var BASE_THEMES = {
28844
28844
  inlandHalo: "#B9CFDD"
28845
28845
  },
28846
28846
  DUSK: {
28847
- // Same rule, this palette's tan: 3.03:1 vs sea, 2.97:1 vs tan.
28848
- earth: "#6F6752",
28847
+ // ── Re-derived 2026-09-01: the basemap sits UNDER the chart ──────────
28848
+ // These were the DAY tones scaled by a constant, never measured against
28849
+ // the DUSK chart — so `jurisdiction` came out at L=0.506 against a chart
28850
+ // whose own land (LANDA #8a7d5e) is L=0.209, i.e. the context layer was
28851
+ // 2.4x brighter than the data layer. Now capped at the chart's own land.
28852
+ // The rest of the block rides the same 0.666 channel factor so every
28853
+ // relationship the palette already chose is preserved, only moved down.
28854
+ // `water` is deliberately NOT scaled: it is the reference the land/sea
28855
+ // floor is measured against.
28856
+ earth: "#544E3E",
28849
28857
  water: "#161D21",
28850
- river: "#1E2930",
28851
- boundary: "#3E4A50",
28852
- jurisdiction: "#C9BC96",
28853
- inlandWater: "#93A9B7",
28854
- stateLine: "#A6976F",
28855
- stateLabel: "#776E55",
28856
- stateHalo: "#C9BC96",
28857
- inlandShore: "#74899A",
28858
- inlandLabel: "#41586A",
28859
- inlandHalo: "#93A9B7"
28858
+ river: "#141B20",
28859
+ boundary: "#293135",
28860
+ jurisdiction: "#867D64",
28861
+ inlandWater: "#62717A",
28862
+ // Label stays DARK here — the halo is still mid-toned, so 3:1 is reachable
28863
+ // downward and a bright label would be a new light source at dusk.
28864
+ stateLine: "#B5A987",
28865
+ stateLabel: "#38342A",
28866
+ stateHalo: "#867D64",
28867
+ inlandShore: "#4D5B67",
28868
+ inlandLabel: "#212629",
28869
+ inlandHalo: "#62717A"
28860
28870
  },
28861
28871
  NIGHT: {
28862
- // Same rule. NIGHT is inherently compressed — every tone is dark — so it
28863
- // reaches 2.06:1 vs sea / 2.44:1 vs tan rather than 3:1. Still 1.8x the
28864
- // separation it had, and pushing further would collide with the tan.
28865
- earth: "#4F4A3B",
28872
+ // ── Re-derived 2026-09-01 — the owner-reported night defect ──────────
28873
+ // `jurisdiction` was L=0.240 against a chart whose own land (LANDA
28874
+ // #3a3020) is L=0.031: the world basemap was 7.7x BRIGHTER than the chart
28875
+ // it sits under, so at z<11 the uncharted interior read as a pale
28876
+ // continent-sized slab on a night chart. Capped at the chart's own land.
28877
+ //
28878
+ // ⚠ `earth` AND `jurisdiction` CONVERGE HERE, and that is forced, not
28879
+ // sloppy. Holding earth 2:1 above the ocean AND 2:1 below the jurisdiction
28880
+ // tan requires jurisdiction >= L 0.174 — 5.6x the chart's own land. At
28881
+ // night the range between the ocean (L 0.006) and the cap (L 0.031) is too
28882
+ // compressed to carry two land tones. COVERAGE IS STILL SAID, by the
28883
+ // `chrt:hatch-nocoverage` crosshatch, which is a stronger signal than tone
28884
+ // and is the one thing that cannot be lost to palette compression.
28885
+ //
28886
+ // Labels invert to light-on-dark: 3:1 downward is unreachable off a halo
28887
+ // this close to black, and CHRTland's own night town labels already sit at
28888
+ // L=0.177 for exactly this reason.
28889
+ earth: "#333026",
28866
28890
  water: "#10161A",
28867
- river: "#182228",
28868
- boundary: "#333E44",
28869
- jurisdiction: "#8F866C",
28870
- inlandWater: "#5F7280",
28871
- stateLine: "#6B6350",
28872
- stateLabel: "#565040",
28873
- stateHalo: "#8F866C",
28874
- inlandShore: "#4A5C68",
28875
- inlandLabel: "#8CA2B0",
28876
- inlandHalo: "#5F7280"
28891
+ river: "#090D0F",
28892
+ boundary: "#131719",
28893
+ jurisdiction: "#353128",
28894
+ inlandWater: "#232A30",
28895
+ stateLine: "#484236",
28896
+ stateLabel: "#837963",
28897
+ stateHalo: "#353128",
28898
+ inlandShore: "#1C2227",
28899
+ inlandLabel: "#617484",
28900
+ inlandHalo: "#232A30"
28877
28901
  }
28878
28902
  };
28879
28903
  function baseLayers(opts = {}) {