@the-portland-company/shell 0.63.0 → 0.65.0

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
@@ -1194,14 +1194,7 @@ function readThemeCookie() {
1194
1194
  }
1195
1195
  }
1196
1196
  function resolveTheme(pref) {
1197
- if (pref === "system") {
1198
- try {
1199
- return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
1200
- } catch {
1201
- return "light";
1202
- }
1203
- }
1204
- return pref;
1197
+ return "light";
1205
1198
  }
1206
1199
  function readStoredThemePreference() {
1207
1200
  const cookie = readThemeCookie();
@@ -1225,11 +1218,11 @@ var ls=null;try{ls=localStorage.getItem(KEY);}catch(e){}
1225
1218
  var pref=cookie||ls||"system";
1226
1219
  if(VALID.indexOf(pref)===-1)pref="system";
1227
1220
  if(cookie&&cookie!==ls){try{localStorage.setItem(KEY,cookie);}catch(e){}}
1228
- var resolved=pref;
1229
- if(pref==="system"){try{resolved=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";}catch(e){resolved="light";}}
1221
+ // Dark Mode retired platform-wide 2026-09-21 \u2014 always light, and strip any
1222
+ // stale dark class a pre-retirement cookie/localStorage value left behind.
1230
1223
  var d=document.documentElement;
1231
- if(resolved==="dark"){d.classList.add("dark");}else{d.classList.remove("dark");}
1232
- try{d.style.colorScheme=resolved;}catch(e){}
1224
+ d.classList.remove("dark");
1225
+ try{d.style.colorScheme="light";}catch(e){}
1233
1226
  }catch(e){}})();`;
1234
1227
 
1235
1228
  // src/theme/colorMode.tsx