@chrtco/sdk 0.10.22 → 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.cjs CHANGED
@@ -29066,36 +29066,60 @@ var BASE_THEMES = {
29066
29066
  inlandHalo: "#B9CFDD"
29067
29067
  },
29068
29068
  DUSK: {
29069
- // Same rule, this palette's tan: 3.03:1 vs sea, 2.97:1 vs tan.
29070
- earth: "#6F6752",
29069
+ // ── Re-derived 2026-09-01: the basemap sits UNDER the chart ──────────
29070
+ // These were the DAY tones scaled by a constant, never measured against
29071
+ // the DUSK chart — so `jurisdiction` came out at L=0.506 against a chart
29072
+ // whose own land (LANDA #8a7d5e) is L=0.209, i.e. the context layer was
29073
+ // 2.4x brighter than the data layer. Now capped at the chart's own land.
29074
+ // The rest of the block rides the same 0.666 channel factor so every
29075
+ // relationship the palette already chose is preserved, only moved down.
29076
+ // `water` is deliberately NOT scaled: it is the reference the land/sea
29077
+ // floor is measured against.
29078
+ earth: "#544E3E",
29071
29079
  water: "#161D21",
29072
- river: "#1E2930",
29073
- boundary: "#3E4A50",
29074
- jurisdiction: "#C9BC96",
29075
- inlandWater: "#93A9B7",
29076
- stateLine: "#A6976F",
29077
- stateLabel: "#776E55",
29078
- stateHalo: "#C9BC96",
29079
- inlandShore: "#74899A",
29080
- inlandLabel: "#41586A",
29081
- inlandHalo: "#93A9B7"
29080
+ river: "#141B20",
29081
+ boundary: "#293135",
29082
+ jurisdiction: "#867D64",
29083
+ inlandWater: "#62717A",
29084
+ // Label stays DARK here — the halo is still mid-toned, so 3:1 is reachable
29085
+ // downward and a bright label would be a new light source at dusk.
29086
+ stateLine: "#B5A987",
29087
+ stateLabel: "#38342A",
29088
+ stateHalo: "#867D64",
29089
+ inlandShore: "#4D5B67",
29090
+ inlandLabel: "#212629",
29091
+ inlandHalo: "#62717A"
29082
29092
  },
29083
29093
  NIGHT: {
29084
- // Same rule. NIGHT is inherently compressed — every tone is dark — so it
29085
- // reaches 2.06:1 vs sea / 2.44:1 vs tan rather than 3:1. Still 1.8x the
29086
- // separation it had, and pushing further would collide with the tan.
29087
- earth: "#4F4A3B",
29094
+ // ── Re-derived 2026-09-01 — the owner-reported night defect ──────────
29095
+ // `jurisdiction` was L=0.240 against a chart whose own land (LANDA
29096
+ // #3a3020) is L=0.031: the world basemap was 7.7x BRIGHTER than the chart
29097
+ // it sits under, so at z<11 the uncharted interior read as a pale
29098
+ // continent-sized slab on a night chart. Capped at the chart's own land.
29099
+ //
29100
+ // ⚠ `earth` AND `jurisdiction` CONVERGE HERE, and that is forced, not
29101
+ // sloppy. Holding earth 2:1 above the ocean AND 2:1 below the jurisdiction
29102
+ // tan requires jurisdiction >= L 0.174 — 5.6x the chart's own land. At
29103
+ // night the range between the ocean (L 0.006) and the cap (L 0.031) is too
29104
+ // compressed to carry two land tones. COVERAGE IS STILL SAID, by the
29105
+ // `chrt:hatch-nocoverage` crosshatch, which is a stronger signal than tone
29106
+ // and is the one thing that cannot be lost to palette compression.
29107
+ //
29108
+ // Labels invert to light-on-dark: 3:1 downward is unreachable off a halo
29109
+ // this close to black, and CHRTland's own night town labels already sit at
29110
+ // L=0.177 for exactly this reason.
29111
+ earth: "#333026",
29088
29112
  water: "#10161A",
29089
- river: "#182228",
29090
- boundary: "#333E44",
29091
- jurisdiction: "#8F866C",
29092
- inlandWater: "#5F7280",
29093
- stateLine: "#6B6350",
29094
- stateLabel: "#565040",
29095
- stateHalo: "#8F866C",
29096
- inlandShore: "#4A5C68",
29097
- inlandLabel: "#8CA2B0",
29098
- inlandHalo: "#5F7280"
29113
+ river: "#090D0F",
29114
+ boundary: "#131719",
29115
+ jurisdiction: "#353128",
29116
+ inlandWater: "#232A30",
29117
+ stateLine: "#484236",
29118
+ stateLabel: "#837963",
29119
+ stateHalo: "#353128",
29120
+ inlandShore: "#1C2227",
29121
+ inlandLabel: "#617484",
29122
+ inlandHalo: "#232A30"
29099
29123
  }
29100
29124
  };
29101
29125
  function baseLayers(opts = {}) {