From 91650efde5372bdb1639708fdafd7607986f90b7 Mon Sep 17 00:00:00 2001 From: Seth Carlson Date: Fri, 30 Oct 2026 16:52:57 -0700 Subject: [PATCH] Midnight theme for the not-found page, the one outer page Flyspace serves one page route: / opens straight into the canvas. The only site-like page a visitor can reach is the 404 that every other path returns, which was the framework's stock page (white in a light browser). It is now src/app/not-found.tsx with the same copy and layout in the SyberLabs Midnight palette, scoped to .midnight-page so the canvas and every working screen keep the Atlas palette (canvas screenshot before and after: 0 of 1,296,000 pixels differ). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VHrJ4iuqxC5KGQrKkN1gp6 --- src/app/globals.css | 64 +++++++++++++++++++++++++++++++++++++++++++ src/app/not-found.tsx | 17 ++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 src/app/not-found.tsx diff --git a/src/app/globals.css b/src/app/globals.css index 5355844..2e30856 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -738,3 +738,67 @@ body { .account-restore { margin-top: 18px; padding: 14px; border: 1px solid #9a6bff88; border-radius: 12px; background: #9a6bff16; } .account-restore h3 { margin: 0 0 5px; } .account-restore > small { color: var(--text-muted); font-size: 11px; } + +/* ============================================ + MIDNIGHT THEME: SITE-LIKE PAGES ONLY + The SyberLabs Midnight theme (syberlabs.io, October 30, 2026) for pages + that are not the canvas. Today that is only not-found.tsx. Everything is + scoped to .midnight-page, so the canvas and every working screen keep the + Atlas palette above. Midnight #02070A surface, off-white text, Electric + Blue #0297DE for links and focus. + ============================================ */ + +:root:has(.midnight-page) { color-scheme: dark; } +body:has(.midnight-page) { background: #02070a; } + +.midnight-page { + --citadel-void: #02070a; + --citadel-surface: #07121a; + --citadel-elevated: #0c1b25; + --citadel-border: rgba(140, 200, 235, 0.14); + --rule: rgba(140, 200, 235, 0.14); + --rule-2: rgba(140, 200, 235, 0.28); + --blue: #0297de; + --ice: #0297de; + --citadel-primary: #0297de; + --text-primary: #f1f6f9; + --text-secondary: #c3cfd6; + --text-muted: #93a4ae; + color-scheme: dark; + background: var(--citadel-void); + color: var(--text-primary); +} +.midnight-page a { color: var(--blue); } +.midnight-page a:hover { color: #4cc0f5; } +.midnight-page :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; } +.midnight-page ::selection { background: rgba(2, 151, 222, 0.32); color: #fff; } + +/* The framework's stock 404 layout, unchanged; only its colours are Midnight. */ +.not-found { + font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + height: 100vh; + text-align: center; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} +.not-found-code { + display: inline-block; + margin: 0 20px 0 0; + padding: 0 23px 0 0; + font-size: 24px; + font-weight: 500; + vertical-align: top; + line-height: 49px; + color: var(--text-primary); + border-right: 1px solid var(--rule-2); +} +.not-found-message { display: inline-block; } +.not-found-message h2 { + font-size: 14px; + font-weight: 400; + line-height: 49px; + margin: 0; + color: var(--text-secondary); +} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 0000000..b530609 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,17 @@ +// Every path the app has no page for. The framework's stock 404, same copy and +// layout, in the SyberLabs Midnight theme (globals.css, `.midnight-page`). It is +// the one site-like page Flyspace serves; the canvas at / keeps its own palette. +export default function NotFound() { + return ( +
+ 404: This page could not be found. + +
+

404

+
+

This page could not be found.

+
+
+
+ ); +}