feat(desktop): modernize dark theme and update flow

This commit is contained in:
NimBold
2026-06-13 18:08:42 +03:30
parent ba37d78cba
commit 19e366089e
15 changed files with 489 additions and 203 deletions
+259 -32
View File
@@ -1,4 +1,3 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import "tailwindcss";
:root {
@@ -17,6 +16,9 @@
--bg-modal: 0 0% 100%;
--bg-input: 0 0% 95%;
--border-modal: 0 0% 85%;
--surface-raised: 0 0% 100%;
--surface-overlay: 0 0% 100% / 0.96;
--shadow-color: 220 30% 10% / 0.14;
}
.theme-light {
@@ -34,23 +36,29 @@
--bg-modal: 0 0% 100%;
--bg-input: 0 0% 0% / 0.04;
--border-modal: 0 0% 85%;
--surface-raised: 0 0% 100%;
--surface-overlay: 0 0% 100% / 0.96;
--shadow-color: 220 30% 10% / 0.14;
}
.theme-dark {
color-scheme: dark;
--main-bg: 0 0% 6%; /* Deep, pure dark background */
--sidebar-bg: 0 0% 10% / 0.7;
--sidebar-glass: 0 0% 10% / 0.7;
--border-color: 0 0% 100% / 0.08; /* Subtle white opacity borders */
--item-hover: 0 0% 100% / 0.05;
--item-selected: 217 91% 60% / 0.15;
--accent-color: 217 91% 60%;
--text-primary: 0 0% 93%;
--text-secondary: 0 0% 60%;
--text-muted: 0 0% 40%;
--bg-modal: 0 0% 12%;
--bg-input: 0 0% 0% / 0.4;
--border-modal: 0 0% 100% / 0.1;
--main-bg: 228 16% 8%;
--sidebar-bg: 228 14% 10%;
--sidebar-glass: 228 14% 10%;
--border-color: 220 16% 32% / 0.34;
--item-hover: 220 20% 96% / 0.055;
--item-selected: 220 94% 68% / 0.14;
--accent-color: 220 94% 68%;
--text-primary: 220 18% 94%;
--text-secondary: 220 10% 70%;
--text-muted: 220 8% 52%;
--bg-modal: 228 13% 12%;
--bg-input: 228 17% 7%;
--border-modal: 220 15% 38% / 0.46;
--surface-raised: 228 13% 11%;
--surface-overlay: 228 13% 13% / 0.985;
--shadow-color: 230 40% 2% / 0.52;
}
.theme-dracula {
@@ -68,6 +76,9 @@
--bg-modal: 231 15% 16%;
--bg-input: 0 0% 0% / 0.4;
--border-modal: 0 0% 100% / 0.1;
--surface-raised: 231 15% 14%;
--surface-overlay: 231 15% 16% / 0.96;
--shadow-color: 231 30% 4% / 0.46;
}
.theme-nord {
@@ -85,6 +96,9 @@
--bg-modal: 220 16% 20%;
--bg-input: 0 0% 0% / 0.4;
--border-modal: 0 0% 100% / 0.1;
--surface-raised: 220 16% 18%;
--surface-overlay: 220 16% 20% / 0.96;
--shadow-color: 220 30% 5% / 0.42;
}
@theme {
@@ -102,12 +116,22 @@
--color-bg-modal: hsl(var(--bg-modal));
--color-bg-input: hsl(var(--bg-input));
--color-border-modal: hsl(var(--border-modal));
--color-surface-raised: hsl(var(--surface-raised));
--color-surface-overlay: hsl(var(--surface-overlay));
--color-bg-context-menu: hsl(var(--surface-overlay));
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
}
@layer base {
html,
body {
width: 100%;
height: 100%;
}
body {
margin: 0;
background-color: var(--color-main-bg);
color: var(--color-text-primary);
font-family: var(--font-sans);
@@ -121,10 +145,26 @@
}
* {
box-sizing: border-box;
user-select: none;
-webkit-user-select: none;
}
button,
input,
select,
textarea {
font: inherit;
}
button {
-webkit-tap-highlight-color: transparent;
}
button:disabled {
cursor: default;
}
input, textarea {
user-select: auto;
-webkit-user-select: auto;
@@ -132,7 +172,7 @@
}
:focus-visible {
outline: 2px solid hsl(var(--accent-color));
outline: 2px solid hsl(var(--accent-color) / 0.72);
outline-offset: 2px;
}
@@ -154,21 +194,193 @@
::-webkit-scrollbar-thumb:hover {
background: var(--color-text-muted);
}
::selection {
background: hsl(var(--accent-color) / 0.28);
color: var(--color-text-primary);
}
}
@layer components {
.app-surface {
background: hsl(var(--surface-raised));
border: 1px solid hsl(var(--border-color));
box-shadow:
0 1px 0 hsl(0 0% 100% / 0.025) inset,
0 8px 24px hsl(var(--shadow-color));
}
.app-card {
background: hsl(var(--bg-modal));
border: 1px solid hsl(var(--border-color));
border-radius: 12px;
box-shadow:
0 1px 0 hsl(0 0% 100% / 0.02) inset,
0 4px 14px hsl(var(--shadow-color));
}
.app-control {
min-height: 32px;
border: 1px solid hsl(var(--border-modal));
border-radius: 7px;
background: hsl(var(--bg-input));
color: hsl(var(--text-primary));
transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.app-control:hover:not(:disabled) {
border-color: hsl(var(--text-muted) / 0.55);
}
.app-control:focus {
border-color: hsl(var(--accent-color) / 0.7);
box-shadow: 0 0 0 3px hsl(var(--accent-color) / 0.12);
outline: none;
}
.app-button {
display: inline-flex;
min-height: 32px;
align-items: center;
justify-content: center;
gap: 7px;
border: 1px solid hsl(var(--border-modal));
border-radius: 7px;
background: hsl(var(--bg-input));
color: hsl(var(--text-primary));
font-weight: 600;
transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 100ms ease;
}
.app-button:hover:not(:disabled) {
border-color: hsl(var(--text-muted) / 0.48);
background: hsl(var(--item-hover));
}
.app-button:active:not(:disabled) {
transform: translateY(1px);
}
.app-button-primary {
border-color: hsl(var(--accent-color) / 0.72);
background: hsl(var(--accent-color));
color: white;
box-shadow: 0 5px 16px hsl(var(--accent-color) / 0.16);
}
.app-button-primary:hover:not(:disabled) {
border-color: hsl(var(--accent-color));
background: hsl(var(--accent-color) / 0.9);
}
.app-icon-button {
display: inline-flex;
width: 32px;
height: 32px;
align-items: center;
justify-content: center;
border-radius: 7px;
color: hsl(var(--text-secondary));
transition: background-color 140ms ease, color 140ms ease, transform 100ms ease;
}
.app-icon-button:hover:not(:disabled) {
background: hsl(var(--item-hover));
color: hsl(var(--text-primary));
}
.app-icon-button:active:not(:disabled) {
transform: scale(0.96);
}
.app-modal-backdrop {
background: hsl(0 0% 0% / 0.58);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
animation: fade-in 150ms ease-out;
}
.app-modal {
background: hsl(var(--surface-overlay));
border: 1px solid hsl(var(--border-modal));
border-radius: 14px;
box-shadow:
0 1px 0 hsl(0 0% 100% / 0.05) inset,
0 24px 80px hsl(var(--shadow-color));
animation: modal-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app-toast {
border: 1px solid hsl(var(--border-modal));
border-radius: 999px;
background: hsl(var(--surface-overlay));
color: hsl(var(--text-primary));
box-shadow: 0 12px 32px hsl(var(--shadow-color));
animation: toast-in 180ms ease-out;
}
.app-shell {
background: hsl(var(--main-bg));
}
.app-sidebar {
background: hsl(var(--sidebar-bg));
box-shadow: inset -1px 0 hsl(var(--border-color));
}
.app-workspace {
background: hsl(var(--main-bg));
}
.app-statusbar {
background: hsl(var(--surface-raised));
box-shadow: 0 1px 0 hsl(0 0% 100% / 0.02) inset;
}
.sidebar-nav-item[data-active="true"] {
box-shadow: inset 0 0 0 1px hsl(var(--accent-color) / 0.16);
}
.settings-view,
.settings-scroll {
background: hsl(var(--main-bg));
}
.settings-toolbar {
background: hsl(var(--sidebar-bg));
border-bottom: 1px solid hsl(var(--border-color));
}
.settings-tab-strip {
background: hsl(var(--bg-input));
border: 1px solid hsl(var(--border-color));
box-shadow: 0 1px 0 hsl(0 0% 100% / 0.02) inset;
}
.settings-tab-button[data-active="true"] {
background: hsl(var(--item-selected));
box-shadow: inset 0 0 0 1px hsl(var(--accent-color) / 0.14);
}
.settings-pane {
padding: 22px;
border: 1px solid hsl(var(--border-color));
border-radius: 12px;
background: hsl(var(--surface-raised));
box-shadow:
0 1px 0 hsl(0 0% 100% / 0.02) inset,
0 5px 18px hsl(var(--shadow-color));
}
}
/* Glassmorphism Classes */
.glass-panel {
background: var(--color-sidebar-glass);
backdrop-filter: blur(28px);
-webkit-backdrop-filter: blur(28px);
}
.glass-card {
background: var(--color-sidebar-glass);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
background: hsl(var(--bg-modal));
border: 1px solid var(--color-border-color);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
box-shadow: 0 6px 20px hsl(var(--shadow-color));
}
/* Base App Background Gradient - Removed for Modern Minimalist Look */
@@ -187,20 +399,35 @@
}
}
/* Micro Animations */
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-3px); }
100% { transform: translateY(0px); }
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
.animate-float {
animation: float 4s ease-in-out infinite;
@keyframes modal-in {
from { opacity: 0; transform: translateY(6px) scale(0.985); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-in {
from { opacity: 0; transform: translate(-50%, 6px); }
to { opacity: 1; transform: translate(-50%, 0); }
}
.hover-lift {
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
transition: transform 120ms ease, background-color 140ms ease, border-color 140ms ease;
}
.hover-lift:hover {
transform: translateY(-1px) scale(1.01);
transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}