Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/public/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"start_url": "/",
"scope": "/",
"display": "standalone",
"background_color": "#f8fafb",
"theme_color": "#f8fafb",
"background_color": "#fafafa",
"theme_color": "#fafafa",
"icons": [
{
"src": "/icon-192.png",
Expand Down
96 changes: 48 additions & 48 deletions app/src/lib/artifacts/tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,77 +2,77 @@

:root {
color-scheme: light;
--background: oklch(0.983 0.003 247.9);
--foreground: oklch(0.108 0.042 264.7);
--background: oklch(0.985 0 0);
--foreground: oklch(0.179 0.02 252.2);
--card: oklch(1 0 0);
--card-foreground: oklch(0.108 0.042 264.7);
--card-foreground: oklch(0.179 0.02 252.2);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.108 0.042 264.7);
--primary: oklch(0.108 0.042 264.7);
--popover-foreground: oklch(0.179 0.02 252.2);
--primary: oklch(0.179 0.02 252.2);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.956 0.009 250.2);
--secondary-foreground: oklch(0.108 0.042 264.7);
--muted: oklch(0.956 0.009 250.2);
--muted-foreground: oklch(0.506 0.045 257.4);
--accent: oklch(0.956 0.009 250.2);
--accent-foreground: oklch(0.108 0.042 264.7);
--secondary: oklch(0.962 0.011 252.1);
--secondary-foreground: oklch(0.179 0.02 252.2);
--muted: oklch(0.936 0.009 264.5);
--muted-foreground: oklch(0.46 0.014 248.1);
--accent: oklch(0.962 0.011 252.1);
--accent-foreground: oklch(0.179 0.02 252.2);
--destructive: oklch(0.46 0.173 22.6);
--success: oklch(0.514 0.1 167.2);
--success: oklch(0.461 0.0903 168.6);
--warning: oklch(0.521 0.143 47.7);
--border: oklch(0.108 0.042 264.7 / 10%);
--input: oklch(0.108 0.042 264.7 / 10%);
--ring: oklch(0.638 0.167 276.1);
--border: oklch(0.179 0.02 252.2 / 10%);
--input: oklch(0.179 0.02 252.2 / 10%);
--ring: oklch(0.607 0.09 271.7);
--chart-1: oklch(0.46 0.2 264);
--chart-2: oklch(0.66 0.146 66);
--chart-3: oklch(0.62 0.122 170);
--chart-4: oklch(0.5 0.2 18);
--chart-5: oklch(0.6 0.2 286);
--empty-pattern-color: oklch(0.746 0.117 279.9);
--sidebar: oklch(0.948 0.01 251.8);
--sidebar-foreground: oklch(0.108 0.042 264.7);
--sidebar-primary: oklch(0.108 0.042 264.7);
--sidebar: oklch(0.936 0.009 264.5);
--sidebar-foreground: oklch(0.179 0.02 252.2);
--sidebar-primary: oklch(0.179 0.02 252.2);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.832 0.085 281.4 / 30%);
--sidebar-accent-foreground: oklch(0.108 0.042 264.7);
--sidebar-border: oklch(0.108 0.042 264.7 / 10%);
--sidebar-ring: oklch(0.638 0.167 276.1);
--sidebar-accent-foreground: oklch(0.179 0.02 252.2);
--sidebar-border: oklch(0.179 0.02 252.2 / 10%);
--sidebar-ring: oklch(0.607 0.09 271.7);
--radius: 0.625rem;
}

.dark {
color-scheme: dark;
--background: oklch(0.182 0.017 252);
--foreground: oklch(0.956 0.004 252);
--card: oklch(0.212 0.017 252);
--card-foreground: oklch(0.956 0.004 252);
--popover: oklch(0.212 0.017 252);
--popover-foreground: oklch(0.956 0.004 252);
--primary: oklch(0.956 0.004 252);
--primary-foreground: oklch(0.108 0.017 252);
--secondary: oklch(0.253 0.017 252);
--secondary-foreground: oklch(0.956 0.004 252);
--muted: oklch(0.253 0.017 252);
--muted-foreground: oklch(0.69 0.016 252);
--accent: oklch(0.28 0.016 252);
--accent-foreground: oklch(0.956 0.004 252);
--destructive: oklch(0.792 0.121 16.4);
--success: oklch(0.832 0.13 170.1);
--warning: oklch(0.828 0.189 84.4);
--border: oklch(0.956 0.004 252 / 12%);
--input: oklch(0.956 0.004 252 / 12%);
--ring: oklch(0.713 0.151 277.7);
--background: oklch(0.179 0.02 252.2);
--foreground: oklch(0.962 0.011 252.1);
--card: oklch(0.206 0.019 252.1);
--card-foreground: oklch(0.962 0.011 252.1);
--popover: oklch(0.206 0.019 252.1);
--popover-foreground: oklch(0.962 0.011 252.1);
--primary: oklch(0.962 0.011 252.1);
--primary-foreground: oklch(0.179 0.02 252.2);
--secondary: oklch(0.253 0.016 252.4);
--secondary-foreground: oklch(0.962 0.011 252.1);
--muted: oklch(0.33 0.015 252.3);
--muted-foreground: oklch(0.719 0.012 252.1);
--accent: oklch(0.33 0.015 252.3);
--accent-foreground: oklch(0.962 0.011 252.1);
--destructive: oklch(0.829 0.092 13.4);
--success: oklch(0.782 0.1307 173);
--warning: oklch(0.783 0.156 60.7);
--border: oklch(0.962 0.011 252.1 / 12%);
--input: oklch(0.962 0.011 252.1 / 12%);
--ring: oklch(0.607 0.09 271.7);
--chart-1: oklch(0.58 0.2 264);
--chart-2: oklch(0.76 0.168 66);
--chart-3: oklch(0.86 0.17 170);
--chart-4: oklch(0.6 0.2 18);
--chart-5: oklch(0.76 0.128 286);
--empty-pattern-color: oklch(0.832 0.085 281.4);
--sidebar: oklch(0.156 0.017 252);
--sidebar-foreground: oklch(0.956 0.004 252);
--sidebar-primary: oklch(0.956 0.004 252);
--sidebar-primary-foreground: oklch(0.108 0.017 252);
--sidebar: oklch(0.113 0.011 251.8);
--sidebar-foreground: oklch(0.962 0.011 252.1);
--sidebar-primary: oklch(0.962 0.011 252.1);
--sidebar-primary-foreground: oklch(0.179 0.02 252.2);
--sidebar-accent: oklch(0.832 0.085 281.4 / 12%);
--sidebar-accent-foreground: oklch(0.956 0.004 252);
--sidebar-border: oklch(0.956 0.004 252 / 12%);
--sidebar-ring: oklch(0.713 0.151 277.7);
--sidebar-accent-foreground: oklch(0.962 0.011 252.1);
--sidebar-border: oklch(0.962 0.011 252.1 / 12%);
--sidebar-ring: oklch(0.607 0.09 271.7);
}
96 changes: 48 additions & 48 deletions app/src/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,40 @@
* light and dark value and what it means live. Change a color there, never here.
*/
/* tokens/src/scheme.ts, light: all (bun run tokens:generate) */
--background: oklch(0.983 0.003 247.9);
--foreground: oklch(0.108 0.042 264.7);
--background: oklch(0.985 0 0);
--foreground: oklch(0.179 0.02 252.2);
--card: oklch(1 0 0);
--card-foreground: oklch(0.108 0.042 264.7);
--card-foreground: oklch(0.179 0.02 252.2);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.108 0.042 264.7);
--primary: oklch(0.108 0.042 264.7);
--popover-foreground: oklch(0.179 0.02 252.2);
--primary: oklch(0.179 0.02 252.2);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.956 0.009 250.2);
--secondary-foreground: oklch(0.108 0.042 264.7);
--muted: oklch(0.956 0.009 250.2);
--muted-foreground: oklch(0.506 0.045 257.4);
--accent: oklch(0.956 0.009 250.2);
--accent-foreground: oklch(0.108 0.042 264.7);
--secondary: oklch(0.962 0.011 252.1);
--secondary-foreground: oklch(0.179 0.02 252.2);
--muted: oklch(0.936 0.009 264.5);
--muted-foreground: oklch(0.46 0.014 248.1);
--accent: oklch(0.962 0.011 252.1);
--accent-foreground: oklch(0.179 0.02 252.2);
--destructive: oklch(0.46 0.173 22.6);
--success: oklch(0.514 0.1 167.2);
--success: oklch(0.461 0.0903 168.6);
--warning: oklch(0.521 0.143 47.7);
--border: oklch(0.108 0.042 264.7 / 10%);
--input: oklch(0.108 0.042 264.7 / 10%);
--ring: oklch(0.638 0.167 276.1);
--border: oklch(0.179 0.02 252.2 / 10%);
--input: oklch(0.179 0.02 252.2 / 10%);
--ring: oklch(0.607 0.09 271.7);
--chart-1: oklch(0.46 0.2 264);
--chart-2: oklch(0.66 0.146 66);
--chart-3: oklch(0.62 0.122 170);
--chart-4: oklch(0.5 0.2 18);
--chart-5: oklch(0.6 0.2 286);
--empty-pattern-color: oklch(0.746 0.117 279.9);
--sidebar: oklch(0.948 0.01 251.8);
--sidebar-foreground: oklch(0.108 0.042 264.7);
--sidebar-primary: oklch(0.108 0.042 264.7);
--sidebar: oklch(0.936 0.009 264.5);
--sidebar-foreground: oklch(0.179 0.02 252.2);
--sidebar-primary: oklch(0.179 0.02 252.2);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.832 0.085 281.4 / 30%);
--sidebar-accent-foreground: oklch(0.108 0.042 264.7);
--sidebar-border: oklch(0.108 0.042 264.7 / 10%);
--sidebar-ring: oklch(0.638 0.167 276.1);
--sidebar-accent-foreground: oklch(0.179 0.02 252.2);
--sidebar-border: oklch(0.179 0.02 252.2 / 10%);
--sidebar-ring: oklch(0.607 0.09 271.7);
/* end of tokens/src/scheme.ts */
/*
* Every corner comes from this (docs/app-guidelines.md, "The look"), the design's radius base:
Expand All @@ -67,40 +67,40 @@
.dark {
color-scheme: dark;
/* tokens/src/scheme.ts, dark: all (bun run tokens:generate) */
--background: oklch(0.182 0.017 252);
--foreground: oklch(0.956 0.004 252);
--card: oklch(0.212 0.017 252);
--card-foreground: oklch(0.956 0.004 252);
--popover: oklch(0.212 0.017 252);
--popover-foreground: oklch(0.956 0.004 252);
--primary: oklch(0.956 0.004 252);
--primary-foreground: oklch(0.108 0.017 252);
--secondary: oklch(0.253 0.017 252);
--secondary-foreground: oklch(0.956 0.004 252);
--muted: oklch(0.253 0.017 252);
--muted-foreground: oklch(0.69 0.016 252);
--accent: oklch(0.28 0.016 252);
--accent-foreground: oklch(0.956 0.004 252);
--destructive: oklch(0.792 0.121 16.4);
--success: oklch(0.832 0.13 170.1);
--warning: oklch(0.828 0.189 84.4);
--border: oklch(0.956 0.004 252 / 12%);
--input: oklch(0.956 0.004 252 / 12%);
--ring: oklch(0.713 0.151 277.7);
--background: oklch(0.179 0.02 252.2);
--foreground: oklch(0.962 0.011 252.1);
--card: oklch(0.206 0.019 252.1);
--card-foreground: oklch(0.962 0.011 252.1);
--popover: oklch(0.206 0.019 252.1);
--popover-foreground: oklch(0.962 0.011 252.1);
--primary: oklch(0.962 0.011 252.1);
--primary-foreground: oklch(0.179 0.02 252.2);
--secondary: oklch(0.253 0.016 252.4);
--secondary-foreground: oklch(0.962 0.011 252.1);
--muted: oklch(0.33 0.015 252.3);
--muted-foreground: oklch(0.719 0.012 252.1);
--accent: oklch(0.33 0.015 252.3);
--accent-foreground: oklch(0.962 0.011 252.1);
--destructive: oklch(0.829 0.092 13.4);
--success: oklch(0.782 0.1307 173);
--warning: oklch(0.783 0.156 60.7);
--border: oklch(0.962 0.011 252.1 / 12%);
--input: oklch(0.962 0.011 252.1 / 12%);
--ring: oklch(0.607 0.09 271.7);
--chart-1: oklch(0.58 0.2 264);
--chart-2: oklch(0.76 0.168 66);
--chart-3: oklch(0.86 0.17 170);
--chart-4: oklch(0.6 0.2 18);
--chart-5: oklch(0.76 0.128 286);
--empty-pattern-color: oklch(0.832 0.085 281.4);
--sidebar: oklch(0.156 0.017 252);
--sidebar-foreground: oklch(0.956 0.004 252);
--sidebar-primary: oklch(0.956 0.004 252);
--sidebar-primary-foreground: oklch(0.108 0.017 252);
--sidebar: oklch(0.113 0.011 251.8);
--sidebar-foreground: oklch(0.962 0.011 252.1);
--sidebar-primary: oklch(0.962 0.011 252.1);
--sidebar-primary-foreground: oklch(0.179 0.02 252.2);
--sidebar-accent: oklch(0.832 0.085 281.4 / 12%);
--sidebar-accent-foreground: oklch(0.956 0.004 252);
--sidebar-border: oklch(0.956 0.004 252 / 12%);
--sidebar-ring: oklch(0.713 0.151 277.7);
--sidebar-accent-foreground: oklch(0.962 0.011 252.1);
--sidebar-border: oklch(0.962 0.011 252.1 / 12%);
--sidebar-ring: oklch(0.607 0.09 271.7);
/* end of tokens/src/scheme.ts */
--empty-pattern-opacity: 0.15;
}
Expand Down
4 changes: 2 additions & 2 deletions app/tests/skins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ describe("skin stylesheets", () => {

/*
* Each state a skin draws is a fill of its own, in light and in dark, and a stronger one than the
* state before it. In light the scheme's secondary, muted and accent are one color, so a skin that
* pointed its hover at one and its selected tab at another drew them alike; in dark the accent is
* state before it. In light the scheme's secondary and accent are one color, so a skin that
* pointed its hover at one and its selected tab at the other drew them alike; in dark the accent is
* brighter than the sidebar's tint, so a hovered row outshone the open one. Each step, from the
* surface under it, is at least 1.04:1 from the one before (the scheme's own page and a card on it
* are about 1.05:1 apart), and further from that surface.
Expand Down
22 changes: 11 additions & 11 deletions desktop/src-tauri/src/connected/sign_in.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1363,12 +1363,12 @@ this page fetches none.
const END_PAGE_STYLE: &str = r#"
:root {
/* tokens/src/scheme.ts, light: background foreground card muted-foreground border sidebar (bun run tokens:generate) */
--background: oklch(0.983 0.003 247.9);
--foreground: oklch(0.108 0.042 264.7);
--background: oklch(0.985 0 0);
--foreground: oklch(0.179 0.02 252.2);
--card: oklch(1 0 0);
--muted-foreground: oklch(0.506 0.045 257.4);
--border: oklch(0.108 0.042 264.7 / 10%);
--sidebar: oklch(0.948 0.01 251.8);
--muted-foreground: oklch(0.46 0.014 248.1);
--border: oklch(0.179 0.02 252.2 / 10%);
--sidebar: oklch(0.936 0.009 264.5);
/* end of tokens/src/scheme.ts */
--shadow: 0 1px 2px oklch(0.108 0.042 264.7 / 4%), 0 24px 64px -16px oklch(0.45 0.12 276 / 22%);
--glow: oklch(0.82 0.08 285 / 55%);
Expand All @@ -1378,12 +1378,12 @@ const END_PAGE_STYLE: &str = r#"
@media (prefers-color-scheme: dark) {
:root {
/* tokens/src/scheme.ts, dark: background foreground card muted-foreground border sidebar (bun run tokens:generate) */
--background: oklch(0.182 0.017 252);
--foreground: oklch(0.956 0.004 252);
--card: oklch(0.212 0.017 252);
--muted-foreground: oklch(0.69 0.016 252);
--border: oklch(0.956 0.004 252 / 12%);
--sidebar: oklch(0.156 0.017 252);
--background: oklch(0.179 0.02 252.2);
--foreground: oklch(0.962 0.011 252.1);
--card: oklch(0.206 0.019 252.1);
--muted-foreground: oklch(0.719 0.012 252.1);
--border: oklch(0.962 0.011 252.1 / 12%);
--sidebar: oklch(0.113 0.011 251.8);
/* end of tokens/src/scheme.ts */
--shadow: 0 1px 2px oklch(0 0 0 / 30%), 0 24px 64px -16px oklch(0 0 0 / 60%);
--glow: oklch(0.45 0.12 280 / 28%);
Expand Down
18 changes: 9 additions & 9 deletions desktop/src-tauri/src/first_paint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,22 @@ pub struct Palette {
/// Light: the scheme's sidebar, card, border, foreground and muted-foreground, in sRGB.
pub const LIGHT: Palette = Palette {
// tokens/src/scheme.ts, light: ground=sidebar card=card border=border ink=foreground soft=muted-foreground (bun run tokens:generate)
ground: (0xe9, 0xee, 0xf4),
ground: (0xe7, 0xea, 0xf0),
card: (0xff, 0xff, 0xff),
border: (0xe6, 0xe6, 0xe7),
ink: (0x01, 0x03, 0x13),
soft: (0x55, 0x66, 0x7f),
border: (0xe7, 0xe7, 0xe8),
ink: (0x0b, 0x12, 0x1a),
soft: (0x52, 0x59, 0x60),
// end of tokens/src/scheme.ts
};

/// Dark: the same five, in sRGB.
pub const DARK: Palette = Palette {
// tokens/src/scheme.ts, dark: ground=sidebar card=card border=border ink=foreground soft=muted-foreground (bun run tokens:generate)
ground: (0x07, 0x0d, 0x14),
card: (0x13, 0x19, 0x20),
border: (0x2d, 0x33, 0x39),
ink: (0xee, 0xf1, 0xf3),
soft: (0x94, 0x9c, 0xa5),
ground: (0x03, 0x05, 0x08),
card: (0x11, 0x18, 0x20),
border: (0x2b, 0x32, 0x3a),
ink: (0xed, 0xf3, 0xfa),
soft: (0x9f, 0xa5, 0xac),
// end of tokens/src/scheme.ts
};

Expand Down
Loading