+
+
+
+
+ {#if $appState === 'ready' || $appState === 'starting'}
+
+ {/if}
+
+
+
+
+ {#if $appState === 'setup'}
+
+
+
Computer
+
+ Your computer, from anywhere.
+
+
+ {#if errorText}
+
{errorText}
+ {/if}
+
+
+
+
+
+ {:else if $appState === 'starting'}
+ {#if logsOpen}
+
+
+ {#each logLines as line}
+
{line}
+ {/each}
+ {#if logLines.length === 0}
+
No log output yet.
+ {/if}
+
+
+ {:else}
+
+
+ {#if installing && statusText}
+
{statusText}
+ {/if}
+
+ {/if}
+
+ {:else if $appState === 'ready' && serverUrl}
+ {#if logsOpen}
+
+ {:else}
+
+ {
+ if (e.channel === 'theme-change' && e.args?.[0]) {
+ applyTheme(e.args[0])
+ }
+ }}
+ >
+
+ {/if}
+ {/if}
+
+ {#if settingsOpen}
+ settingsOpen = false} />
+ {/if}
+
+
+
diff --git a/src/renderer/src/app.css b/src/renderer/src/app.css
new file mode 100644
index 0000000..e209d29
--- /dev/null
+++ b/src/renderer/src/app.css
@@ -0,0 +1,100 @@
+@import "tailwindcss";
+
+@custom-variant dark (&:where(.dark, .dark *));
+
+@theme {
+ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
+ --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
+
+ /* Exact cptr gray scale - pure neutral, zero chroma */
+ --color-gray-50: oklch(0.98 0 0);
+ --color-gray-100: oklch(0.94 0 0);
+ --color-gray-200: oklch(0.92 0 0);
+ --color-gray-300: oklch(0.85 0 0);
+ --color-gray-400: oklch(0.77 0 0);
+ --color-gray-500: oklch(0.69 0 0);
+ --color-gray-600: oklch(0.51 0 0);
+ --color-gray-700: oklch(0.42 0 0);
+ --color-gray-800: oklch(0.32 0 0);
+ --color-gray-850: oklch(0.27 0 0);
+ --color-gray-900: oklch(0.2 0 0);
+ --color-gray-950: oklch(0.16 0 0);
+}
+
+@layer base {
+ *,
+ ::after,
+ ::before,
+ ::backdrop,
+ ::file-selector-button {
+ border-color: var(--color-gray-200, currentColor);
+ }
+
+ html,
+ body {
+ height: 100dvh;
+ margin: 0;
+ overflow: hidden;
+ overscroll-behavior: none;
+ scrollbar-width: none;
+ -ms-overflow-style: none;
+ }
+
+ html::-webkit-scrollbar,
+ body::-webkit-scrollbar {
+ display: none;
+ }
+
+ html {
+ color-scheme: dark light;
+ touch-action: manipulation;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ user-select: none;
+ }
+
+ button {
+ @apply cursor-pointer;
+ }
+}
+
+.drag-region {
+ -webkit-app-region: drag;
+}
+
+.drag-region a,
+.drag-region button {
+ -webkit-app-region: no-drag;
+}
+
+.no-drag {
+ -webkit-app-region: no-drag;
+}
+
+/* Scrollbar - cptr style */
+::-webkit-scrollbar-thumb {
+ --tw-border-opacity: 1;
+ background-color: rgba(215, 215, 215, 0.6);
+ border-color: rgba(255, 255, 255, var(--tw-border-opacity));
+ border-radius: 9999px;
+ border-width: 1px;
+}
+
+.dark ::-webkit-scrollbar-thumb {
+ background-color: rgba(67, 67, 67, 0.6);
+ border-color: rgba(0, 0, 0, var(--tw-border-opacity));
+}
+
+::-webkit-scrollbar {
+ height: 0.45rem;
+ width: 0.45rem;
+}
+
+::-webkit-scrollbar-track {
+ background-color: transparent;
+ border-radius: 9999px;
+}
+
+#app {
+ height: 100dvh;
+}
diff --git a/src/renderer/src/env.d.ts b/src/renderer/src/env.d.ts
new file mode 100644
index 0000000..4078e74
--- /dev/null
+++ b/src/renderer/src/env.d.ts
@@ -0,0 +1,2 @@
+///