Backport new UI kit design system from garden

Co-authored-by: Julien Donck <donckjulien@gmail.com>
This commit is contained in:
Rūdolfs Ošiņš
2026-03-06 11:38:43 -06:00
co-authored by Julien Donck
parent 4eae95ab44
commit fa85596ba1
130 changed files with 3604 additions and 3018 deletions
+5 -5
View File
@@ -11,10 +11,10 @@
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--font-size-small);
color: var(--color-foreground-dim);
font: var(--txt-body-m-regular);
color: var(--color-text-tertiary);
height: 2.3125rem;
background-color: var(--color-background-dip);
background-color: var(--color-surface-base);
padding: 0 1rem;
}
@@ -34,7 +34,7 @@
}
a:hover {
color: var(--color-fill-secondary);
color: var(--color-text-brand);
}
</style>
@@ -63,7 +63,7 @@
rel="noreferrer"
href="https://radicle.xyz">
radicle.xyz
<Icon name="arrow-box-up-right" />
<Icon name="open-external" />
</a>
</div>
</div>
+1 -1
View File
@@ -7,7 +7,7 @@
height: 100vh;
width: 100vw;
position: fixed;
z-index: 100;
z-index: 300;
justify-content: center;
overflow: scroll;
display: flex;
+3 -2
View File
@@ -7,10 +7,11 @@
<style>
.help {
font-size: var(--font-size-small);
font: var(--txt-body-m-regular);
display: flex;
flex-direction: column;
gap: 1rem;
width: 100%;
}
.item {
display: flex;
@@ -20,7 +21,7 @@
gap: 2rem;
}
.divider {
border-bottom: 1px solid var(--color-fill-separator);
border-bottom: 1px solid var(--color-border-subtle);
}
</style>
+2 -2
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import * as modal from "@app/lib/modal";
import ColorPaletteModal from "@app/modals/ColorPaletteModal.svelte";
import DesignSystemModal from "@app/modals/DesignSystemModal.svelte";
import HotkeysModal from "@app/modals/HotkeysModal.svelte";
const onKeydown = (event: KeyboardEvent) => {
@@ -18,7 +18,7 @@
if (import.meta.env.PROD) {
return;
}
modal.toggle({ component: ColorPaletteModal, props: {} });
modal.toggle({ component: DesignSystemModal, props: {} });
break;
}
};
+9 -56
View File
@@ -1,68 +1,21 @@
<script lang="ts">
import Footer from "@app/App/Footer.svelte";
import MobileFooter from "@app/App/MobileFooter.svelte";
import Link from "@app/components/Link.svelte";
import Header from "@app/components/Header.svelte";
</script>
<style>
.app {
display: flex;
flex-direction: column;
height: 100%;
}
.header {
border-bottom: 1px solid var(--color-fill-separator);
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0;
padding: 0.5rem 0.5rem 0.5rem 1rem;
height: 3.5rem;
justify-content: flex-end;
}
.content {
height: 100%;
overflow-y: scroll;
width: 100%;
display: grid;
height: calc(100vh - var(--global-header-height));
}
.logo {
height: var(--button-regular-height);
margin: 0 0.5rem;
}
@media (max-width: 719.98px) {
.app {
display: grid;
grid-template-rows: 1fr auto;
height: 100%;
}
.content {
overflow-y: scroll;
}
.center {
overflow-y: auto;
}
</style>
<div class="app">
<div class="global-hide-on-mobile-down header">
<Link
style="display: flex; align-items: center;"
route={{ resource: "nodes", params: undefined }}>
<img
width="24"
height="24"
class="logo"
alt="Radicle logo"
src="/radicle.svg" />
</Link>
</div>
<div class="content">
<Header />
<div class="content">
<div class="center">
<slot />
</div>
<div style:margin-top="auto">
<div class="global-hide-on-mobile-down">
<Footer />
</div>
<div class="global-hide-on-small-desktop-up">
<MobileFooter />
</div>
</div>
</div>
+1 -1
View File
@@ -5,7 +5,7 @@
<style>
.loading-bar {
height: 0.125rem;
background-color: var(--color-fill-secondary);
background-color: var(--color-surface-brand-primary);
width: 0%;
opacity: 0;
position: fixed;
+4 -9
View File
@@ -16,11 +16,11 @@
padding: 0.5rem;
z-index: 1;
gap: 0.5rem;
border-top: 1px solid var(--color-fill-separator);
background-color: var(--color-background-default);
border-top: 1px solid var(--color-border-subtle);
background-color: var(--color-surface-base);
}
.divider {
border-bottom: 1px solid var(--color-fill-separator);
border-bottom: 1px solid var(--color-border-subtle);
margin: 1.5rem 0;
}
</style>
@@ -29,12 +29,7 @@
<Link
style="width: 100%; display: flex; align-items: center; justify-content: center;"
route={{ resource: "nodes", params: undefined }}>
<img
width="16"
height="16"
class="logo"
alt="Radicle logo"
src="/radicle.svg" />
<Icon name="logo" />
</Link>
<slot />
+47 -57
View File
@@ -8,8 +8,6 @@
} from "@app/lib/appearance";
import Button from "@app/components/Button.svelte";
import Icon from "@app/components/Icon.svelte";
import Radio from "@app/components/Radio.svelte";
</script>
<style>
@@ -18,7 +16,7 @@
flex-direction: column;
align-items: center;
gap: 1.5rem;
font-size: var(--font-size-small);
font: var(--txt-body-m-regular);
}
.item {
@@ -38,64 +36,56 @@
<div class="settings">
<div class="item">
<div>Theme</div>
<div class="right">
<Radio>
<Button
ariaLabel="Light Mode"
styleBorderRadius="0"
variant={!$followSystemTheme && $theme === "light"
? "selected"
: "not-selected"}
on:click={() => {
theme.set("light");
followSystemTheme.set(false);
}}>
<Icon name="sun" />
</Button>
<div class="global-spacer"></div>
<Button
ariaLabel="Dark Mode"
styleBorderRadius="0"
variant={!$followSystemTheme && $theme === "dark"
? "selected"
: "not-selected"}
on:click={() => {
theme.set("dark");
followSystemTheme.set(false);
}}>
<Icon name="moon" />
</Button>
<div class="global-spacer"></div>
<Button
ariaLabel="System Theme"
styleBorderRadius="0"
variant={$followSystemTheme ? "selected" : "not-selected"}
on:click={() => {
theme.set(loadTheme());
followSystemTheme.set(true);
}}>
<Icon name="device" />
</Button>
</Radio>
<div class="right" style:display="flex" style:gap="0.25rem">
<Button
ariaLabel="Light Mode"
styleBorderRadius="0"
variant={!$followSystemTheme && $theme === "light"
? "gray"
: "background"}
on:click={() => {
theme.set("light");
followSystemTheme.set(false);
}}>
Light
</Button>
<Button
ariaLabel="Dark Mode"
styleBorderRadius="0"
variant={!$followSystemTheme && $theme === "dark"
? "gray"
: "background"}
on:click={() => {
theme.set("dark");
followSystemTheme.set(false);
}}>
Dark
</Button>
<Button
ariaLabel="System Theme"
styleBorderRadius="0"
variant={$followSystemTheme ? "gray" : "background"}
on:click={() => {
theme.set(loadTheme());
followSystemTheme.set(true);
}}>
System
</Button>
</div>
</div>
<div class="item">
<div>Code Font</div>
<div class="right">
<Radio>
{#each codeFonts as font}
<Button
styleBorderRadius="0"
styleFontFamily={font.fontFamily}
on:click={() => codeFont.set(font.storedName)}
variant={$codeFont === font.storedName
? "selected"
: "not-selected"}>
{font.displayName}
</Button>
<div class="global-spacer"></div>
{/each}
</Radio>
<div class="right" style:display="flex" style:gap="0.25rem">
{#each codeFonts as font}
<Button
ariaLabel={`Code Font ${font.displayName}`}
styleBorderRadius="0"
styleFontFamily={font.fontFamily}
on:click={() => codeFont.set(font.storedName)}
variant={$codeFont === font.storedName ? "gray" : "background"}>
{font.displayName}
</Button>
{/each}
</div>
</div>
</div>