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
39 changes: 39 additions & 0 deletions dashboard/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
:root {
--primary: #25d366;
--primary-hover: #1da851;
--primary-soft: rgba(37, 211, 102, 0.12);
--bg-light: #f8fafc;
--bg-white: #ffffff;
--bg-card: #ffffff;
Expand All @@ -19,6 +20,42 @@
--radius: 10px;
}

[data-palette='blue'] {
--primary: #2563eb;
--primary-hover: #1d4ed8;
--primary-soft: rgba(37, 99, 235, 0.12);
}

[data-palette='graphite'] {
--primary: #64748b;
--primary-hover: #475569;
--primary-soft: rgba(100, 116, 139, 0.14);
}

[data-palette='indigo'] {
--primary: #4f46e5;
--primary-hover: #4338ca;
--primary-soft: rgba(79, 70, 229, 0.12);
}

[data-palette='amber'] {
--primary: #d97706;
--primary-hover: #b45309;
--primary-soft: rgba(217, 119, 6, 0.13);
}

[data-palette='rose'] {
--primary: #e11d48;
--primary-hover: #be123c;
--primary-soft: rgba(225, 29, 72, 0.12);
}

[data-palette='teal'] {
--primary: #0d9488;
--primary-hover: #0f766e;
--primary-soft: rgba(13, 148, 136, 0.12);
}

/* Dark Mode */
[data-theme='dark'] {
/* Make native controls (select option popups, scrollbars, date pickers) follow the EXPLICIT
Expand All @@ -32,6 +69,7 @@
--text-secondary: #cbd5e1; /* Slate 300 */
--text-muted: #64748b; /* Slate 500 */
--border: #334155; /* Slate 700 */
--primary-soft: color-mix(in srgb, var(--primary) 18%, transparent);
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
Expand All @@ -56,6 +94,7 @@
--text-secondary: #cbd5e1;
--text-muted: #64748b;
--border: #334155;
--primary-soft: color-mix(in srgb, var(--primary) 18%, transparent);
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
Expand Down
191 changes: 187 additions & 4 deletions dashboard/src/components/Layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
}

.nav-item.active {
background: rgba(37, 211, 102, 0.1);
background: var(--primary-soft);
color: var(--primary);
}

Expand Down Expand Up @@ -184,6 +184,28 @@
overflow: hidden;
}

.appearance-button-cue {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
flex-shrink: 0;
border-radius: 999px;
background:
radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.8), transparent 24%),
var(--swatch-color);
color: white;
box-shadow:
0 0 0 2px var(--bg-white),
0 0 0 3px color-mix(in srgb, var(--swatch-color) 35%, transparent);
}

.appearance-button-cue svg {
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.sidebar.collapsed .theme-toggle-btn,
.sidebar.collapsed .logout-btn {
justify-content: center;
Expand All @@ -195,11 +217,13 @@
color: var(--text-primary);
}

.language-menu {
.language-menu,
.appearance-menu {
position: relative;
}

.language-menu .theme-toggle-btn {
.language-menu .theme-toggle-btn,
.appearance-menu .theme-toggle-btn {
width: 100%;
}

Expand Down Expand Up @@ -243,7 +267,7 @@
}

.language-menu-item.active {
background: rgba(37, 211, 102, 0.1);
background: var(--primary-soft);
color: var(--primary);
}

Expand All @@ -253,6 +277,160 @@
bottom: 0;
}

.appearance-menu-list {
position: absolute;
left: 0;
right: 0;
bottom: calc(100% + 0.35rem);
display: flex;
flex-direction: column;
gap: 0.85rem;
min-width: 254px;
padding: 0.85rem;
background: var(--bg-white);
border: 1px solid var(--border);
border-radius: 12px;
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
z-index: 120;
}

.appearance-menu-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.2rem 0.1rem 0.75rem;
border-bottom: 1px solid var(--border);
}

.appearance-menu-header strong {
display: block;
color: var(--text-primary);
font-size: 0.9375rem;
line-height: 1.2;
}

.appearance-menu-header span {
display: block;
margin-top: 0.15rem;
color: var(--text-muted);
font-size: 0.75rem;
}

.appearance-current-swatch {
width: 34px;
height: 34px;
flex-shrink: 0;
border-radius: 999px;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.65), transparent 42%),
var(--swatch-color);
box-shadow:
inset 0 0 0 1px rgba(255, 255, 255, 0.35),
0 0 0 4px color-mix(in srgb, var(--swatch-color) 13%, transparent);
}

.appearance-section {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.appearance-section-label {
font-size: 0.6875rem;
font-weight: 800;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.06em;
}

.appearance-mode-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.35rem;
}

.appearance-mode {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.25rem;
min-height: 58px;
padding: 0.45rem;
background: var(--bg-light);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text-secondary);
font-size: 0.75rem;
}

.appearance-mode:hover {
color: var(--text-primary);
border-color: var(--primary);
background: var(--bg-white);
}

.appearance-mode.active {
background: var(--primary-soft);
border-color: var(--primary);
color: var(--primary);
box-shadow: inset 0 -2px 0 var(--primary);
}

.palette-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.45rem;
}

.palette-swatch {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
padding: 0;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--bg-light);
}

.palette-swatch span {
width: 20px;
height: 20px;
border-radius: 999px;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 45%),
var(--swatch-color);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.palette-swatch:hover,
.palette-swatch.active {
border-color: var(--swatch-color);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--swatch-color) 18%, transparent);
}

.palette-swatch.active::after {
position: absolute;
right: -1px;
bottom: -1px;
width: 10px;
height: 10px;
border: 2px solid var(--bg-white);
border-radius: 999px;
background: var(--primary);
content: '';
}

.sidebar.collapsed .appearance-menu-list {
right: auto;
left: calc(100% + 0.5rem);
bottom: 0;
}

.logout-btn {
display: flex;
align-items: center;
Expand Down Expand Up @@ -419,6 +597,11 @@
left: auto;
}

[dir="rtl"] .sidebar.collapsed .appearance-menu-list {
right: calc(100% + 0.5rem);
left: auto;
}

[dir="rtl"] .main-content {
margin-left: 0;
margin-right: 260px;
Expand Down
Loading
Loading