From 21b1950857c5ee333fa11defc8cc85d0d300244b Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Thu, 29 Jan 2026 13:57:23 -0600 Subject: [PATCH] feat: add Mira theme and reorder list cx --- src/app.css | 51 ++++++++++++++++++++ src/lib/components/views/SettingsView.svelte | 21 ++++---- src/lib/i18n/locales/en.json | 5 +- src/lib/i18n/locales/es.json | 5 +- 4 files changed, 69 insertions(+), 13 deletions(-) diff --git a/src/app.css b/src/app.css index 27c454963..c02157ff5 100644 --- a/src/app.css +++ b/src/app.css @@ -490,6 +490,57 @@ --alpha-95: rgba(255, 255, 255, 0.95); } +/* Mira Theme */ +[data-theme="mira"] { + --bg-primary: #101820; + --bg-secondary: #141a28; + --bg-tertiary: #1d2635; + --bg-hover: #2a3448; + + --text-primary: #e5e5e5; + --text-secondary: #b0b3c6; + --text-muted: #8a8da0; + --text-disabled: #5c5e72; + + --accent-primary: #d94685; + --accent-hover: #ff007f; + --accent-active: #ffd700; + --btn-primary-text: #101820; + + --danger: #c53032; + --danger-bg: rgba(197, 48, 50, 0.1); + --danger-border: rgba(197, 48, 50, 0.3); + --danger-hover: rgba(197, 48, 50, 0.2); + --warning: #ffd700; + --warning-bg: rgba(255, 215, 0, 0.1); + --warning-border: rgba(255, 215, 0, 0.3); + --warning-hover: rgba(255, 215, 0, 0.2); + + --border-subtle: #202c3d; + --border-strong: #34405a; + + --alpha-4: rgba(255, 255, 255, 0.04); + --alpha-5: rgba(255, 255, 255, 0.05); + --alpha-6: rgba(255, 255, 255, 0.06); + --alpha-8: rgba(255, 255, 255, 0.08); + --alpha-10: rgba(255, 255, 255, 0.1); + --alpha-15: rgba(255, 255, 255, 0.15); + --alpha-18: rgba(255, 255, 255, 0.18); + --alpha-20: rgba(255, 255, 255, 0.2); + --alpha-25: rgba(255, 255, 255, 0.25); + --alpha-30: rgba(255, 255, 255, 0.3); + --alpha-35: rgba(255, 255, 255, 0.35); + --alpha-40: rgba(255, 255, 255, 0.4); + --alpha-45: rgba(255, 255, 255, 0.45); + --alpha-50: rgba(255, 255, 255, 0.5); + --alpha-60: rgba(255, 255, 255, 0.6); + --alpha-70: rgba(255, 255, 255, 0.7); + --alpha-80: rgba(255, 255, 255, 0.8); + --alpha-85: rgba(255, 255, 255, 0.85); + --alpha-90: rgba(255, 255, 255, 0.9); + --alpha-95: rgba(255, 255, 255, 0.95); +} + * { margin: 0; padding: 0; diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index 5d82758a2..0189e3b61 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -292,6 +292,9 @@ 'Dark': '', 'Light': 'light', 'OLED Black': 'oled', + 'Rumi': 'rumi', + 'Zoey': 'zoey', + 'Mira': 'mira', 'Warm': 'warm', 'Nord': 'nord', 'Dracula': 'dracula', @@ -302,15 +305,16 @@ 'Breeze Light': 'breeze-light', 'Adwaita Dark': 'adwaita-dark', 'Adwaita Light': 'adwaita-light', - 'Zoey': 'zoey', - 'Duotone Snow': 'duotone-snow', - 'Rumi': 'rumi' + 'Duotone Snow': 'duotone-snow' }; const themeReverseMap: Record = { '': 'Dark', 'light': 'Light', 'oled': 'OLED Black', + 'rumi': 'Rumi', + 'zoey': 'Zoey', + 'mira': 'Mira', 'warm': 'Warm', 'nord': 'Nord', 'dracula': 'Dracula', @@ -321,9 +325,7 @@ 'breeze-light': 'Breeze Light', 'adwaita-dark': 'Adwaita Dark', 'adwaita-light': 'Adwaita Light', - 'zoey': 'Zoey', - 'duotone-snow': 'Duotone Snow', - 'rumi': 'Rumi' + 'duotone-snow': 'Duotone Snow' }; // Language mapping: display name -> locale code @@ -2085,6 +2087,9 @@ 'Dark', 'Light', 'OLED Black', + 'Rumi', + 'Zoey', + 'Mira', 'Warm', 'Nord', 'Dracula', @@ -2095,9 +2100,7 @@ 'Breeze Light', 'Adwaita Dark', 'Adwaita Light', - 'Zoey', - 'Duotone Snow', - 'Rumi' + 'Duotone Snow' ]} onchange={handleThemeChange} /> diff --git a/src/lib/i18n/locales/en.json b/src/lib/i18n/locales/en.json index 44946cff7..7680f5b0c 100644 --- a/src/lib/i18n/locales/en.json +++ b/src/lib/i18n/locales/en.json @@ -376,9 +376,10 @@ "light": "Light", "oled": "OLED Black", "warm": "Warm", + "rumi": "Rumi", "zoey": "Zoey", - "duotone-snow": "Duotone Snow", - "rumi": "Rumi" + "mira": "Mira", + "duotone-snow": "Duotone Snow" }, "accentColor": "Accent Color", "language": "Language", diff --git a/src/lib/i18n/locales/es.json b/src/lib/i18n/locales/es.json index bbace231f..06eedaa39 100644 --- a/src/lib/i18n/locales/es.json +++ b/src/lib/i18n/locales/es.json @@ -376,9 +376,10 @@ "light": "Claro", "oled": "OLED Negro", "warm": "Cálido", + "rumi": "Rumi", "zoey": "Zoey", - "duotone-snow": "Duotono Nieve", - "rumi": "Rumi" + "mira": "Mira", + "duotone-snow": "Duotono Nieve" }, "accentColor": "Color de Acento", "language": "Idioma",