3 Commits

Author SHA1 Message Date
e89a46e146 feat(app): add error page
All checks were successful
🚀 Lint & Test & Deploy / release (pull_request) Successful in 4m20s
2026-02-09 16:18:27 +01:00
cefda41fcf feat(theme): optimize node readability 2026-02-09 16:18:19 +01:00
21d0f0da5a feat: add high-contrast-light theme 2026-02-09 16:04:17 +01:00
6 changed files with 39 additions and 3 deletions

View File

@@ -109,7 +109,7 @@
transition: transition:
d 0.3s ease, d 0.3s ease,
fill 0.3s ease; fill 0.3s ease;
fill: var(--color-outline); fill: var(--color-layer-2);
stroke: var(--stroke); stroke: var(--stroke);
stroke-width: var(--stroke-width); stroke-width: var(--stroke-width);
d: var(--path); d: var(--path);

View File

@@ -6,6 +6,7 @@ const themes = [
'catppuccin', 'catppuccin',
'solarized', 'solarized',
'high-contrast', 'high-contrast',
'high-contrast-light',
'nord', 'nord',
'dracula' 'dracula'
] as const; ] as const;

View File

@@ -0,0 +1,20 @@
<script lang="ts">
import { page } from '$app/state';
</script>
<main class="w-screen h-screen flex flex-col items-center justify-center">
<div class="outline-1 outline-outline bg-layer-2">
<h1 class="p-8 text-3xl">@nodarium/error</h1>
<hr>
<pre class="p-8">{JSON.stringify(page.error, null, 2)}</pre>
<hr>
<div class="flex p-4">
<button
class="bg-layer-2 outline-1 outline-outline p-3 px-6 rounded-sm cursor-pointer"
on:click={() => window.location.reload()}
>
reload
</button>
</div>
</div>
</main>

View File

@@ -144,11 +144,25 @@ html.theme-high-contrast {
--color-outline: white; --color-outline: white;
--color-layer-0: black; --color-layer-0: black;
--color-layer-1: black; --color-layer-1: black;
--color-layer-2: #ababab; --color-layer-2: black;
--color-layer-3: white; --color-layer-3: white;
--color-active: #00ff00;
--color-selected: #ff0000;
--color-connection: #fff; --color-connection: #fff;
} }
html.theme-high-contrast-light {
--color-text: black;
--color-outline: black;
--color-layer-0: white;
--color-layer-1: white;
--color-layer-2: white;
--color-layer-3: black;
--color-active: #00ffff;
--color-selected: #ff0000;
--color-connection: black;
}
html.theme-nord { html.theme-nord {
--color-text: #d8dee9; --color-text: #d8dee9;
--color-outline: #4c566a; --color-outline: #4c566a;

View File

@@ -18,7 +18,7 @@
</script> </script>
<label <label
class="relative inline-flex h-5.5 w-5.5 cursor-pointer items-center justify-center bg-layer-2 rounded-[5px]" class="relative inline-flex h-5.5 w-5.5 cursor-pointer items-center justify-center bg-layer-2 outline-1 outline-outline rounded-[5px]"
> >
<input <input
type="checkbox" type="checkbox"

View File

@@ -6,6 +6,7 @@
'solarized', 'solarized',
'catppuccin', 'catppuccin',
'high-contrast', 'high-contrast',
'high-contrast-light',
'nord', 'nord',
'dracula', 'dracula',
'custom' 'custom'