From 9c635db4001007fa801ab1740a30072d0dcab96e Mon Sep 17 00:00:00 2001 From: webbeef Date: Sun, 12 Jul 2026 23:14:09 -0700 Subject: [PATCH] ui: minor simplification of theme tokens Signed-off-by: webbeef --- ui/system/desktop/tokens.css | 2 +- ui/system/mobile/pebble.css | 2 +- ui/system/web_view.css | 4 ++-- ui/themes/default/index.css | 2 ++ ui/themes/lcars/index.css | 2 ++ ui/themes/meadow/index.css | 2 ++ ui/themes/ocean/index.css | 2 ++ ui/themes/winamp/index.css | 2 ++ 8 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ui/system/desktop/tokens.css b/ui/system/desktop/tokens.css index b4af82c..66e1dc7 100644 --- a/ui/system/desktop/tokens.css +++ b/ui/system/desktop/tokens.css @@ -9,7 +9,7 @@ :root { --workshop-easing: var(--ease-out); - --workshop-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); + --workshop-bounce: var(--ease-bounce); --workshop-morph-duration: 0.42s; --workshop-shadow: 0 1px 2px oklch(35% 0.03 105 / 0.18), 0 6px 18px oklch(35% 0.03 105 / 0.18), diff --git a/ui/system/mobile/pebble.css b/ui/system/mobile/pebble.css index 006c66e..f0613f6 100644 --- a/ui/system/mobile/pebble.css +++ b/ui/system/mobile/pebble.css @@ -12,7 +12,7 @@ 0 1px 2px oklch(35% 0.03 105 / 0.18), 0 6px 18px oklch(35% 0.03 105 / 0.18), 0 18px 48px oklch(35% 0.03 105 / 0.12); --pebble-easing: var(--ease-out); - --pebble-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); + --pebble-bounce: var(--ease-bounce); --pebble-morph-duration: 0.42s; --pebble-side-margin: var(--spacing-xl); --pebble-drag-x: 0px; diff --git a/ui/system/web_view.css b/ui/system/web_view.css index 7ff7af4..0086a35 100644 --- a/ui/system/web_view.css +++ b/ui/system/web_view.css @@ -290,13 +290,13 @@ :host .load-progress.load-started { width: 30%; opacity: 1; - animation: load-travel 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; + animation: load-travel 1.8s var(--ease-in-out) infinite; } :host .load-progress.load-headparsed { width: 65%; opacity: 1; - animation: load-travel 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; + animation: load-travel 1.8s var(--ease-in-out) infinite; } :host .load-progress.load-complete { diff --git a/ui/themes/default/index.css b/ui/themes/default/index.css index f0b7cbc..45b064b 100644 --- a/ui/themes/default/index.css +++ b/ui/themes/default/index.css @@ -90,6 +90,8 @@ /* ===== Transitions ===== */ --ease-out: cubic-bezier(0.16, 1, 0.3, 1); + --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); + --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --transition-fast: 0.18s var(--ease-out); /* ===== Opacity ===== */ diff --git a/ui/themes/lcars/index.css b/ui/themes/lcars/index.css index a003b38..03d6a48 100644 --- a/ui/themes/lcars/index.css +++ b/ui/themes/lcars/index.css @@ -86,6 +86,8 @@ /* ===== Transitions ===== */ --ease-out: cubic-bezier(0.16, 1, 0.3, 1); + --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); + --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --transition-fast: 0.1s ease; /* ===== Opacity ===== */ diff --git a/ui/themes/meadow/index.css b/ui/themes/meadow/index.css index 51dbc19..c27ae61 100644 --- a/ui/themes/meadow/index.css +++ b/ui/themes/meadow/index.css @@ -88,6 +88,8 @@ /* ===== Transitions ===== */ --ease-out: cubic-bezier(0.16, 1, 0.3, 1); + --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); + --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --transition-fast: 0.2s ease-out; /* ===== Opacity ===== */ diff --git a/ui/themes/ocean/index.css b/ui/themes/ocean/index.css index 2b97436..9738c12 100644 --- a/ui/themes/ocean/index.css +++ b/ui/themes/ocean/index.css @@ -102,6 +102,8 @@ /* ===== Transitions ===== */ /* A slow tidal drift. */ --ease-out: cubic-bezier(0.16, 1, 0.3, 1); + --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); + --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --transition-fast: 0.22s var(--ease-out); /* ===== Opacity ===== */ diff --git a/ui/themes/winamp/index.css b/ui/themes/winamp/index.css index ae16fe3..6b0a293 100644 --- a/ui/themes/winamp/index.css +++ b/ui/themes/winamp/index.css @@ -86,6 +86,8 @@ /* ===== Transitions ===== */ --ease-out: cubic-bezier(0.16, 1, 0.3, 1); + --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); + --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --transition-fast: 0.1s ease; /* ===== Opacity ===== */ -- 2.51.2