moi-computer 0.10.1-next.2 → 0.10.1-next.3

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/client/index.css CHANGED
@@ -135,8 +135,13 @@
135
135
  -moz-osx-font-smoothing: grayscale;
136
136
  }
137
137
 
138
+ /* `bg-muted`, not `bg-background`: every route shell (SidebarLayout) paints
139
+ `h-dvh bg-muted`, so matching it here means the first paint — before the
140
+ SPA boots and before any workspace theme lands — is already the colour the
141
+ app settles on, instead of flashing white. It also fixes the overscroll
142
+ gutter, which browsers paint from the body background. */
138
143
  body {
139
- @apply bg-background font-sans text-foreground;
144
+ @apply bg-muted font-sans text-foreground;
140
145
  }
141
146
  }
142
147
 
package/client/index.html CHANGED
@@ -3,7 +3,22 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <!-- The app has no dark mode (nothing ever adds the `.dark` class), so say
7
+ so: without this the browser picks a base canvas from the OS setting. -->
8
+ <meta name="color-scheme" content="light" />
6
9
  <title>moi</title>
10
+ <!-- First-paint background, inline and before the stylesheet link on
11
+ purpose. index.css is render-blocking, so until it resolves the browser
12
+ has only its own white canvas to paint — on a cold load or a new tab
13
+ that is a white flash the stylesheet cannot prevent, because it *is*
14
+ the stylesheet. Parsed from the HTML, this applies with no round trip.
15
+ The literal duplicates `--muted` in client/index.css (custom properties
16
+ do not exist yet at this point); theme.test.ts pins the two together. -->
17
+ <style>
18
+ html {
19
+ background: oklch(0.97 0 0);
20
+ }
21
+ </style>
7
22
  <link rel="icon" type="image/png" href="./assets/favicon.png" />
8
23
  <!-- React is vendored locally (client/vendor/react, generated by
9
24
  scripts/build-vendor.ts) and served by the /vendor/react route, so moi