feat(ui): light mode and new theming system (#1468)

This commit is contained in:
Alex
2026-05-26 01:07:33 -04:00
committed by GitHub
parent 3211d7818a
commit 22ff6d8e90
131 changed files with 2816 additions and 3391 deletions
+1
View File
@@ -80,6 +80,7 @@
"stylelint": "^17.11.1", "stylelint": "^17.11.1",
"stylelint-config-standard-scss": "^17.0.0", "stylelint-config-standard-scss": "^17.0.0",
"tailwindcss": "^4.3.0", "tailwindcss": "^4.3.0",
"tailwindcss-primeui": "0.6.1",
"typescript": "~5.9.3", "typescript": "~5.9.3",
"typescript-eslint": "^8.59.4", "typescript-eslint": "^8.59.4",
"vitest": "^4.1.6", "vitest": "^4.1.6",
+8 -8
View File
@@ -8,12 +8,12 @@
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#app-loading-logo-gradient-secondary)"/> <path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#app-loading-logo-gradient-secondary)"/>
<defs> <defs>
<linearGradient id="app-loading-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="app-loading-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
<linearGradient id="app-loading-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="app-loading-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
</defs> </defs>
</svg> </svg>
@@ -37,12 +37,12 @@
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#app-offline-logo-gradient-secondary)"/> <path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#app-offline-logo-gradient-secondary)"/>
<defs> <defs>
<linearGradient id="app-offline-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="app-offline-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
<linearGradient id="app-offline-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="app-offline-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
</defs> </defs>
</svg> </svg>
@@ -23,7 +23,7 @@
<div class="section-body"> <div class="section-body">
<div class="auth-methods-list"> <div class="auth-methods-list">
<div class="auth-method-item is-active is-locked"> <div class="auth-method-item is-active is-locked border-l-(--p-content-border-color) [&.is-active]:border-l-emerald-500 dark:[&.is-active]:border-l-emerald-300">
<div class="auth-method-content"> <div class="auth-method-content">
<div class="auth-method-header"> <div class="auth-method-header">
<div class="auth-method-icon"> <div class="auth-method-icon">
@@ -31,7 +31,7 @@
</div> </div>
<div class="auth-method-info"> <div class="auth-method-info">
<span class="auth-method-label">{{ t('internal.label') }}</span> <span class="auth-method-label">{{ t('internal.label') }}</span>
<span class="auth-method-status active">{{ t('internal.status') }}</span> <span class="auth-method-status active text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300">{{ t('internal.status') }}</span>
</div> </div>
</div> </div>
<p class="auth-method-description"> <p class="auth-method-description">
@@ -45,7 +45,7 @@
</p-checkbox> </p-checkbox>
</div> </div>
<div class="auth-method-item" [class.is-active]="oidcEnabled"> <div class="auth-method-item border-l-(--p-content-border-color) [&.is-active]:border-l-emerald-500 dark:[&.is-active]:border-l-emerald-300" [class.is-active]="oidcEnabled">
<div class="auth-method-content"> <div class="auth-method-content">
<div class="auth-method-header"> <div class="auth-method-header">
<div class="auth-method-icon oidc"> <div class="auth-method-icon oidc">
@@ -55,7 +55,7 @@
<span class="auth-method-label"> <span class="auth-method-label">
{{ t('oidc.label') }} {{ t('oidc.label') }}
</span> </span>
<span class="auth-method-status" [class.active]="oidcEnabled"> <span class="auth-method-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="oidcEnabled">
{{ oidcEnabled ? t('oidc.enabled') : t('oidc.disabled') }} {{ oidcEnabled ? t('oidc.enabled') : t('oidc.disabled') }}
</span> </span>
</div> </div>
@@ -258,7 +258,7 @@
(click)="showTestDetails = !showTestDetails" (click)="showTestDetails = !showTestDetails"
(keydown.enter)="showTestDetails = !showTestDetails"> (keydown.enter)="showTestDetails = !showTestDetails">
@if (testConnectionResult.success) { @if (testConnectionResult.success) {
<i class="pi pi-check-circle" style="color: var(--p-green-500);"></i> <i class="pi pi-check-circle text-emerald-700 dark:text-emerald-300"></i>
<span>{{ t('testConnection.passed') }}</span> <span>{{ t('testConnection.passed') }}</span>
} @else { } @else {
<i class="pi pi-times-circle" style="color: var(--p-red-500);"></i> <i class="pi pi-times-circle" style="color: var(--p-red-500);"></i>
@@ -298,7 +298,7 @@
<div class="test-check-row"> <div class="test-check-row">
@switch (check.status) { @switch (check.status) {
@case ('PASS') { @case ('PASS') {
<i class="pi pi-check-circle" style="color: var(--p-green-500);"></i> <i class="pi pi-check-circle text-emerald-700 dark:text-emerald-300"></i>
} }
@case ('FAIL') { @case ('FAIL') {
<i class="pi pi-times-circle" style="color: var(--p-red-500);"></i> <i class="pi pi-times-circle" style="color: var(--p-red-500);"></i>
@@ -307,7 +307,7 @@
<i class="pi pi-exclamation-triangle" style="color: var(--p-yellow-500);"></i> <i class="pi pi-exclamation-triangle" style="color: var(--p-yellow-500);"></i>
} }
@case ('SKIP') { @case ('SKIP') {
<i class="pi pi-minus-circle" style="color: var(--p-surface-400);"></i> <i class="pi pi-minus-circle text-(--color-text-muted)"></i>
} }
} }
<span class="check-name">{{ check.name }}</span> <span class="check-name">{{ check.name }}</span>
@@ -368,7 +368,7 @@
<div class="toggle-content"> <div class="toggle-content">
<div class="toggle-info"> <div class="toggle-info">
<span class="toggle-label">{{ t('oidcOnly.label') }}</span> <span class="toggle-label">{{ t('oidcOnly.label') }}</span>
<span class="toggle-status" [class.active]="oidcForceOnlyMode"> <span class="toggle-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="oidcForceOnlyMode">
{{ oidcForceOnlyMode ? t('oidcOnly.enabled') : t('oidcOnly.disabled') }} {{ oidcForceOnlyMode ? t('oidcOnly.enabled') : t('oidcOnly.disabled') }}
</span> </span>
</div> </div>
@@ -410,7 +410,7 @@
<div class="toggle-content"> <div class="toggle-content">
<div class="toggle-info"> <div class="toggle-info">
<span class="toggle-label">{{ t('provisioning.autoLabel') }}</span> <span class="toggle-label">{{ t('provisioning.autoLabel') }}</span>
<span class="toggle-status" [class.active]="autoUserProvisioningEnabled"> <span class="toggle-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="autoUserProvisioningEnabled">
{{ autoUserProvisioningEnabled ? t('provisioning.autoEnabled') : t('provisioning.autoDisabled') }} {{ autoUserProvisioningEnabled ? t('provisioning.autoEnabled') : t('provisioning.autoDisabled') }}
</span> </span>
</div> </div>
@@ -429,7 +429,7 @@
<div class="toggle-content"> <div class="toggle-content">
<div class="toggle-info"> <div class="toggle-info">
<span class="toggle-label">{{ t('provisioning.linkLocalLabel') }}</span> <span class="toggle-label">{{ t('provisioning.linkLocalLabel') }}</span>
<span class="toggle-status" [class.active]="allowLocalAccountLinking"> <span class="toggle-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="allowLocalAccountLinking">
{{ allowLocalAccountLinking ? t('provisioning.autoEnabled') : t('provisioning.autoDisabled') }} {{ allowLocalAccountLinking ? t('provisioning.autoEnabled') : t('provisioning.autoDisabled') }}
</span> </span>
</div> </div>
@@ -68,19 +68,16 @@
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
gap: 1rem; gap: 1rem;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-content-border-color); border-left-width: 3px;
border-left-style: solid;
border-radius: 6px; border-radius: 6px;
padding: 1rem; padding: 1rem;
transition: border-color 0.2s ease, background 0.2s ease; transition: border-color 0.2s ease, background 0.2s ease;
&:hover:not(.is-locked) { &:hover:not(.is-locked) {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: var(--color-card);
}
&.is-active {
border-left-color: var(--p-green-500);
} }
&.is-locked { &.is-locked {
@@ -145,11 +142,6 @@
.auth-method-status { .auth-method-status {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
color: var(--p-text-muted-color);
&.active {
color: var(--p-green-400);
}
} }
.auth-method-description { .auth-method-description {
@@ -370,7 +362,7 @@
gap: 0.5rem; gap: 0.5rem;
padding: 0.625rem 0.875rem; padding: 0.625rem 0.875rem;
border-radius: 6px; border-radius: 6px;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
@@ -380,7 +372,7 @@
transition: background 0.15s ease; transition: background 0.15s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: var(--color-card);
} }
.toggle-chevron { .toggle-chevron {
@@ -403,7 +395,7 @@
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-top: none; border-top: none;
border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px;
background: color-mix(in srgb, var(--ground-background) 60%, var(--p-surface-800) 40%); background: var(--color-card);
} }
.test-check-row { .test-check-row {
@@ -438,7 +430,7 @@
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
gap: 1rem; gap: 1rem;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-primary-color); border-left: 3px solid var(--p-primary-color);
border-radius: 6px; border-radius: 6px;
@@ -471,11 +463,6 @@
.toggle-status { .toggle-status {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
color: var(--p-text-muted-color);
&.active {
color: var(--p-green-400);
}
} }
.toggle-description { .toggle-description {
@@ -562,7 +549,7 @@
flex: 1; flex: 1;
font-size: 0.8125rem; font-size: 0.8125rem;
padding: 0.375rem 0.625rem; padding: 0.375rem 0.625rem;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 4px; border-radius: 4px;
color: var(--p-text-color); color: var(--p-text-color);
@@ -27,7 +27,7 @@
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 800; font-weight: 800;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
background: linear-gradient(135deg, #fff, #e2e8f0, #3b82f6); background: linear-gradient(135deg, var(--color-text-strong), var(--color-text-secondary), var(--color-primary));
background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
letter-spacing: -0.02em; letter-spacing: -0.02em;
@@ -52,7 +52,7 @@
left: 12px; left: 12px;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
color: #94a3b8; color: var(--color-text-muted);
font-size: 0.9rem; font-size: 0.9rem;
z-index: 1; z-index: 1;
} }
@@ -86,15 +86,16 @@
width: 36px; width: 36px;
height: 36px; height: 36px;
border-radius: 8px; border-radius: 8px;
border: 1px solid color-mix(in srgb, var(--p-surface-500), transparent 50%); border: 1px solid color-mix(in srgb, var(--color-border), transparent 50%);
background: color-mix(in srgb, var(--p-surface-700), transparent 30%); background: color-mix(in srgb, var(--color-border), transparent 30%);
color: #94a3b8; color: var(--color-text-secondary);
cursor: pointer; cursor: pointer;
transition: all 0.2s ease; transition: all 0.2s ease;
&:hover { &:hover {
color: #e2e8f0; color: var(--color-text);
border-color: var(--p-primary-400); border-color: var(--color-primary);
background: var(--color-surface-hover);
} }
} }
@@ -118,7 +119,7 @@
.display-settings-label { .display-settings-label {
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 600; font-weight: 600;
color: #e2e8f0; color: var(--color-text);
} }
.filter-popover-content { .filter-popover-content {
@@ -137,7 +138,7 @@
.filter-label { .filter-label {
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 600; font-weight: 600;
color: #94a3b8; color: var(--color-text-secondary);
} }
.filter-reset-btn { .filter-reset-btn {
@@ -167,12 +168,12 @@
.empty-icon { .empty-icon {
font-size: 3rem; font-size: 3rem;
color: #64748b; color: var(--color-text-muted);
margin-bottom: 1rem; margin-bottom: 1rem;
} }
p { p {
color: #94a3b8; color: var(--color-text-muted);
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
} }
@@ -227,7 +228,7 @@
align-items: center; align-items: center;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
font-size: 0.9rem; font-size: 0.9rem;
color: #e4e4e7; color: var(--color-text);
i { i {
font-size: 1rem; font-size: 1rem;
@@ -238,7 +239,7 @@
.selected-count { .selected-count {
font-weight: 700; font-weight: 700;
font-size: 1rem; font-size: 1rem;
color: var(--primary-color); color: var(--color-primary);
} }
.selected-label { .selected-label {
@@ -4,7 +4,7 @@
} }
.author-card { .author-card {
background-color: var(--card-background); background-color: var(--color-card);
border-radius: 8px; border-radius: 8px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@@ -21,7 +21,7 @@
} }
&.selected { &.selected {
border: 2px solid var(--primary-color); border: 2px solid var(--color-primary);
} }
} }
@@ -29,7 +29,7 @@
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: var(--card-background); background-color: var(--color-card);
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
@@ -55,8 +55,8 @@
justify-content: center; justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
color: #64748b; color: var(--color-text-secondary);
background: color-mix(in srgb, var(--p-surface-800), transparent 20%); background: color-mix(in srgb, var(--color-card), transparent 20%);
i { i {
font-size: 3rem; font-size: 3rem;
@@ -91,7 +91,7 @@
} }
.matched-icon { .matched-icon {
color: #22c55e; color: var(--color-green-500);
font-size: 0.85rem; font-size: 0.85rem;
flex-shrink: 0; flex-shrink: 0;
filter: drop-shadow(0 1px 2px rgb(0 0 0 / 50%)); filter: drop-shadow(0 1px 2px rgb(0 0 0 / 50%));
@@ -78,8 +78,8 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 12px; border-radius: 12px;
background: color-mix(in srgb, var(--p-surface-800), transparent 20%); background: color-mix(in srgb, var(--color-card), transparent 20%);
color: #64748b; color: var(--color-text-secondary);
i { i {
font-size: 4rem; font-size: 4rem;
@@ -146,7 +146,7 @@
.readonly-editor { .readonly-editor {
font-size: 0.9rem; font-size: 0.9rem;
color: #d1d5db; color: var(--color-text-secondary);
line-height: 1.6; line-height: 1.6;
white-space: pre-wrap; white-space: pre-wrap;
} }
@@ -163,7 +163,7 @@
font-size: 1.1rem; font-size: 1.1rem;
font-weight: 700; font-weight: 700;
margin-bottom: 1rem; margin-bottom: 1rem;
color: #e2e8f0; color: var(--color-text);
} }
.author-books-scroller { .author-books-scroller {
@@ -184,12 +184,12 @@
i { i {
font-size: 2.5rem; font-size: 2.5rem;
color: #64748b; color: var(--color-text-secondary);
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
p { p {
color: #94a3b8; color: var(--color-text-secondary);
font-size: 1rem; font-size: 1rem;
margin: 0; margin: 0;
} }
@@ -33,8 +33,8 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 12px; border-radius: 12px;
background: color-mix(in srgb, var(--p-surface-800), transparent 20%); background: color-mix(in srgb, var(--color-card), transparent 20%);
color: #64748b; color: var(--color-text-secondary);
i { i {
font-size: 4rem; font-size: 4rem;
@@ -69,7 +69,7 @@
display: block; display: block;
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 600; font-weight: 600;
color: var(--text-color-secondary); color: var(--color-text-secondary);
margin-bottom: 0.4rem; margin-bottom: 0.4rem;
} }
} }
@@ -19,7 +19,7 @@
label { label {
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 600; font-weight: 600;
color: #94a3b8; color: var(--color-text-secondary);
} }
&:first-child { &:first-child {
@@ -51,7 +51,7 @@
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.75rem;
padding: 3rem; padding: 3rem;
color: #94a3b8; color: var(--color-text-secondary);
} }
.empty-results, .empty-results,
@@ -64,26 +64,26 @@
i { i {
font-size: 2.5rem; font-size: 2.5rem;
color: #64748b; color: var(--color-text-secondary);
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
} }
p { p {
color: #94a3b8; color: var(--color-text-secondary);
font-size: 1rem; font-size: 1rem;
margin: 0; margin: 0;
} }
.hint { .hint {
font-size: 0.85rem; font-size: 0.85rem;
color: #64748b; color: var(--color-text-secondary);
margin-top: 0.25rem; margin-top: 0.25rem;
} }
} }
.results-header { .results-header {
font-size: 0.9rem; font-size: 0.9rem;
color: #94a3b8; color: var(--color-text-secondary);
margin-bottom: 1rem; margin-bottom: 1rem;
font-weight: 600; font-weight: 600;
} }
@@ -99,8 +99,8 @@
gap: 1rem; gap: 1rem;
padding: 1rem; padding: 1rem;
border-radius: 10px; border-radius: 10px;
border: 1px solid color-mix(in srgb, var(--p-surface-500), transparent 60%); border: 1px solid color-mix(in srgb, var(--color-border), transparent 60%);
background: color-mix(in srgb, var(--p-surface-900), transparent 30%); background: color-mix(in srgb, var(--color-card), transparent 30%);
transition: border-color 0.2s ease; transition: border-color 0.2s ease;
&:hover { &:hover {
@@ -114,7 +114,7 @@
height: 100px; height: 100px;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
background: color-mix(in srgb, var(--p-surface-800), transparent 20%); background: color-mix(in srgb, var(--color-card), transparent 20%);
img { img {
width: 100%; width: 100%;
@@ -129,7 +129,7 @@
justify-content: center; justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
color: #64748b; color: var(--color-text-secondary);
i { i {
font-size: 2rem; font-size: 2rem;
@@ -147,19 +147,19 @@
.result-name { .result-name {
font-size: 1rem; font-size: 1rem;
font-weight: 700; font-weight: 700;
color: #e2e8f0; color: var(--color-text);
margin: 0; margin: 0;
} }
.result-asin { .result-asin {
font-size: 0.8rem; font-size: 0.8rem;
color: #64748b; color: var(--color-text-secondary);
font-family: monospace; font-family: monospace;
} }
.result-description { .result-description {
font-size: 0.85rem; font-size: 0.85rem;
color: #94a3b8; color: var(--color-text-secondary);
margin: 0.25rem 0 0; margin: 0.25rem 0 0;
line-height: 1.4; line-height: 1.4;
display: -webkit-box; display: -webkit-box;
@@ -15,8 +15,8 @@
.search-section { .search-section {
flex-shrink: 0; flex-shrink: 0;
background: var(--surface-ground); background: var(--color-app);
border: 1px solid var(--surface-border); border: 1px solid var(--color-border);
border-radius: 12px; border-radius: 12px;
padding: 1.25rem 1.5rem; padding: 1.25rem 1.5rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
@@ -39,11 +39,11 @@
gap: 0.5rem; gap: 0.5rem;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
color: var(--text-color-secondary); color: var(--color-text-secondary);
i { i {
font-size: 0.875rem; font-size: 0.875rem;
color: var(--primary-color); color: var(--color-primary);
} }
} }
@@ -77,21 +77,21 @@
justify-content: center; justify-content: center;
padding: 3rem; padding: 3rem;
text-align: center; text-align: center;
background: var(--surface-ground); background: var(--color-app);
border: 1px dashed var(--surface-border); border: 1px dashed var(--color-border);
border-radius: 12px; border-radius: 12px;
h3 { h3 {
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
} }
p { p {
margin: 0; margin: 0;
font-size: 0.9rem; font-size: 0.9rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
max-width: 300px; max-width: 300px;
} }
} }
@@ -102,13 +102,13 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: linear-gradient(135deg, var(--primary-100), var(--primary-50)); background: linear-gradient(135deg, var(--color-primary-100), var(--color-primary-50));
border-radius: 50%; border-radius: 50%;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
i { i {
font-size: 2rem; font-size: 2rem;
color: var(--primary-color); color: var(--color-primary);
} }
&.warning { &.warning {
@@ -132,7 +132,7 @@
gap: 0.75rem; gap: 0.75rem;
margin-bottom: 1rem; margin-bottom: 1rem;
padding-bottom: 0.75rem; padding-bottom: 0.75rem;
border-bottom: 1px solid var(--surface-border); border-bottom: 1px solid var(--color-border);
.results-count { .results-count {
display: flex; display: flex;
@@ -140,10 +140,10 @@
gap: 0.5rem; gap: 0.5rem;
font-size: 0.95rem; font-size: 0.95rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
i { i {
color: var(--primary-color); color: var(--color-primary);
} }
} }
} }
@@ -162,11 +162,11 @@
height: 200px; height: 200px;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
background: var(--surface-ground); background: var(--color-app);
border: 2px solid transparent; border: 2px solid transparent;
&:hover { &:hover {
border-color: var(--primary-color); border-color: var(--color-primary);
.photo-overlay { .photo-overlay {
opacity: 1; opacity: 1;
@@ -45,7 +45,7 @@
padding: 0.35rem; padding: 0.35rem;
margin-right: 2px; margin-right: 2px;
flex-shrink: 0; flex-shrink: 0;
background-color: var(--card-background); background-color: var(--color-card);
border-bottom: 1px solid var(--p-content-border-color); border-bottom: 1px solid var(--p-content-border-color);
@media (width >= 768px) { @media (width >= 768px) {
@@ -90,7 +90,7 @@
.series-collapsed-info { .series-collapsed-info {
font-size: 0.875rem; font-size: 0.875rem;
color: #6b7280; color: var(--color-text-secondary);
margin: 0; margin: 0;
@media (width <= 767px) { @media (width <= 767px) {
@@ -241,7 +241,7 @@
border-radius: 10px 10px 0 0; border-radius: 10px 10px 0 0;
border: 1px solid rgb(255 255 255 / 50%); border: 1px solid rgb(255 255 255 / 50%);
border-width: 1px 1px 0; border-width: 1px 1px 0;
background-color: var(--card-background); background-color: var(--color-card);
transition: transform 0.15s ease-out, opacity 0.15s ease-out; transition: transform 0.15s ease-out, opacity 0.15s ease-out;
transform: translateY(0); transform: translateY(0);
opacity: 1; opacity: 1;
@@ -311,7 +311,7 @@
align-items: center; align-items: center;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
font-size: 0.9rem; font-size: 0.9rem;
color: #e4e4e7; color: var(--color-text);
i { i {
font-size: 1rem; font-size: 1rem;
@@ -331,7 +331,7 @@
.selected-count { .selected-count {
font-weight: 700; font-weight: 700;
font-size: 1rem; font-size: 1rem;
color: var(--primary-color); color: var(--color-primary);
} }
.selected-label { .selected-label {
@@ -393,8 +393,8 @@
.no-books-text { .no-books-text {
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
color: var(--text-color); color: var(--color-text);
background: var(--card-background); background: var(--color-card);
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
border-radius: 0.5rem; border-radius: 0.5rem;
} }
@@ -405,7 +405,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-shrink: 0; flex-shrink: 0;
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
width: 2.5rem; width: 2.5rem;
height: 2.5rem; height: 2.5rem;
transition: outline-color 0.2s, border-color 0.2s; transition: outline-color 0.2s, border-color 0.2s;
@@ -413,7 +413,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
outline-color: transparent; outline-color: transparent;
background-color: var(--card-background); background-color: var(--color-card);
cursor: pointer; cursor: pointer;
@media (width <= 767px) { @media (width <= 767px) {
@@ -422,11 +422,11 @@
} }
&:hover { &:hover {
border-color: var(--primary-color); border-color: var(--color-primary);
} }
i, span { i, span {
color: var(--primary-color); color: var(--color-primary);
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 100; font-weight: 100;
@@ -442,7 +442,7 @@
top: 50%; top: 50%;
left: 10px; left: 10px;
transform: translateY(-50%); transform: translateY(-50%);
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: 1rem; font-size: 1rem;
pointer-events: none; pointer-events: none;
} }
@@ -486,7 +486,7 @@
right: 0; right: 0;
bottom: 0; bottom: 0;
height: 100%; height: 100%;
background-color: var(--card-background); background-color: var(--color-card);
box-shadow: -2px 0 10px rgb(0 0 0 / 15%); box-shadow: -2px 0 10px rgb(0 0 0 / 15%);
transform: translateX(100%); transform: translateX(100%);
transition: transform 0.3s ease; transition: transform 0.3s ease;
@@ -1,5 +1,5 @@
.book-card { .book-card {
background-color: var(--card-background); background-color: var(--color-card);
border-radius: 8px; border-radius: 8px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
@@ -15,7 +15,7 @@
} }
&.selected { &.selected {
border: 2px solid var(--primary-color); border: 2px solid var(--color-primary);
} }
} }
@@ -23,7 +23,7 @@
position: relative; position: relative;
width: 100%; width: 100%;
aspect-ratio: 5/7; aspect-ratio: 5/7;
background-color: var(--card-background); background-color: var(--color-card);
border-radius: 8px 8px 0 0; border-radius: 8px 8px 0 0;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
@@ -33,12 +33,12 @@
.cover-container.audiobook-cover { .cover-container.audiobook-cover {
aspect-ratio: 5/7; aspect-ratio: 5/7;
background-color: var(--ground-background); background-color: var(--color-card);
} }
.cover-container.square-library-cover { .cover-container.square-library-cover {
aspect-ratio: 1/1; aspect-ratio: 1/1;
background-color: var(--ground-background); background-color: var(--color-card);
} }
.book-cover { .book-cover {
@@ -77,7 +77,7 @@
.book-title { .book-title {
flex-grow: 1; flex-grow: 1;
font-size: 0.9rem; font-size: 0.9rem;
color: var(--text-color); color: var(--color-text);
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -197,12 +197,12 @@
transition: width 0.3s ease; transition: width 0.3s ease;
} }
&.progress-incomplete .progress-fill { background: var(--primary-color); } &.progress-incomplete .progress-fill { background: var(--color-primary); }
&.progress-complete .progress-fill { background: #22c55e; } &.progress-complete .progress-fill { background: var(--color-green-500); }
&.progress-incomplete-ko .progress-fill { background: #f97316; } &.progress-incomplete-ko .progress-fill { background: var(--color-orange-500); }
&.progress-complete-ko .progress-fill { background: #f59e0b; } &.progress-complete-ko .progress-fill { background: var(--color-amber-500); }
&.progress-incomplete-kobo .progress-fill { background: #a855f7; } &.progress-incomplete-kobo .progress-fill { background: var(--color-purple-500); }
&.progress-complete-kobo .progress-fill { background: #8b5cf6; } &.progress-complete-kobo .progress-fill { background: var(--color-violet-500); }
} }
.series-number-overlay { .series-number-overlay {
@@ -210,7 +210,7 @@
top: 8px; top: 8px;
left: 8px; left: 8px;
background-color: rgb(0 0 0 / 70%); background-color: rgb(0 0 0 / 70%);
color: white; color: var(--color-white);
font-size: 0.75rem; font-size: 0.75rem;
padding: 1px 3px; padding: 1px 3px;
border-radius: 3px; border-radius: 3px;
@@ -219,8 +219,8 @@
.series-items-count-overlay { .series-items-count-overlay {
position: absolute; position: absolute;
background-color: var(--primary-color); background-color: var(--color-primary);
color: var(--primary-text-color-dark); color: var(--color-primary-contrast);
font-size: 0.7rem; font-size: 0.7rem;
padding: 0 5px; padding: 0 5px;
border-radius: 6px; border-radius: 6px;
@@ -243,8 +243,8 @@
.book-type-pill-overlay { .book-type-pill-overlay {
position: absolute; position: absolute;
background: var(--primary-color, #6366f1); background: var(--color-primary);
color: var(--primary-text-color-dark, #fff); color: var(--color-primary-contrast);
font-size: 0.675rem; font-size: 0.675rem;
font-weight: 700; font-weight: 700;
padding: 1px 6px; padding: 1px 6px;
@@ -289,77 +289,77 @@
.book-type-epub { .book-type-epub {
background: var(--book-type-epub-color); background: var(--book-type-epub-color);
color: #fff; color: var(--color-white);
} }
.book-type-pdf { .book-type-pdf {
background: var(--book-type-pdf-color); background: var(--book-type-pdf-color);
color: #fff; color: var(--color-white);
} }
.book-type-cbx { .book-type-cbx {
background: var(--book-type-cbx-color); background: var(--book-type-cbx-color);
color: #fff; color: var(--color-white);
} }
.book-type-mobi { .book-type-mobi {
background: var(--book-type-mobi-color); background: var(--book-type-mobi-color);
color: #fff; color: var(--color-white);
} }
.book-type-azw3 { .book-type-azw3 {
background: var(--book-type-azw3-color); background: var(--book-type-azw3-color);
color: #fff; color: var(--color-white);
} }
.book-type-fb2 { .book-type-fb2 {
background: var(--book-type-fb2-color); background: var(--book-type-fb2-color);
color: #fff; color: var(--color-white);
} }
.book-type-audiobook { .book-type-audiobook {
background: var(--book-type-audiobook-color); background: var(--book-type-audiobook-color);
color: #fff; color: var(--color-white);
} }
.book-type-m4b { .book-type-m4b {
background: var(--book-type-m4b-color); background: var(--book-type-m4b-color);
color: #fff; color: var(--color-white);
} }
.book-type-mp3 { .book-type-mp3 {
background: var(--book-type-mp3-color); background: var(--book-type-mp3-color);
color: #fff; color: var(--color-white);
} }
.book-type-m4a { .book-type-m4a {
background: var(--book-type-m4a-color); background: var(--book-type-m4a-color);
color: #fff; color: var(--color-white);
} }
.book-type-opus { .book-type-opus {
background: var(--book-type-opus-color); background: var(--book-type-opus-color);
color: #fff; color: var(--color-white);
} }
.book-type-cbz { .book-type-cbz {
background: var(--book-type-cbz-color); background: var(--book-type-cbz-color);
color: #fff; color: var(--color-white);
} }
.book-type-cbr { .book-type-cbr {
background: var(--book-type-cbr-color); background: var(--book-type-cbr-color);
color: #fff; color: var(--color-white);
} }
.book-type-cb7 { .book-type-cb7 {
background: var(--book-type-cb7-color); background: var(--book-type-cb7-color);
color: #fff; color: var(--color-white);
} }
.book-type-phy { .book-type-phy {
background: var(--book-type-physical-color); background: var(--book-type-physical-color);
color: #fff; color: var(--color-white);
} }
.read-status-indicator { .read-status-indicator {
@@ -378,33 +378,33 @@
} }
.status-read { .status-read {
color: #22c55e; color: var(--color-green-500);
} }
.status-reading { .status-reading {
color: #3b82f6; color: var(--color-blue-500);
} }
.status-re-reading { .status-re-reading {
color: #06b6d4; color: var(--color-cyan-500);
} }
.status-partially-read { .status-partially-read {
color: #f59e0b; color: var(--color-amber-500);
} }
.status-paused { .status-paused {
color: #eab308; color: var(--color-yellow-500);
} }
.status-abandoned { .status-abandoned {
color: #ef4444; color: var(--color-red-500);
} }
.status-wont-read { .status-wont-read {
color: #ec4899; color: var(--color-pink-500);
} }
.status-unset { .status-unset {
color: var(--text-color-secondary); color: var(--color-text-secondary);
} }
@@ -1,14 +1,14 @@
:host ::ng-deep p-accordion { :host ::ng-deep p-accordion {
--p-accordion-header-padding: 0.6rem 1rem; --p-accordion-header-padding: 0.6rem 1rem;
--p-accordion-header-background: var(--card-background); --p-accordion-header-background: var(--color-card);
--p-accordion-header-active-background: var(--card-background); --p-accordion-header-active-background: var(--color-card);
--p-accordion-header-hover-background: var(--surface-hover); --p-accordion-header-hover-background: var(--color-surface-hover);
--p-accordion-header-active-hover-background: var(--surface-hover); --p-accordion-header-active-hover-background: var(--color-surface-hover);
--p-accordion-content-background: var(--card-background); --p-accordion-content-background: var(--color-card);
} }
:host ::ng-deep .p-accordionpanel { :host ::ng-deep .p-accordionpanel {
background: var(--card-background); background: var(--color-card);
} }
:host ::ng-deep .p-togglebutton { :host ::ng-deep .p-togglebutton {
@@ -24,7 +24,7 @@
height: 100%; height: 100%;
border-radius: 0; border-radius: 0;
overflow: hidden; overflow: hidden;
background: var(--card-background); background: var(--color-card);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border-left: 1px solid var(--p-content-border-color); border-left: 1px solid var(--p-content-border-color);
@@ -76,7 +76,7 @@
.active-filter-count { .active-filter-count {
font-size: 0.875rem; font-size: 0.875rem;
color: var(--primary-color); color: var(--color-primary);
flex-shrink: 0; flex-shrink: 0;
white-space: nowrap; white-space: nowrap;
min-width: 0; min-width: 0;
@@ -98,7 +98,7 @@
transition: color var(--transition-base); transition: color var(--transition-base);
&.active { &.active {
color: var(--primary-color); color: var(--color-primary);
} }
&.active-not { &.active-not {
@@ -121,15 +121,15 @@
.truncation-notice { .truncation-notice {
font-size: 0.75rem; font-size: 0.75rem;
color: #6b7280; color: var(--color-text-secondary);
text-align: center; text-align: center;
padding-top: 0.5rem; padding-top: 0.5rem;
border-top: 1px solid #e5e7eb; border-top: 1px solid var(--color-border);
} }
.footer-notice { .footer-notice {
font-size: 0.75rem; font-size: 0.75rem;
color: #6b7280; color: var(--color-text-secondary);
text-align: center; text-align: center;
padding-top: 1rem; padding-top: 1rem;
padding-left: 1rem; padding-left: 1rem;
@@ -169,7 +169,7 @@
.cell-link { .cell-link {
overflow: hidden; overflow: hidden;
color: var(--p-primary-color); color: var(--color-primary-text);
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@@ -14,19 +14,19 @@
--book-table-row-color: var(--p-datatable-row-color, var(--p-text-color)); --book-table-row-color: var(--p-datatable-row-color, var(--p-text-color));
--book-table-row-hover-background: var(--p-datatable-row-hover-background, var(--p-content-hover-background)); --book-table-row-hover-background: var(--p-datatable-row-hover-background, var(--p-content-hover-background));
--book-table-row-hover-color: var(--p-datatable-row-hover-color, var(--p-text-color)); --book-table-row-hover-color: var(--p-datatable-row-hover-color, var(--p-text-color));
--book-table-row-striped-background: var(--p-datatable-row-striped-background, var(--p-surface-950)); --book-table-row-striped-background: var(--p-datatable-row-striped-background, var(--color-app));
--book-table-cell-border-color: var(--p-datatable-body-cell-border-color, var(--book-table-border-color)); --book-table-cell-border-color: var(--p-datatable-body-cell-border-color, var(--book-table-border-color));
--book-table-cell-padding: var(--p-datatable-body-cell-padding, 0.75rem 1rem); --book-table-cell-padding: var(--p-datatable-body-cell-padding, 0.75rem 1rem);
--book-table-rating-gap: var(--p-rating-gap, 0.25rem); --book-table-rating-gap: var(--p-rating-gap, 0.25rem);
--book-table-lock-unlocked-color: var(--color-lock-unlocked, #16a34a); --book-table-lock-unlocked-color: var(--color-lock-unlocked, var(--color-green-600));
--book-table-lock-locked-color: var(--color-lock-locked, #dc2626); --book-table-lock-locked-color: var(--color-lock-locked, var(--color-red-600));
--book-table-status-read-color: #22c55e; --book-table-status-read-color: var(--color-green-500);
--book-table-status-reading-color: #3b82f6; --book-table-status-reading-color: var(--color-blue-500);
--book-table-status-re-reading-color: #06b6d4; --book-table-status-re-reading-color: var(--color-cyan-500);
--book-table-status-partially-read-color: #f59e0b; --book-table-status-partially-read-color: var(--color-amber-500);
--book-table-status-paused-color: #eab308; --book-table-status-paused-color: var(--color-yellow-500);
--book-table-status-abandoned-color: #ef4444; --book-table-status-abandoned-color: var(--color-red-500);
--book-table-status-wont-read-color: #ec4899; --book-table-status-wont-read-color: var(--color-pink-500);
} }
.book-table-scroll { .book-table-scroll {
@@ -17,8 +17,8 @@
overflow-y: auto; overflow-y: auto;
min-height: 0; min-height: 0;
padding: 1.5rem; padding: 1.5rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
border-radius: 0 0 10px 10px; border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0 0 0 / 8%); box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
@@ -46,10 +46,10 @@
} }
.book-info-card { .book-info-card {
background: var(--p-surface-100); background: var(--color-card);
border-radius: 8px; border-radius: 8px;
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
} }
.book-title { .book-title {
@@ -170,7 +170,7 @@
} }
} }
:host-context(.p-dark) { :host-context(.dark) {
.warning-message { .warning-message {
background: rgb(234 179 8 / 10%); background: rgb(234 179 8 / 10%);
border-color: rgb(234 179 8 / 30%); border-color: rgb(234 179 8 / 30%);
@@ -178,7 +178,7 @@
} }
.source-info .book-info-card { .source-info .book-info-card {
background: var(--p-surface-800); background: var(--color-card);
} }
} }
@@ -30,21 +30,21 @@
} }
.loading-text { .loading-text {
color: #9ca3af; color: var(--color-text-secondary);
} }
.empty-state { .empty-state {
position: relative; position: relative;
padding: 3rem !important; padding: 3rem !important;
text-align: center; text-align: center;
color: #9ca3af; color: var(--color-text-secondary);
.empty-state-title { .empty-state-title {
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
margin-top: 1rem; margin-top: 1rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
color: #e5e7eb; color: var(--color-text);
} }
.empty-state-subtitle { .empty-state-subtitle {
@@ -52,7 +52,7 @@
margin: 0.5rem auto 0; margin: 0.5rem auto 0;
line-height: 1.6; line-height: 1.6;
font-size: 0.875rem; font-size: 0.875rem;
color: #9ca3af; color: var(--color-text-secondary);
} }
.empty-state-decoration { .empty-state-decoration {
@@ -103,7 +103,7 @@
&:hover { &:hover {
transform: translateY(-2px); transform: translateY(-2px);
border-color: color-mix(in srgb, var(--primary-color), transparent 50%); border-color: color-mix(in srgb, var(--color-primary), transparent 50%);
.note-bottom-glow { .note-bottom-glow {
opacity: 1; opacity: 1;
@@ -117,8 +117,8 @@
.note-header { .note-header {
flex-shrink: 0; flex-shrink: 0;
background: linear-gradient(135deg, rgb(40 40 40 / 80%), rgb(30 30 30 / 80%)); background: var(--color-page);
border-bottom: 1px solid rgb(255 255 255 / 10%); border-bottom: 1px solid var(--color-border);
position: relative; position: relative;
.note-header-inner { .note-header-inner {
@@ -139,9 +139,7 @@
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
background: linear-gradient(135deg, #f8fafc, #e2e8f0); color: var(--color-text);
background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 500; font-weight: 500;
font-size: 1.125rem; font-size: 1.125rem;
margin: 0; margin: 0;
@@ -163,7 +161,7 @@
opacity: 0.8; opacity: 0.8;
i { i {
color: #3b82f6; color: var(--color-blue-500);
} }
} }
@@ -174,7 +172,7 @@
.note-meta-text { .note-meta-text {
font-size: 0.875rem; font-size: 0.875rem;
color: #9ca3af; color: var(--color-text-secondary);
} }
.note-actions { .note-actions {
@@ -212,7 +210,7 @@
left: 0; left: 0;
right: 0; right: 0;
height: 30px; height: 30px;
background: linear-gradient(transparent, rgb(20 20 20 / 90%)); background: linear-gradient(transparent, var(--color-card));
pointer-events: none; pointer-events: none;
} }
} }
@@ -226,7 +224,7 @@
background: linear-gradient( background: linear-gradient(
90deg, 90deg,
transparent, transparent,
color-mix(in srgb, var(--primary-color), transparent 60%), color-mix(in srgb, var(--color-primary), transparent 60%),
transparent transparent
); );
border-radius: 50%; border-radius: 50%;
@@ -246,7 +244,7 @@
padding-right: 8px; padding-right: 8px;
box-sizing: border-box; box-sizing: border-box;
line-height: 1.6; line-height: 1.6;
color: #e2e8f0; color: var(--color-text);
@media (width <= 768px) { @media (width <= 768px) {
max-height: 140px; max-height: 140px;
@@ -270,6 +268,7 @@
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
color: var(--color-text);
} }
.field-input { .field-input {
@@ -26,9 +26,9 @@
flex-direction: column; flex-direction: column;
gap: 8px; gap: 8px;
padding: 16px 8px; padding: 16px 8px;
background: rgb(0 0 0 / 10%); background: var(--color-surface-hover);
border-radius: 8px; border-radius: 8px;
border: 1px solid rgb(255 255 255 / 20%); border: 1px solid var(--color-border);
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
pointer-events: auto; pointer-events: auto;
position: relative; position: relative;
@@ -64,21 +64,21 @@
} }
.loading-text { .loading-text {
color: #9ca3af; color: var(--color-text-secondary);
} }
.empty-state { .empty-state {
position: relative; position: relative;
padding: 3rem !important; padding: 3rem !important;
text-align: center; text-align: center;
color: #9ca3af; color: var(--color-text-secondary);
.empty-state-title { .empty-state-title {
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
margin-top: 1rem; margin-top: 1rem;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
color: #e5e7eb; color: var(--color-text);
} }
.empty-state-subtitle { .empty-state-subtitle {
@@ -86,10 +86,10 @@
margin: 0.5rem auto 0; margin: 0.5rem auto 0;
line-height: 1.6; line-height: 1.6;
font-size: 0.875rem; font-size: 0.875rem;
color: #9ca3af; color: var(--color-text-secondary);
&--warning { &--warning {
color: #fbbf24; color: var(--color-amber-400);
} }
} }
@@ -142,7 +142,7 @@
&:hover { &:hover {
transform: translateY(-2px); transform: translateY(-2px);
border-color: color-mix(in srgb, var(--primary-color), transparent 50%); border-color: color-mix(in srgb, var(--color-primary), transparent 50%);
.action-btn-hover { .action-btn-hover {
opacity: 1; opacity: 1;
@@ -173,8 +173,8 @@
.review-header { .review-header {
flex-shrink: 0; flex-shrink: 0;
background: linear-gradient(135deg, rgb(40 40 40 / 80%), rgb(30 30 30 / 80%)); background: var(--color-card);
border-bottom: 1px solid rgb(255 255 255 / 10%); border-bottom: 1px solid var(--color-border);
position: relative; position: relative;
.review-header-inner { .review-header-inner {
@@ -201,7 +201,7 @@
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
background: linear-gradient(135deg, #f8fafc, #e2e8f0); background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary));
background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
font-weight: 500; font-weight: 500;
@@ -214,7 +214,7 @@
opacity: 0.8; opacity: 0.8;
i { i {
color: #3b82f6; color: var(--color-blue-500);
} }
} }
@@ -225,7 +225,7 @@
.review-meta-text { .review-meta-text {
font-size: 0.875rem; font-size: 0.875rem;
color: #9ca3af; color: var(--color-text-secondary);
} }
.review-actions { .review-actions {
@@ -254,7 +254,7 @@
} }
.lock-icon { .lock-icon {
color: #f59e0b; color: var(--color-amber-500);
font-size: 0.875rem; font-size: 0.875rem;
} }
@@ -275,7 +275,7 @@
.review-title-section { .review-title-section {
flex-shrink: 0; flex-shrink: 0;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
padding: 8px 16px 4px; padding: 8px 16px 4px;
} }
@@ -293,7 +293,7 @@
left: 0; left: 0;
right: 0; right: 0;
height: 30px; height: 30px;
background: linear-gradient(transparent, rgb(20 20 20 / 90%)); background: linear-gradient(transparent, var(--color-card));
pointer-events: none; pointer-events: none;
} }
} }
@@ -316,7 +316,7 @@
cursor: help; cursor: help;
font-weight: 500; font-weight: 500;
font-size: 1.25rem; font-size: 1.25rem;
color: #e5e7eb; color: var(--color-text);
line-height: 1.25; line-height: 1.25;
margin: 0; margin: 0;
@@ -334,7 +334,7 @@
overflow-wrap: break-word; overflow-wrap: break-word;
white-space: pre-wrap; white-space: pre-wrap;
box-sizing: border-box; box-sizing: border-box;
color: #d4d4d8; color: var(--color-text);
&--blurred { &--blurred {
filter: blur(4px); filter: blur(4px);
@@ -342,7 +342,7 @@
} }
.review-empty-text { .review-empty-text {
color: #a1a1aa; color: var(--color-text-secondary);
font-style: italic; font-style: italic;
font-size: 0.875rem; font-size: 0.875rem;
@@ -15,8 +15,8 @@
.dialog-content { .dialog-content {
flex: 1; flex: 1;
padding: 1.5rem; padding: 1.5rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
border-bottom: none; border-bottom: none;
box-shadow: 0 2px 6px rgb(0 0 0 / 8%); box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
@@ -41,7 +41,7 @@
.field-label { .field-label {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
color: #d1d5db; color: var(--color-text);
} }
:host ::ng-deep .full-width { :host ::ng-deep .full-width {
@@ -59,19 +59,19 @@
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.75rem;
padding: 0.75rem; padding: 0.75rem;
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
transition: all 0.15s ease; transition: all 0.15s ease;
&:hover { &:hover {
background: rgb(255 255 255 / 3%); background: var(--color-surface-hover);
border-color: var(--p-primary-400); border-color: var(--color-primary);
} }
&.selected { &.selected {
background: rgb(var(--p-primary-500-rgb), 10%); background: var(--control-primary-bg);
border-color: var(--p-primary-500); border-color: var(--control-primary-border);
} }
} }
@@ -84,15 +84,15 @@
.format-type { .format-type {
font-weight: 500; font-weight: 500;
color: #e5e7eb; color: var(--color-text);
} }
.primary-badge { .primary-badge {
font-size: 0.7rem; font-size: 0.7rem;
font-weight: 600; font-weight: 600;
padding: 0.125rem 0.375rem; padding: 0.125rem 0.375rem;
background: var(--p-primary-500); background: var(--color-primary);
color: white; color: var(--color-primary-contrast);
border-radius: 4px; border-radius: 4px;
text-transform: uppercase; text-transform: uppercase;
} }
@@ -100,7 +100,7 @@
.file-size { .file-size {
margin-left: auto; margin-left: auto;
font-size: 0.8rem; font-size: 0.8rem;
color: #9ca3af; color: var(--color-text-secondary);
} }
.warning-banner { .warning-banner {
@@ -108,10 +108,10 @@
align-items: flex-start; align-items: flex-start;
gap: 0.75rem; gap: 0.75rem;
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
background: rgb(234 179 8 / 10%); background: color-mix(in srgb, var(--color-warning) 10%, transparent);
border: 1px solid rgb(234 179 8 / 30%); border: 1px solid color-mix(in srgb, var(--color-warning) 30%, transparent);
border-radius: 6px; border-radius: 6px;
color: #fbbf24; color: var(--color-warning);
i { i {
font-size: 1rem; font-size: 1rem;
@@ -17,8 +17,8 @@
overflow-y: auto; overflow-y: auto;
min-height: 0; min-height: 0;
padding: 1.5rem; padding: 1.5rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
border-radius: 0 0 10px 10px; border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0 0 0 / 8%); box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
@@ -80,8 +80,8 @@
justify-content: space-between; justify-content: space-between;
gap: 1rem; gap: 1rem;
padding: 0.75rem 0; padding: 0.75rem 0;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
.action-bar-left { .action-bar-left {
display: flex; display: flex;
@@ -141,7 +141,7 @@
} }
.duplicate-group { .duplicate-group {
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
@@ -150,7 +150,7 @@
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.75rem;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
.group-label { .group-label {
font-weight: 600; font-weight: 600;
@@ -180,7 +180,7 @@
transition: background-color 0.1s; transition: background-color 0.1s;
&:not(:last-child) { &:not(:last-child) {
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
} }
&:hover { &:hover {
@@ -205,7 +205,7 @@
flex-shrink: 0; flex-shrink: 0;
border-radius: 3px; border-radius: 3px;
object-fit: cover; object-fit: cover;
background: var(--p-surface-200); background: var(--color-card);
} }
.book-info { .book-info {
@@ -312,13 +312,13 @@
} }
} }
:host-context(.p-dark) { :host-context(.dark) {
.book-row .book-cover { .book-row .book-cover {
background: var(--p-surface-700); background: var(--color-border);
} }
.book-row .book-formats .format-badge { .book-row .book-formats .format-badge {
background: rgb(var(--p-primary-500-rgb, 99, 102, 241), 15%); background: color-mix(in srgb, var(--color-primary) 15%, transparent);
color: var(--p-primary-400); color: var(--p-primary-400);
} }
} }
@@ -108,7 +108,7 @@
.author-link { .author-link {
cursor: pointer; cursor: pointer;
color: var(--primary-text-color); color: var(--color-primary-text);
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
@@ -144,73 +144,47 @@
} }
} }
$meta-card-colors: (
'publisher': 'blue',
'books': 'violet',
'years': 'amber',
'pages': 'emerald',
'format': 'rose',
'audio': 'cyan',
'language': 'pink',
'owned': 'teal',
);
@each $variant, $color in $meta-card-colors {
.meta-card-#{$variant} {
background: color-mix(in srgb, var(--color-#{$color}-500), transparent 82%);
border-color: color-mix(in srgb, var(--color-#{$color}-500), transparent 65%);
color: var(--color-#{$color}-700);
i {
color: var(--color-#{$color}-600);
}
}
}
.meta-card-publisher { .meta-card-publisher {
background: color-mix(in srgb, #3b82f6, transparent 85%);
border-color: color-mix(in srgb, #3b82f6, transparent 60%);
color: #93c5fd;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background: color-mix(in srgb, #3b82f6, transparent 75%); background: color-mix(in srgb, var(--color-blue-500), transparent 75%);
} }
i { color: #60a5fa; }
} }
.meta-card-books { :host-context(.dark) {
background: color-mix(in srgb, #8b5cf6, transparent 85%); @each $variant, $color in $meta-card-colors {
border-color: color-mix(in srgb, #8b5cf6, transparent 60%); .meta-card-#{$variant} {
color: #c4b5fd; color: var(--color-#{$color}-300);
i { color: #a78bfa; } i {
} color: var(--color-#{$color}-400);
}
.meta-card-years { }
background: color-mix(in srgb, #f59e0b, transparent 85%); }
border-color: color-mix(in srgb, #f59e0b, transparent 60%);
color: #fcd34d;
i { color: #fbbf24; }
}
.meta-card-pages {
background: color-mix(in srgb, #10b981, transparent 85%);
border-color: color-mix(in srgb, #10b981, transparent 60%);
color: #6ee7b7;
i { color: #34d399; }
}
.meta-card-format {
background: color-mix(in srgb, #f43f5e, transparent 85%);
border-color: color-mix(in srgb, #f43f5e, transparent 60%);
color: #fda4af;
i { color: #fb7185; }
}
.meta-card-audio {
background: color-mix(in srgb, #06b6d4, transparent 85%);
border-color: color-mix(in srgb, #06b6d4, transparent 60%);
color: #67e8f9;
i { color: #22d3ee; }
}
.meta-card-language {
background: color-mix(in srgb, #ec4899, transparent 85%);
border-color: color-mix(in srgb, #ec4899, transparent 60%);
color: #f9a8d4;
i { color: #f472b6; }
}
.meta-card-owned {
background: color-mix(in srgb, #14b8a6, transparent 85%);
border-color: color-mix(in srgb, #14b8a6, transparent 60%);
color: #5eead4;
i { color: #2dd4bf; }
} }
.publisher-link { .publisher-link {
@@ -235,27 +209,27 @@
gap: 0.3rem; gap: 0.3rem;
padding: 0.25rem 0.6rem; padding: 0.25rem 0.6rem;
border-radius: 0.375rem; border-radius: 0.375rem;
background: color-mix(in srgb, var(--p-surface-700), transparent 50%); background: color-mix(in srgb, var(--color-border), transparent 50%);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
font-size: 0.8rem; font-size: 0.8rem;
} }
.rating-icon { .rating-icon {
font-size: 0.75rem; font-size: 0.75rem;
&.personal { color: #facc15; } &.personal { color: var(--color-yellow-400); }
&.goodreads { color: #8b5cf6; } &.goodreads { color: var(--color-violet-500); }
&.amazon { color: #f97316; } &.amazon { color: var(--color-orange-500); }
&.hardcover { color: #06b6d4; } &.hardcover { color: var(--color-cyan-500); }
} }
.rating-value { .rating-value {
font-weight: 700; font-weight: 700;
color: var(--text-color); color: var(--color-text);
} }
.rating-label { .rating-label {
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: 0.7rem; font-size: 0.7rem;
} }
@@ -285,8 +259,8 @@
// ── Description (matches metadata-viewer) ── // ── Description (matches metadata-viewer) ──
.description-section { .description-section {
background: var(--card-background); background: var(--color-card);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 0.75rem; border-radius: 0.75rem;
overflow: hidden; overflow: hidden;
margin: 0 0.5rem; margin: 0 0.5rem;
@@ -306,16 +280,16 @@
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.625rem 0.875rem; padding: 0.625rem 0.875rem;
background: var(--ground-background); background: var(--color-card);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
border-radius: 0.75rem 0.75rem 0 0; border-radius: 0.75rem 0.75rem 0 0;
font-weight: 600; font-weight: 600;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color); color: var(--color-text);
i { i {
font-size: 0.95rem; font-size: 0.95rem;
color: var(--primary-color); color: var(--color-primary);
} }
} }
@@ -337,7 +311,7 @@
} }
.description-html { .description-html {
color: var(--text-color-secondary); color: var(--color-text-secondary);
line-height: 1.6; line-height: 1.6;
font-size: 0.9375rem; font-size: 0.9375rem;
overflow-wrap: break-word; overflow-wrap: break-word;
@@ -352,15 +326,15 @@
background: transparent; background: transparent;
border: none; border: none;
border-radius: 0.25rem; border-radius: 0.25rem;
color: var(--primary-color); color: var(--color-primary);
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 500; font-weight: 500;
cursor: pointer; cursor: pointer;
transition: background 0.2s ease, color 0.2s ease; transition: background 0.2s ease, color 0.2s ease;
&:hover { &:hover {
background: var(--surface-hover); background: var(--color-surface-hover);
color: var(--primary-hover-color); color: var(--color-primary-hover);
} }
i { i {
@@ -391,8 +365,8 @@
align-items: center; align-items: center;
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
border-radius: 0.5rem; border-radius: 0.5rem;
background: color-mix(in srgb, var(--p-surface-700), transparent 50%); background: var(--color-card);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
flex: 1; flex: 1;
min-width: 0; min-width: 0;
@@ -412,7 +386,7 @@
height: 0.625rem; height: 0.625rem;
border-radius: 0.375rem; border-radius: 0.375rem;
overflow: hidden; overflow: hidden;
background: color-mix(in srgb, var(--p-surface-600), transparent 50%); background: color-mix(in srgb, var(--color-border), transparent 50%);
gap: 2px; gap: 2px;
} }
@@ -428,7 +402,7 @@
gap: 0.4rem; gap: 0.4rem;
margin-top: 0.5rem; margin-top: 0.5rem;
font-size: 0.75rem; font-size: 0.75rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
align-items: center; align-items: center;
} }
@@ -440,7 +414,7 @@
border-radius: 9999px; border-radius: 9999px;
border: 1px solid; border: 1px solid;
font-size: 0.7rem; font-size: 0.7rem;
background: color-mix(in srgb, var(--p-surface-700), transparent 60%); background: color-mix(in srgb, var(--color-border), transparent 60%);
} }
.legend-dot { .legend-dot {
@@ -455,7 +429,7 @@
margin-left: auto; margin-left: auto;
font-weight: 600; font-weight: 600;
font-size: 0.75rem; font-size: 0.75rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
// ── Next Up card ── // ── Next Up card ──
@@ -466,15 +440,15 @@
gap: 0.75rem; gap: 0.75rem;
padding: 0.6rem 0.85rem; padding: 0.6rem 0.85rem;
border-radius: 0.5rem; border-radius: 0.5rem;
background: color-mix(in srgb, var(--p-surface-700), transparent 50%); background: var(--color-card);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
cursor: pointer; cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease; transition: background 0.15s ease, border-color 0.15s ease;
flex-shrink: 0; flex-shrink: 0;
&:hover { &:hover {
background: color-mix(in srgb, var(--p-surface-700), transparent 30%); background: var(--color-surface-hover);
border-color: var(--primary-text-color); border-color: var(--color-primary-text);
} }
@media (width >= 768px) { @media (width >= 768px) {
@@ -503,7 +477,7 @@
.next-up-label { .next-up-label {
font-size: 0.65rem; font-size: 0.65rem;
font-weight: 700; font-weight: 700;
color: var(--text-secondary-color); color: var(--color-text-secondary);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.04em; letter-spacing: 0.04em;
display: flex; display: flex;
@@ -512,14 +486,14 @@
i { i {
font-size: 0.6rem; font-size: 0.6rem;
color: var(--primary-text-color); color: var(--color-primary-text);
} }
} }
.next-up-title { .next-up-title {
font-weight: 600; font-weight: 600;
font-size: 0.85rem; font-size: 0.85rem;
color: var(--text-color); color: var(--color-text);
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -540,7 +514,7 @@
.next-up-percent { .next-up-percent {
font-size: 0.7rem; font-size: 0.7rem;
font-weight: 600; font-weight: 600;
color: var(--text-secondary-color); color: var(--color-text-secondary);
flex-shrink: 0; flex-shrink: 0;
} }
@@ -549,17 +523,17 @@
.section-title { .section-title {
font-size: 1.1rem; font-size: 1.1rem;
font-weight: 700; font-weight: 700;
color: var(--text-color-secondary); color: var(--color-text-secondary);
margin: 0.75rem 0 0; margin: 0.75rem 0 0;
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.75rem 0.5rem 0; padding: 0.75rem 0.5rem 0;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
i { i {
font-size: 1rem; font-size: 1rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
} }
@@ -608,14 +582,14 @@
padding: 0.65rem 0.85rem; padding: 0.65rem 0.85rem;
cursor: pointer; cursor: pointer;
border-radius: 0.5rem; border-radius: 0.5rem;
background: color-mix(in srgb, var(--p-surface-700), transparent 65%); background: var(--color-card);
border: 1px solid color-mix(in srgb, var(--border-color), transparent 60%); border: 1px solid var(--color-border);
transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--p-surface-700), transparent 40%); background: var(--color-surface-hover);
border-color: var(--border-color); border-color: var(--color-border);
box-shadow: 0 2px 8px rgb(0 0 0 / 15%); box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
} }
@media (width <= 768px) { @media (width <= 768px) {
@@ -632,13 +606,13 @@
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
border-radius: 0.375rem; border-radius: 0.375rem;
background: color-mix(in srgb, var(--primary-color), transparent 85%); background: color-mix(in srgb, var(--color-primary), transparent 85%);
} }
.list-series-number { .list-series-number {
font-weight: 700; font-weight: 700;
font-size: 0.8rem; font-size: 0.8rem;
color: var(--primary-color); color: var(--color-primary);
} }
.list-thumb { .list-thumb {
@@ -661,7 +635,7 @@
.list-book-title { .list-book-title {
font-weight: 600; font-weight: 600;
font-size: 0.95rem; font-size: 0.95rem;
color: var(--text-color); color: var(--color-text);
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -672,12 +646,12 @@
align-items: center; align-items: center;
gap: 0.35rem; gap: 0.35rem;
font-size: 0.85rem; font-size: 0.85rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
flex-wrap: wrap; flex-wrap: wrap;
} }
.list-meta-dot { .list-meta-dot {
color: var(--text-color-secondary); color: var(--color-text-secondary);
opacity: 0.5; opacity: 0.5;
} }
@@ -747,21 +721,21 @@
width: 5rem; width: 5rem;
height: 0.25rem; height: 0.25rem;
border-radius: 0.25rem; border-radius: 0.25rem;
background: color-mix(in srgb, var(--p-surface-600), transparent 50%); background: color-mix(in srgb, var(--color-border), transparent 50%);
overflow: hidden; overflow: hidden;
} }
.list-progress-fill { .list-progress-fill {
height: 100%; height: 100%;
border-radius: 0.25rem; border-radius: 0.25rem;
background: var(--primary-color); background: var(--color-primary);
transition: width 0.3s ease; transition: width 0.3s ease;
} }
.list-progress-text { .list-progress-text {
font-size: 0.65rem; font-size: 0.65rem;
font-weight: 600; font-weight: 600;
color: var(--text-color-secondary); color: var(--color-text-secondary);
} }
// ── List: rating stars ── // ── List: rating stars ──
@@ -775,13 +749,13 @@
.list-star { .list-star {
font-size: 0.65rem; font-size: 0.65rem;
color: #facc15; color: var(--color-yellow-400);
} }
.list-rating-value { .list-rating-value {
font-size: 0.65rem; font-size: 0.65rem;
font-weight: 600; font-weight: 600;
color: var(--text-color-secondary); color: var(--color-text-secondary);
margin-left: 0.25rem; margin-left: 0.25rem;
} }
@@ -792,6 +766,11 @@
gap: 0.35rem; gap: 0.35rem;
} }
$list-action-btn-colors: (
'read': 'emerald',
'details': 'blue',
);
.list-action-btn { .list-action-btn {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
@@ -801,29 +780,29 @@
border-radius: 0.4rem; border-radius: 0.4rem;
border: 1px solid; border: 1px solid;
cursor: pointer; cursor: pointer;
transition: all 0.15s ease; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
i { i {
font-size: 0.85rem; font-size: 0.85rem;
} }
&.btn-read { @each $variant, $color in $list-action-btn-colors {
background: color-mix(in srgb, #10b981, transparent 85%); &.btn-#{$variant} {
border-color: color-mix(in srgb, #10b981, transparent 55%); background: color-mix(in srgb, var(--color-#{$color}-500), transparent 82%);
color: #6ee7b7; border-color: color-mix(in srgb, var(--color-#{$color}-500), transparent 65%);
color: var(--color-#{$color}-700);
&:hover { &:hover {
background: color-mix(in srgb, #10b981, transparent 65%); background: color-mix(in srgb, var(--color-#{$color}-500), transparent 75%);
}
} }
} }
}
&.btn-details { :host-context(.dark) {
background: color-mix(in srgb, #3b82f6, transparent 85%); @each $variant, $color in $list-action-btn-colors {
border-color: color-mix(in srgb, #3b82f6, transparent 55%); .list-action-btn.btn-#{$variant} {
color: #93c5fd; color: var(--color-#{$color}-300);
&:hover {
background: color-mix(in srgb, #3b82f6, transparent 65%);
} }
} }
} }
@@ -831,7 +810,7 @@
.empty-state { .empty-state {
text-align: center; text-align: center;
padding: 2rem; padding: 2rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
// ── Loading ── // ── Loading ──
@@ -877,7 +856,7 @@
border-radius: 10px 10px 0 0; border-radius: 10px 10px 0 0;
border: 1px solid rgb(255 255 255 / 50%); border: 1px solid rgb(255 255 255 / 50%);
border-width: 1px 1px 0; border-width: 1px 1px 0;
background-color: var(--card-background); background-color: var(--color-card);
> .footer-content { > .footer-content {
width: 100%; width: 100%;
@@ -930,7 +909,7 @@
align-items: center; align-items: center;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
font-size: 0.9rem; font-size: 0.9rem;
color: var(--text-color); color: var(--color-text);
i { i {
font-size: 1rem; font-size: 1rem;
@@ -20,8 +20,8 @@
flex-direction: column; flex-direction: column;
gap: 1.5rem; gap: 1.5rem;
padding: 1.5rem; padding: 1.5rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
box-shadow: 0 2px 6px rgb(0 0 0 / 8%); box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
@@ -55,10 +55,10 @@
gap: 0.375rem; gap: 0.375rem;
font-size: 0.95rem; font-size: 0.95rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
.label-icon { .label-icon {
color: var(--primary-color); color: var(--color-primary);
} }
.required-indicator { .required-indicator {
@@ -101,19 +101,19 @@
gap: 0.75rem; gap: 0.75rem;
width: 100%; width: 100%;
padding: 1rem; padding: 1rem;
background: var(--ground-background); background: var(--color-page);
border: 1px dashed var(--border-color); border: 1px dashed var(--color-border);
border-radius: 8px; border-radius: 8px;
color: var(--text-color); color: var(--color-text);
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover { &:hover {
background: var(--overlay-background); background: var(--color-page);
border-color: var(--primary-color); border-color: var(--color-primary);
color: var(--primary-color); color: var(--color-primary);
transform: translateY(-1px); transform: translateY(-1px);
box-shadow: 0 3px 8px rgb(0 0 0 / 15%); box-shadow: 0 3px 8px rgb(0 0 0 / 15%);
} }
@@ -164,9 +164,9 @@
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.75rem;
padding: 0.875rem; padding: 0.875rem;
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 8px; border-radius: 8px;
background: var(--ground-background); background: var(--color-page);
.icon-preview { .icon-preview {
display: flex; display: flex;
@@ -174,24 +174,11 @@
justify-content: center; justify-content: center;
width: 42px; width: 42px;
height: 42px; height: 42px;
background: var(--primary-color); background: var(--color-primary);
border-radius: 8px; border-radius: 8px;
box-shadow: 0 3px 8px rgb(0 0 0 / 20%); box-shadow: 0 3px 8px rgb(0 0 0 / 20%);
app-icon-display { --icon-display-color: var(--color-primary-contrast);
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-contrast-color);
::ng-deep i {
color: var(--primary-contrast-color);
}
::ng-deep img {
filter: brightness(0) invert(1);
}
}
} }
.icon-info { .icon-info {
@@ -202,13 +189,13 @@
.icon-label { .icon-label {
font-size: 0.8rem; font-size: 0.8rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
.icon-name { .icon-name {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
color: var(--text-color); color: var(--color-text);
font-family: monospace; font-family: monospace;
} }
} }
@@ -23,8 +23,8 @@
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
padding: 1.75rem; padding: 1.75rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
box-shadow: 0 2px 6px rgb(0 0 0 / 8%); box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
min-height: 200px; min-height: 200px;
@@ -55,7 +55,7 @@
width: 7rem; width: 7rem;
font-weight: 600; font-weight: 600;
font-size: 0.9375rem; font-size: 0.9375rem;
color: var(--text-color); color: var(--color-text);
margin: 0; margin: 0;
@media (width <= 480px) { @media (width <= 480px) {
@@ -83,8 +83,8 @@
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.75rem;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
background: var(--ground-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 8px; border-radius: 8px;
.icon-wrapper { .icon-wrapper {
@@ -93,13 +93,10 @@
justify-content: center; justify-content: center;
width: 38px; width: 38px;
height: 38px; height: 38px;
background: var(--primary-color); background: var(--color-primary);
border-radius: 8px; border-radius: 8px;
.icon { --icon-display-color: var(--color-primary-contrast);
font-size: 1.25rem;
color: var(--primary-contrast-color);
}
} }
} }
@@ -6,7 +6,7 @@
box-sizing: border-box; box-sizing: border-box;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
background: var(--surface-page); background: var(--color-page);
@media #{variables.$mobile-shell-media-query} { @media #{variables.$mobile-shell-media-query} {
padding: var(--space-4); padding: var(--space-4);
@@ -39,10 +39,10 @@
p { p {
font-size: 0.875rem; font-size: 0.875rem;
color: rgb(156 163 175); color: var(--color-text-secondary);
strong { strong {
color: var(--primary-color); color: var(--color-primary);
} }
} }
@@ -93,7 +93,7 @@
} }
span { span {
color: var(--text-color-secondary); color: var(--color-text-secondary);
} }
p-progressspinner { p-progressspinner {
@@ -129,13 +129,13 @@
} }
.saving-message { .saving-message {
background: rgb(17 24 39 / 90%); background: var(--color-card);
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
border-radius: 0.375rem; border-radius: 0.375rem;
span { span {
font-size: 0.875rem; font-size: 0.875rem;
color: rgb(229 231 235); color: var(--color-text);
text-align: center; text-align: center;
} }
} }
@@ -149,7 +149,7 @@
label { label {
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-weight: 500; font-weight: 500;
} }
} }
@@ -252,7 +252,7 @@ p-inputgroup.disabled {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: rgb(156 163 175); color: var(--color-text-secondary);
font-style: italic; font-style: italic;
padding: 2rem 0; padding: 2rem 0;
} }
@@ -266,7 +266,7 @@ p-inputgroup.disabled {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
padding: 1rem; padding: 1rem;
flex-wrap: wrap; flex-wrap: wrap;
} }
@@ -352,7 +352,7 @@ div.cover-image {
} }
.details-section { .details-section {
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
} }
.footer, .footer-mobile { .footer, .footer-mobile {
@@ -1,6 +1,6 @@
.staging-border { .staging-border {
background: var(--card-background); background: var(--color-card);
border: 1px solid var(--primary-color); border: 1px solid var(--color-primary);
border-radius: 0.5rem; border-radius: 0.5rem;
padding: 1rem; padding: 1rem;
} }
@@ -19,18 +19,18 @@
.widget-title { .widget-title {
font-weight: 700; font-weight: 700;
color: #d4d4d8; color: var(--color-text);
} }
.widget-count { .widget-count {
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 700; font-weight: 700;
color: var(--primary-color); color: var(--color-primary);
} }
.widget-date { .widget-date {
font-size: 0.75rem; font-size: 0.75rem;
color: #a1a1aa; color: var(--color-text-secondary);
margin-top: 0.25rem; margin-top: 0.25rem;
} }
@@ -96,7 +96,7 @@
.preview-item { .preview-item {
padding: 0.75rem; padding: 0.75rem;
border-radius: 6px; border-radius: 6px;
border: 1px solid var(--p-surface-300); border: 1px solid var(--color-border);
&.preview-success { &.preview-success {
background-color: rgb(76 175 80 / 10%); background-color: rgb(76 175 80 / 10%);
@@ -121,11 +121,11 @@
} }
.pi-check-circle { .pi-check-circle {
color: #4caf50; color: var(--color-green-500);
} }
.pi-times-circle { .pi-times-circle {
color: #f44336; color: var(--color-red-500);
} }
} }
@@ -14,9 +14,9 @@
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
max-height: min(70vh, calc(100dvh - 4rem)); max-height: min(70vh, calc(100dvh - 4rem));
background: color-mix(in srgb, var(--surface-overlay) 64%, var(--surface-card)); background: color-mix(in srgb, var(--color-page) 64%, var(--color-card));
color: var(--text-color); color: var(--color-text);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: var(--radius-md); border-radius: var(--radius-md);
box-shadow: box-shadow:
0 20px 64px rgb(0 0 0 / 32%), 0 20px 64px rgb(0 0 0 / 32%),
@@ -26,7 +26,7 @@
.command-palette-form { .command-palette-form {
&:has(+ .command-palette-results) .command-palette-input-row { &:has(+ .command-palette-results) .command-palette-input-row {
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
} }
} }
@@ -37,7 +37,7 @@
padding: var(--space-4) var(--space-5); padding: var(--space-4) var(--space-5);
i { i {
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: var(--text-lg); font-size: var(--text-lg);
} }
} }
@@ -55,7 +55,7 @@
appearance: none; appearance: none;
&::placeholder { &::placeholder {
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
&::-webkit-search-cancel-button, &::-webkit-search-cancel-button,
@@ -76,15 +76,15 @@
background: transparent; background: transparent;
border: 0; border: 0;
border-radius: 6px; border-radius: 6px;
color: var(--text-color); color: var(--color-text);
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
} }
&:focus-visible { &:focus-visible {
outline: 2px solid var(--primary-color); outline: 2px solid var(--color-primary);
outline-offset: 2px; outline-offset: 2px;
} }
@@ -101,7 +101,7 @@
.command-palette-empty { .command-palette-empty {
padding: var(--space-6) var(--space-4); padding: var(--space-6) var(--space-4);
color: var(--text-secondary-color); color: var(--color-text-secondary);
text-align: center; text-align: center;
font-size: var(--text-sm); font-size: var(--text-sm);
} }
@@ -110,7 +110,7 @@
padding: var(--space-2) 0; padding: var(--space-2) 0;
& + .command-palette-group { & + .command-palette-group {
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
} }
} }
@@ -118,7 +118,7 @@
padding: var(--space-2) var(--space-2) var(--space-1); padding: var(--space-2) var(--space-2) var(--space-1);
font-size: var(--text-xs); font-size: var(--text-xs);
font-weight: 500; font-weight: 500;
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
.command-palette-item { .command-palette-item {
@@ -137,13 +137,13 @@
scroll-margin: var(--space-2) 0; scroll-margin: var(--space-2) 0;
.command-palette-item-icon { .command-palette-item-icon {
color: var(--text-secondary-color); color: var(--color-text-secondary);
flex-shrink: 0; flex-shrink: 0;
} }
&.active { &.active {
background: color-mix(in srgb, var(--primary-color) 8%, transparent); background: color-mix(in srgb, var(--color-primary) 8%, transparent);
color: var(--primary-color); color: var(--color-primary);
.command-palette-item-icon { .command-palette-item-icon {
color: inherit; color: inherit;
@@ -163,7 +163,7 @@
height: 48px; height: 48px;
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
overflow: hidden; overflow: hidden;
background: var(--surface-800); background: var(--color-surface-800);
box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
&.square-cover { &.square-cover {
@@ -201,7 +201,7 @@
align-items: center; align-items: center;
min-width: 0; min-width: 0;
font-size: var(--text-sm); font-size: var(--text-sm);
color: var(--text-secondary-color); color: var(--color-text-secondary);
> * + *::before { > * + *::before {
content: '·'; content: '·';
@@ -222,7 +222,7 @@
flex: 1 1 auto; flex: 1 1 auto;
min-width: 0; min-width: 0;
margin-left: var(--space-2); margin-left: var(--space-2);
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: var(--text-sm); font-size: var(--text-sm);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -235,8 +235,8 @@
justify-content: flex-end; justify-content: flex-end;
gap: var(--space-3); gap: var(--space-3);
padding: var(--space-2) var(--space-4); padding: var(--space-2) var(--space-4);
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: var(--text-xs); font-size: var(--text-xs);
} }
@@ -253,11 +253,11 @@
min-width: 1.25rem; min-width: 1.25rem;
padding: 0 var(--space-1); padding: 0 var(--space-1);
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
background: var(--surface-hover); background: var(--color-surface-hover);
font-family: inherit; font-family: inherit;
font-size: var(--text-xs); font-size: var(--text-xs);
line-height: 1.5; line-height: 1.5;
color: var(--text-color); color: var(--color-text);
} }
@media #{variables.$mobile-shell-media-query} { @media #{variables.$mobile-shell-media-query} {
@@ -267,7 +267,7 @@
.command-palette { .command-palette {
max-height: 100dvh; max-height: 100dvh;
background: var(--surface-app); background: var(--color-app);
border: none; border: none;
border-radius: 0; border-radius: 0;
box-shadow: none; box-shadow: none;
@@ -277,8 +277,8 @@
box-sizing: border-box; box-sizing: border-box;
flex-shrink: 0; flex-shrink: 0;
height: 3.5rem; height: 3.5rem;
background: var(--surface-app); background: var(--color-app);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
&:has(+ .command-palette-results) .command-palette-input-row { &:has(+ .command-palette-results) .command-palette-input-row {
border-bottom: none; border-bottom: none;
@@ -314,7 +314,7 @@
.command-palette-results, .command-palette-results,
.command-palette-empty { .command-palette-empty {
background: var(--surface-page); background: var(--color-page);
} }
.command-palette-empty { .command-palette-empty {
@@ -331,7 +331,7 @@
calc(var(--space-3) + env(safe-area-inset-right)) calc(var(--space-3) + env(safe-area-inset-right))
var(--space-2) var(--space-2)
calc(var(--space-3) + env(safe-area-inset-left)); calc(var(--space-3) + env(safe-area-inset-left));
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
box-shadow: 0 12px 24px rgb(0 0 0 / 18%); box-shadow: 0 12px 24px rgb(0 0 0 / 18%);
} }
@@ -5,7 +5,7 @@
position: relative; position: relative;
overflow: hidden; overflow: hidden;
background: transparent; background: transparent;
border: 1px solid var(--border-subtle); border: 1px solid var(--color-border);
} }
.dashboard-scroller-title { .dashboard-scroller-title {
@@ -14,7 +14,7 @@
font-weight: 800; font-weight: 800;
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 0; padding: 0;
background: linear-gradient(135deg, var(--text-color), var(--text-color-secondary), var(--primary-color)); background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary), var(--color-primary));
background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
position: relative; position: relative;
@@ -28,7 +28,7 @@
left: 0; left: 0;
width: 80px; width: 80px;
height: 4px; height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--primary-color)); background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
border-radius: 2px; border-radius: 2px;
} }
} }
@@ -61,12 +61,11 @@
} }
p { p {
color: #e2e8f0; color: var(--color-text-secondary);
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
max-width: 400px; max-width: 400px;
line-height: 1.7; line-height: 1.7;
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
} }
} }
@@ -100,10 +99,10 @@
.magic-shelf-icon { .magic-shelf-icon {
margin-left: 0.5rem; margin-left: 0.5rem;
color: var(--primary-color) !important; color: var(--color-primary) !important;
background: none !important; background: none !important;
background-clip: unset !important; background-clip: unset !important;
-webkit-text-fill-color: var(--primary-color) !important; -webkit-text-fill-color: var(--color-primary) !important;
} }
@media (width <= 767px) { @media (width <= 767px) {
@@ -19,8 +19,8 @@
flex-direction: column; flex-direction: column;
gap: 0.75rem; gap: 0.75rem;
padding: 1rem 2rem; padding: 1rem 2rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
.settings-info { .settings-info {
@@ -28,12 +28,12 @@
display: flex; display: flex;
gap: 0.75rem; gap: 0.75rem;
padding: 0.75rem; padding: 0.75rem;
background: var(--overlay-background); background: var(--color-page);
border-radius: 6px; border-radius: 6px;
border: 1px solid var(--p-primary-300); border: 1px solid var(--p-primary-300);
.info-icon { .info-icon {
color: var(--primary-color); color: var(--color-primary);
font-size: 1.125rem; font-size: 1.125rem;
flex-shrink: 0; flex-shrink: 0;
margin-top: 0.125rem; margin-top: 0.125rem;
@@ -46,7 +46,7 @@
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
} }
} }
} }
@@ -67,8 +67,8 @@
.scrollers-container { .scrollers-container {
padding: 1.5rem 2rem; padding: 1.5rem 2rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
min-height: 200px; min-height: 200px;
max-height: 450px; max-height: 450px;
@@ -81,7 +81,7 @@
} }
.scroller-item { .scroller-item {
border: var(--card-border); border: 1px solid transparent;
transition: all 0.2s; transition: all 0.2s;
border-color: var(--p-content-border-color); border-color: var(--p-content-border-color);
background: var(--p-content-background); background: var(--p-content-background);
@@ -169,7 +169,7 @@
} }
label { label {
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
} }
@@ -35,7 +35,7 @@
} }
.welcome-description { .welcome-description {
color: #d1d5db; color: var(--color-text-secondary);
margin-bottom: 2rem; margin-bottom: 2rem;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@@ -46,7 +46,7 @@
font-size: 1.75rem; font-size: 1.75rem;
font-weight: 700; font-weight: 700;
margin-bottom: 2rem; margin-bottom: 2rem;
background: linear-gradient(135deg, var(--text-color), var(--text-color-secondary), var(--primary-color)); background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary), var(--color-primary));
background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
text-shadow: 0 2px 4px rgb(0 0 0 / 30%); text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
@@ -57,7 +57,7 @@
padding: 3rem; padding: 3rem;
background: transparent; background: transparent;
border-radius: 24px; border-radius: 24px;
border: 1px solid var(--border-subtle); border: 1px solid var(--color-border);
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
@@ -79,10 +79,10 @@
::ng-deep .p-button { ::ng-deep .p-button {
box-shadow: 0 4px 12px rgb(0 0 0 / 30%); box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
background: transparent; background: transparent;
border: 1px solid var(--border-subtle); border: 1px solid var(--color-border);
&:hover { &:hover {
background: var(--surface-toolbar); background: color-mix(in srgb, var(--color-app) 70%, var(--color-page));
transform: scale(1.05); transform: scale(1.05);
transition: all 0.2s ease; transition: all 0.2s ease;
} }
@@ -62,7 +62,7 @@
} }
label { label {
color: var(--text-color-secondary); color: var(--color-text-secondary);
white-space: nowrap; white-space: nowrap;
} }
@@ -166,8 +166,8 @@ label {
} }
&.ebook { &.ebook {
color: var(--primary-color); color: var(--color-primary);
background: color-mix(in srgb, var(--primary-color) 15%, transparent); background: color-mix(in srgb, var(--color-primary) 15%, transparent);
} }
&.audiobook { &.audiobook {
@@ -399,8 +399,8 @@ label {
.collapsible-section { .collapsible-section {
margin-top: 1rem; margin-top: 1rem;
width: 100%; width: 100%;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 0.75rem; border-radius: 0.75rem;
.collapsible-header { .collapsible-header {
@@ -409,28 +409,28 @@ label {
gap: 0.5rem; gap: 0.5rem;
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
min-height: 2.5rem; min-height: 2.5rem;
background: var(--ground-background); background: var(--color-card);
border-radius: 0.75rem; border-radius: 0.75rem;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
transition: background 0.2s ease; transition: background 0.2s ease;
&:hover { &:hover {
background: var(--surface-hover); background: var(--color-surface-hover);
} }
i:first-child { i:first-child {
font-size: 0.9rem; font-size: 0.9rem;
color: var(--primary-color); color: var(--color-primary);
} }
.section-toggle { .section-toggle {
margin-left: auto; margin-left: auto;
font-size: 0.75rem; font-size: 0.75rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
} }
@@ -440,7 +440,7 @@ label {
.collapsible-content { .collapsible-content {
padding: 0.75rem; padding: 0.75rem;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
} }
} }
@@ -556,10 +556,10 @@ label {
.navigation-position { .navigation-position {
font-size: 0.875rem; font-size: 0.875rem;
color: var(--surface-600); color: var(--color-surface-600);
:host-context(.dark) & { :host-context(.dark) & {
color: var(--surface-400); color: var(--color-surface-400);
} }
} }
@@ -32,31 +32,31 @@ $provider-colors: (
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 700; font-weight: 700;
margin: 0 0 0.375rem; margin: 0 0 0.375rem;
color: var(--text-color); color: var(--color-text);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 0.5rem; gap: 0.5rem;
i { i {
color: var(--primary-color); color: var(--color-primary);
font-size: 1.5rem; font-size: 1.5rem;
} }
} }
.header-subtitle { .header-subtitle {
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
margin: 0; margin: 0;
} }
} }
.search-card { .search-card {
background: var(--p-surface-900); background: var(--color-card);
border-radius: 0.75rem; border-radius: 0.75rem;
padding: 1.25rem; padding: 1.25rem;
box-shadow: 0 2px 4px rgb(0 0 0 / 20%); box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
margin-bottom: 1.25rem; margin-bottom: 1.25rem;
transition: all 0.3s ease; transition: all 0.3s ease;
@@ -89,13 +89,13 @@ $provider-colors: (
label { label {
font-weight: 600; font-weight: 600;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color); color: var(--color-text);
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.375rem;
i { i {
color: var(--primary-color); color: var(--color-primary);
font-size: 0.875rem; font-size: 0.875rem;
} }
} }
@@ -141,25 +141,25 @@ $provider-colors: (
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.75rem; padding: 0.75rem;
background: var(--p-surface-900); background: var(--color-card);
border-radius: 0.5rem; border-radius: 0.5rem;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
border-left: 3px solid var(--primary-color); border-left: 3px solid var(--color-primary);
i { i {
color: var(--primary-color); color: var(--color-primary);
font-size: 0.9375rem; font-size: 0.9375rem;
flex-shrink: 0; flex-shrink: 0;
} }
} }
.provider-status { .provider-status {
background: var(--p-surface-900); background: var(--color-card);
border-radius: 0.75rem; border-radius: 0.75rem;
padding: 1rem; padding: 1rem;
box-shadow: 0 2px 4px rgb(0 0 0 / 20%); box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
margin-bottom: 1.25rem; margin-bottom: 1.25rem;
animation: slide-in 0.3s ease-out; animation: slide-in 0.3s ease-out;
} }
@@ -206,25 +206,25 @@ $provider-colors: (
margin: 0; margin: 0;
font-size: 1.0625rem; font-size: 1.0625rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.375rem;
i { i {
color: var(--primary-color); color: var(--color-primary);
font-size: 0.9375rem; font-size: 0.9375rem;
} }
} }
.results-count { .results-count {
padding: 0.25rem 0.75rem; padding: 0.25rem 0.75rem;
background: rgb(var(--primary-color-rgb, 99, 102, 241), 20%); background: color-mix(in srgb, var(--color-primary) 20%, transparent);
color: var(--primary-color); color: var(--color-primary);
border-radius: 2rem; border-radius: 2rem;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 700; font-weight: 700;
border: 1px solid var(--primary-color); border: 1px solid var(--color-primary);
} }
} }
@@ -252,49 +252,49 @@ $provider-colors: (
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
background: var(--p-surface-900); background: var(--color-card);
border: 1px solid var(--p-surface-600); border: 1px solid var(--color-border);
border-radius: 0.5rem; border-radius: 0.5rem;
transition: all 0.3s ease; transition: all 0.3s ease;
user-select: none; user-select: none;
&.has-results { &.has-results {
background: var(--p-surface-900); background: var(--color-card);
border-color: var(--primary-color); border-color: var(--color-primary);
cursor: pointer; cursor: pointer;
.pill-icon { .pill-icon {
background: rgb(var(--primary-color-rgb, 99, 102, 241), 12%); background: color-mix(in srgb, var(--color-primary) 12%, transparent);
color: var(--primary-color); color: var(--color-primary);
} }
.pill-count { .pill-count {
background: rgb(var(--primary-color-rgb, 99, 102, 241), 18%); background: color-mix(in srgb, var(--color-primary) 18%, transparent);
color: #fff; color: var(--color-text);
font-weight: 700; font-weight: 700;
} }
} }
&.active { &.active {
background: rgb(var(--primary-color-rgb, 99, 102, 241), 10%); background: color-mix(in srgb, var(--color-primary) 10%, transparent);
border-color: var(--primary-color); border-color: var(--color-primary);
box-shadow: 0 0 0 2px rgb(var(--primary-color-rgb, 99, 102, 241), 10%), box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 10%, transparent),
0 2px 6px rgb(var(--primary-color-rgb, 99, 102, 241), 10%); 0 2px 6px color-mix(in srgb, var(--color-primary) 10%, transparent);
transform: translateY(-1px); transform: translateY(-1px);
.pill-icon { .pill-icon {
background: rgb(var(--primary-color-rgb, 99, 102, 241), 18%); background: color-mix(in srgb, var(--color-primary) 18%, transparent);
color: var(--primary-color); color: var(--color-primary);
} }
.pill-name { .pill-name {
color: var(--primary-color); color: var(--color-primary);
font-weight: 700; font-weight: 700;
} }
.pill-count { .pill-count {
background: rgb(var(--primary-color-rgb, 99, 102, 241), 22%); background: color-mix(in srgb, var(--color-primary) 22%, transparent);
color: #fff; color: var(--color-text);
font-weight: 800; font-weight: 800;
} }
} }
@@ -311,7 +311,7 @@ $provider-colors: (
.pill-count { .pill-count {
background: rgb($color, 18%); background: rgb($color, 18%);
color: #fff; color: var(--color-text);
font-weight: 700; font-weight: 700;
} }
@@ -336,7 +336,7 @@ $provider-colors: (
.pill-count { .pill-count {
background: rgb($color, 22%); background: rgb($color, 22%);
color: #fff; color: var(--color-text);
font-weight: 800; font-weight: 800;
} }
} }
@@ -359,9 +359,9 @@ $provider-colors: (
justify-content: center; justify-content: center;
width: 2rem; width: 2rem;
height: 2rem; height: 2rem;
background: var(--p-surface-600); background: var(--color-border);
border-radius: 0.375rem; border-radius: 0.375rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
flex-shrink: 0; flex-shrink: 0;
transition: all 0.3s ease; transition: all 0.3s ease;
@@ -379,7 +379,7 @@ $provider-colors: (
.pill-name { .pill-name {
font-weight: 700; font-weight: 700;
font-size: 0.95rem; font-size: 0.95rem;
color: var(--text-color); color: var(--color-text);
} }
.pill-count { .pill-count {
@@ -389,8 +389,8 @@ $provider-colors: (
min-width: 1.75rem; min-width: 1.75rem;
height: 1.75rem; height: 1.75rem;
padding: 0 0.375rem; padding: 0 0.375rem;
background: var(--p-surface-600); background: var(--color-border);
color: #fff; color: var(--color-text);
border-radius: 2rem; border-radius: 2rem;
font-weight: 800; font-weight: 800;
font-size: 1rem; font-size: 1rem;
@@ -412,20 +412,20 @@ $provider-colors: (
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: var(--p-surface-900); background: var(--color-card);
border-radius: 50%; border-radius: 50%;
margin-bottom: 1rem; margin-bottom: 1rem;
i { i {
font-size: 2rem; font-size: 2rem;
color: var(--primary-color); color: var(--color-primary);
} }
&.no-results { &.no-results {
background: var(--p-surface-900); background: var(--color-card);
i { i {
color: var(--text-color-secondary); color: var(--color-text-secondary);
} }
} }
} }
@@ -434,13 +434,13 @@ $provider-colors: (
margin: 0 0 0.375rem; margin: 0 0 0.375rem;
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
} }
p { p {
margin: 0; margin: 0;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
max-width: 500px; max-width: 500px;
} }
} }
@@ -455,10 +455,10 @@ $provider-colors: (
gap: 0.75rem; gap: 0.75rem;
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 1rem; padding: 1rem;
background: var(--p-surface-900); background: var(--color-card);
border-radius: 0.75rem; border-radius: 0.75rem;
box-shadow: 0 2px 4px rgb(0 0 0 / 20%); box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
@media (width >= 768px) { @media (width >= 768px) {
flex-direction: row; flex-direction: row;
@@ -482,21 +482,21 @@ $provider-colors: (
margin: 0; margin: 0;
font-size: 1.0625rem; font-size: 1.0625rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.375rem;
i { i {
color: var(--primary-color); color: var(--color-primary);
font-size: 0.9375rem; font-size: 0.9375rem;
} }
} }
.results-count { .results-count {
padding: 0.1875rem 0.625rem; padding: 0.1875rem 0.625rem;
background: var(--p-surface-900); background: var(--color-card);
color: var(--primary-color); color: var(--color-primary);
border-radius: 2rem; border-radius: 2rem;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
@@ -511,14 +511,14 @@ $provider-colors: (
label { label {
font-weight: 600; font-weight: 600;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color); color: var(--color-text);
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.375rem;
white-space: nowrap; white-space: nowrap;
i { i {
color: var(--primary-color); color: var(--color-primary);
font-size: 0.875rem; font-size: 0.875rem;
} }
} }
@@ -543,11 +543,11 @@ $provider-colors: (
} }
.metadata-card { .metadata-card {
background: var(--p-surface-900); background: var(--color-card);
border-radius: 0.75rem; border-radius: 0.75rem;
overflow: hidden; overflow: hidden;
box-shadow: 0 2px 6px rgb(0 0 0 / 20%); box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; transition: all 0.3s ease;
display: flex; display: flex;
@@ -558,7 +558,7 @@ $provider-colors: (
&:hover { &:hover {
transform: translateY(-4px); transform: translateY(-4px);
box-shadow: 0 8px 16px rgb(0 0 0 / 30%); box-shadow: 0 8px 16px rgb(0 0 0 / 30%);
border-color: var(--primary-color); border-color: var(--color-primary);
.card-overlay { .card-overlay {
opacity: 1; opacity: 1;
@@ -576,7 +576,7 @@ $provider-colors: (
min-width: 140px; min-width: 140px;
height: 200px; height: 200px;
overflow: hidden; overflow: hidden;
background: var(--p-surface-900); background: var(--color-card);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -633,7 +633,7 @@ $provider-colors: (
margin: 0; margin: 0;
font-size: 1rem; font-size: 1rem;
font-weight: 700; font-weight: 700;
color: var(--text-color); color: var(--color-text);
line-height: 1.3; line-height: 1.3;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
@@ -663,7 +663,7 @@ $provider-colors: (
.card-authors { .card-authors {
margin: 0; margin: 0;
font-size: 0.9rem; font-size: 0.9rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.375rem;
@@ -673,7 +673,7 @@ $provider-colors: (
font-weight: 700; font-weight: 700;
i { i {
color: var(--primary-color); color: var(--color-primary);
font-size: 0.875rem; font-size: 0.875rem;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -690,17 +690,17 @@ $provider-colors: (
align-items: center; align-items: center;
gap: 0.25rem; gap: 0.25rem;
padding: 0.5rem 0.5rem 0.5rem 0; padding: 0.5rem 0.5rem 0.5rem 0;
background: var(--p-surface-900); background: var(--color-card);
border-radius: 0.25rem; border-radius: 0.25rem;
font-size: 0.8rem; font-size: 0.8rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-weight: 500; font-weight: 500;
white-space: nowrap; white-space: nowrap;
i { i {
padding-right: 0.25rem; padding-right: 0.25rem;
font-size: 0.6875rem; font-size: 0.6875rem;
color: var(--primary-color); color: var(--color-primary);
flex-shrink: 0; flex-shrink: 0;
} }
} }
@@ -708,7 +708,7 @@ $provider-colors: (
.card-description { .card-description {
margin: 0; margin: 0;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
line-height: 1.4; line-height: 1.4;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 6; -webkit-line-clamp: 6;
@@ -17,7 +17,7 @@
flex-direction: column; flex-direction: column;
gap: 1rem; gap: 1rem;
padding-bottom: 1rem; padding-bottom: 1rem;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
@media (width >= 768px) { @media (width >= 768px) {
flex-direction: row; flex-direction: row;
@@ -53,13 +53,13 @@
position: absolute; position: absolute;
top: 0.5rem; top: 0.5rem;
left: 0.5rem; left: 0.5rem;
background: var(--overlay-background); background: var(--color-page);
color: var(--text-color); color: var(--color-text);
padding: 0.25rem 0.5rem; padding: 0.25rem 0.5rem;
border-radius: 0.5rem; border-radius: 0.5rem;
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 600; font-weight: 600;
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
backdrop-filter: blur(8px); backdrop-filter: blur(8px);
z-index: 2; z-index: 2;
} }
@@ -89,27 +89,27 @@
} }
::ng-deep .progress-incomplete .p-progressbar-value { ::ng-deep .progress-incomplete .p-progressbar-value {
background-color: var(--primary-color); background-color: var(--color-primary);
} }
::ng-deep .progress-complete .p-progressbar-value { ::ng-deep .progress-complete .p-progressbar-value {
background-color: var(--primary-hover-color); background-color: var(--color-primary-hover);
} }
::ng-deep .progress-incomplete-ko .p-progressbar-value { ::ng-deep .progress-incomplete-ko .p-progressbar-value {
background-color: #fbbf24; background-color: var(--color-amber-400);
} }
::ng-deep .progress-complete-ko .p-progressbar-value { ::ng-deep .progress-complete-ko .p-progressbar-value {
background-color: #8b5cf6; background-color: var(--color-violet-500);
} }
::ng-deep .progress-incomplete-kobo .p-progressbar-value { ::ng-deep .progress-incomplete-kobo .p-progressbar-value {
background-color: #bf0000; background-color: var(--color-red-700);
} }
::ng-deep .progress-complete-kobo .p-progressbar-value { ::ng-deep .progress-complete-kobo .p-progressbar-value {
background-color: #f65c9c; background-color: var(--color-pink-400);
} }
.info-section { .info-section {
@@ -139,7 +139,7 @@
} }
.series-link { .series-link {
color: var(--primary-color); color: var(--color-primary);
cursor: pointer; cursor: pointer;
font-size: 0.95rem; font-size: 0.95rem;
font-weight: 500; font-weight: 500;
@@ -147,7 +147,7 @@
transition: color 0.2s ease; transition: color 0.2s ease;
&:hover { &:hover {
color: var(--primary-hover-color); color: var(--color-primary-hover);
text-decoration: underline; text-decoration: underline;
} }
} }
@@ -178,7 +178,7 @@
.book-title { .book-title {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 800; font-weight: 800;
color: var(--text-color); color: var(--color-text);
line-height: 1.2; line-height: 1.2;
margin: 0; margin: 0;
@@ -193,11 +193,11 @@
} }
.lock-icon.locked { .lock-icon.locked {
color: orangered; color: var(--color-danger);
} }
.lock-icon.unlocked { .lock-icon.unlocked {
color: limegreen; color: var(--color-green-500);
} }
.lock-icon:hover { .lock-icon:hover {
@@ -206,19 +206,19 @@
.authors { .authors {
font-size: 1.125rem; font-size: 1.125rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
margin: 0; margin: 0;
} }
.author-link { .author-link {
color: cornflowerblue; color: var(--color-primary-text);
cursor: pointer; cursor: pointer;
transition: color 0.2s ease; transition: color 0.2s ease;
font-weight: 400; font-weight: 400;
} }
.author-link:hover { .author-link:hover {
color: dodgerblue; color: var(--color-primary);
text-decoration: underline; text-decoration: underline;
} }
@@ -227,12 +227,12 @@
align-items: center; align-items: center;
font-size: 0.55rem; font-size: 0.55rem;
font-weight: 700; font-weight: 700;
color: #DAA520; color: var(--color-warning);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.3px; letter-spacing: 0.3px;
margin-left: 0.25rem; margin-left: 0.25rem;
padding: 0.1rem 0.3rem; padding: 0.1rem 0.3rem;
border: 1px solid #DAA520; border: 1px solid color-mix(in srgb, var(--color-warning) 65%, transparent);
border-radius: 3px; border-radius: 3px;
line-height: 1; line-height: 1;
vertical-align: middle; vertical-align: middle;
@@ -251,7 +251,7 @@
} }
.format-pipe { .format-pipe {
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-weight: 300; font-weight: 300;
font-size: 1rem; font-size: 1rem;
line-height: 1; line-height: 1;
@@ -260,7 +260,7 @@
} }
.author-separator { .author-separator {
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
.ratings-section { .ratings-section {
@@ -299,7 +299,7 @@
display: none; display: none;
width: 1px; width: 1px;
height: 2rem; height: 2rem;
background: var(--border-color); background: var(--color-border);
} }
@media (width >= 640px) { @media (width >= 640px) {
@@ -324,7 +324,7 @@
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.375rem;
text-decoration: none; text-decoration: none;
color: var(--text-color); color: var(--color-text);
transition: transform 0.2s ease; transition: transform 0.2s ease;
} }
@@ -347,7 +347,7 @@
.rating-value { .rating-value {
font-weight: 600; font-weight: 600;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color); color: var(--color-text);
} }
.tags-section { .tags-section {
@@ -366,7 +366,7 @@
.tag-label { .tag-label {
font-weight: 600; font-weight: 600;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color); color: var(--color-text);
flex: 0 0 56px; flex: 0 0 56px;
min-width: 56px; min-width: 56px;
} }
@@ -426,7 +426,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
min-height: 1.5rem; min-height: 1.5rem;
@@ -434,12 +434,12 @@
.metadata-key { .metadata-key {
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
flex-shrink: 0; flex-shrink: 0;
} }
.metadata-value { .metadata-value {
color: var(--text-color-secondary); color: var(--color-text-secondary);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
@@ -452,7 +452,7 @@
} }
.separator { .separator {
color: var(--text-color-secondary); color: var(--color-text-secondary);
margin-right: 0.25rem; margin-right: 0.25rem;
} }
@@ -483,37 +483,37 @@
align-items: center; align-items: center;
font-size: 0.55rem; font-size: 0.55rem;
font-weight: 700; font-weight: 700;
color: var(--primary-color); color: var(--color-primary);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.3px; letter-spacing: 0.3px;
margin-left: 0.25rem; margin-left: 0.25rem;
padding: 0.1rem 0.3rem; padding: 0.1rem 0.3rem;
border: 1px solid var(--primary-color); border: 1px solid var(--color-primary);
border-radius: 3px; border-radius: 3px;
line-height: 1; line-height: 1;
} }
.metadata-link { .metadata-link {
color: var(--primary-text-color); color: var(--color-primary-text);
cursor: pointer; cursor: pointer;
transition: color 0.2s ease; transition: color 0.2s ease;
font-weight: 500; font-weight: 500;
&:hover { &:hover {
color: var(--primary-hover-color); color: var(--color-primary-hover);
text-decoration: underline; text-decoration: underline;
} }
} }
.edit-icon { .edit-icon {
color: var(--primary-text-color); color: var(--color-primary-text);
cursor: pointer; cursor: pointer;
font-size: 0.875rem; font-size: 0.875rem;
transition: color 0.2s ease, transform 0.2s ease; transition: color 0.2s ease, transform 0.2s ease;
} }
.edit-icon:hover { .edit-icon:hover {
color: var(--primary-hover-color); color: var(--color-primary-hover);
transform: scale(1.1); transform: scale(1.1);
} }
@@ -532,18 +532,18 @@
} }
.eye-icon { .eye-icon {
color: var(--text-color-secondary); color: var(--color-text-secondary);
cursor: pointer; cursor: pointer;
transition: color 0.2s ease; transition: color 0.2s ease;
} }
.eye-icon:hover { .eye-icon:hover {
color: var(--primary-color); color: var(--color-primary);
} }
.file-path-code { .file-path-code {
font-size: 0.85rem; font-size: 0.85rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@@ -553,7 +553,7 @@
.action-buttons-container { .action-buttons-container {
margin-top: auto; margin-top: auto;
padding-top: 0.75rem; padding-top: 0.75rem;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
} }
.action-buttons { .action-buttons {
@@ -570,7 +570,7 @@
&.navigation-group { &.navigation-group {
padding-right: 0.5rem; padding-right: 0.5rem;
border-right: 1px solid var(--border-color); border-right: 1px solid var(--color-border);
margin-right: 0.25rem; margin-right: 0.25rem;
@media (width <= 767px) { @media (width <= 767px) {
@@ -581,7 +581,7 @@
&.primary-actions { &.primary-actions {
@media (width >= 768px) { @media (width >= 768px) {
padding-right: 0.5rem; padding-right: 0.5rem;
border-right: 1px solid var(--border-color); border-right: 1px solid var(--color-border);
margin-right: 0.25rem; margin-right: 0.25rem;
} }
} }
@@ -641,12 +641,12 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0.625rem 0.875rem; padding: 0.625rem 0.875rem;
background: var(--ground-background); background: var(--color-page);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
border-radius: 0.75rem 0.75rem 0 0; border-radius: 0.75rem 0.75rem 0 0;
font-weight: 600; font-weight: 600;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-color); color: var(--color-text);
&.clickable { &.clickable {
cursor: pointer; cursor: pointer;
@@ -654,12 +654,12 @@
transition: background 0.2s ease; transition: background 0.2s ease;
&:hover { &:hover {
background: var(--surface-hover); background: var(--color-surface-hover);
} }
} }
i:first-child { i:first-child {
color: var(--primary-color); color: var(--color-primary);
margin-right: 0.5rem; margin-right: 0.5rem;
} }
} }
@@ -671,23 +671,27 @@
i { i {
font-size: 0.95rem; font-size: 0.95rem;
color: var(--primary-color); color: var(--color-primary);
} }
} }
.section-toggle-icon { .section-toggle-icon {
font-size: 0.8rem; font-size: 0.8rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
transition: transform 0.3s ease; transition: transform 0.3s ease;
} }
.description-section { .description-section {
background: var(--card-background); background: var(--color-card);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 0.75rem; border-radius: 0.75rem;
overflow: hidden; overflow: hidden;
transition: box-shadow 0.3s ease; transition: box-shadow 0.3s ease;
.section-header {
background: var(--color-card);
}
&:hover { &:hover {
box-shadow: 0 2px 8px rgb(0 0 0 / 10%); box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
} }
@@ -719,15 +723,15 @@
background: transparent; background: transparent;
border: none; border: none;
border-radius: 0.25rem; border-radius: 0.25rem;
color: var(--primary-color); color: var(--color-primary);
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 500; font-weight: 500;
cursor: pointer; cursor: pointer;
transition: background 0.2s ease, color 0.2s ease; transition: background 0.2s ease, color 0.2s ease;
&:hover { &:hover {
background: var(--surface-hover); background: var(--color-surface-hover);
color: var(--primary-hover-color); color: var(--color-primary-hover);
} }
i { i {
@@ -736,7 +740,7 @@
} }
.description-html { .description-html {
color: var(--text-color-secondary); color: var(--color-text-secondary);
line-height: 1.6; line-height: 1.6;
font-size: 0.9375rem; font-size: 0.9375rem;
overflow-wrap: break-word; overflow-wrap: break-word;
@@ -753,7 +757,7 @@
} }
.loading-text { .loading-text {
color: var(--primary-color); color: var(--color-primary);
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
} }
@@ -769,13 +773,13 @@
.navigation-position { .navigation-position {
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
// Comic Metadata Section Styles // Comic Metadata Section Styles
.comic-metadata-section { .comic-metadata-section {
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 0.75rem; border-radius: 0.75rem;
overflow: hidden; overflow: hidden;
transition: box-shadow 0.3s ease; transition: box-shadow 0.3s ease;
@@ -817,26 +821,26 @@
.comic-info-label { .comic-info-label {
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 600; font-weight: 600;
color: var(--text-color-secondary); color: var(--color-text-secondary);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
.comic-info-value { .comic-info-value {
font-size: 0.95rem; font-size: 0.95rem;
color: var(--text-color); color: var(--color-text);
font-weight: 500; font-weight: 500;
} }
.comic-volume-number, .comic-volume-number,
.comic-arc-number { .comic-arc-number {
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-weight: 400; font-weight: 400;
margin-left: 0.25rem; margin-left: 0.25rem;
} }
.comic-subsection { .comic-subsection {
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
padding-top: 0.75rem; padding-top: 0.75rem;
} }
@@ -846,12 +850,12 @@
gap: 0.375rem; gap: 0.375rem;
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
i { i {
font-size: 0.9rem; font-size: 0.9rem;
color: var(--primary-color); color: var(--color-primary);
} }
} }
@@ -871,7 +875,7 @@
.comic-creator-role { .comic-creator-role {
flex: 0 0 95px; flex: 0 0 95px;
font-weight: 500; font-weight: 500;
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-size: 0.85rem; font-size: 0.85rem;
} }
@@ -882,19 +886,19 @@
} }
.comic-creator-link { .comic-creator-link {
color: cornflowerblue; color: var(--color-primary);
cursor: pointer; cursor: pointer;
transition: color 0.2s ease; transition: color 0.2s ease;
font-size: 0.9rem; font-size: 0.9rem;
&:hover { &:hover {
color: dodgerblue; color: var(--color-primary-hover);
text-decoration: underline; text-decoration: underline;
} }
&:not(:last-child)::after { &:not(:last-child)::after {
content: ','; content: ',';
color: var(--text-color-secondary); color: var(--color-text-secondary);
} }
} }
@@ -913,7 +917,7 @@
.comic-tag-label { .comic-tag-label {
flex: 0 0 80px; flex: 0 0 80px;
font-weight: 500; font-weight: 500;
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-size: 0.85rem; font-size: 0.85rem;
padding-top: 0.125rem; padding-top: 0.125rem;
} }
@@ -938,7 +942,7 @@
flex-wrap: wrap; flex-wrap: wrap;
gap: 0.5rem; gap: 0.5rem;
padding-top: 0.5rem; padding-top: 0.5rem;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
} }
.comic-property-badge { .comic-property-badge {
@@ -955,31 +959,31 @@
} }
&.manga { &.manga {
background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); background: linear-gradient(135deg, var(--color-pink-500) 0%, var(--color-pink-600) 100%);
color: white; color: var(--color-white);
} }
&.bw { &.bw {
background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); background: linear-gradient(135deg, var(--color-gray-500) 0%, var(--color-gray-600) 100%);
color: white; color: var(--color-white);
} }
&.rtl { &.rtl {
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); background: linear-gradient(135deg, var(--color-violet-500) 0%, var(--color-violet-600) 100%);
color: white; color: var(--color-white);
} }
} }
.comic-web-link { .comic-web-link {
padding-top: 0.5rem; padding-top: 0.5rem;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
} }
.comic-external-link { .comic-external-link {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.375rem;
color: var(--primary-color); color: var(--color-primary);
text-decoration: none; text-decoration: none;
font-size: 0.9rem; font-size: 0.9rem;
transition: color 0.2s ease; transition: color 0.2s ease;
@@ -989,14 +993,14 @@
} }
&:hover { &:hover {
color: var(--primary-hover-color); color: var(--color-primary-hover);
text-decoration: underline; text-decoration: underline;
} }
} }
.comic-notes { .comic-notes {
padding-top: 0.5rem; padding-top: 0.5rem;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
} }
.comic-notes-label { .comic-notes-label {
@@ -1005,18 +1009,18 @@
gap: 0.375rem; gap: 0.375rem;
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
margin-bottom: 0.375rem; margin-bottom: 0.375rem;
i { i {
font-size: 0.9rem; font-size: 0.9rem;
color: var(--primary-color); color: var(--color-primary);
} }
} }
.comic-notes-content { .comic-notes-content {
font-size: 0.9rem; font-size: 0.9rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
line-height: 1.5; line-height: 1.5;
margin: 0; margin: 0;
white-space: pre-wrap; white-space: pre-wrap;
@@ -16,8 +16,8 @@
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding: 1rem; padding: 1rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
border-radius: 0 0 10px 10px; border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0 0 0 / 8%); box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
@@ -31,16 +31,16 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: rgb(0 0 0 / 60%); background: color-mix(in srgb, var(--color-surface-950) 60%, transparent);
} }
.info-box { .info-box {
padding: 1rem; padding: 1rem;
border: 1px solid #374151; border: 1px solid var(--color-border);
border-radius: 0.375rem; border-radius: 0.375rem;
margin-bottom: 1rem; margin-bottom: 1rem;
background: #111827; background: var(--color-page);
color: #e5e7eb; color: var(--color-text);
} }
.info-header { .info-header {
@@ -57,7 +57,7 @@
.toggle-list-btn { .toggle-list-btn {
font-size: 0.875rem; font-size: 0.875rem;
color: #38bdf8; color: var(--color-primary-text);
background: none; background: none;
border: none; border: none;
cursor: pointer; cursor: pointer;
@@ -70,11 +70,11 @@
.book-list-panel { .book-list-panel {
max-height: 12rem; max-height: 12rem;
overflow-y: auto; overflow-y: auto;
border-top: 1px solid #374151; border-top: 1px solid var(--color-border);
padding-top: 0.5rem; padding-top: 0.5rem;
padding-left: 0.25rem; padding-left: 0.25rem;
font-size: 0.875rem; font-size: 0.875rem;
color: #d1d5db; color: var(--color-text-secondary);
} }
.book-list { .book-list {
@@ -89,7 +89,7 @@
.warning-text { .warning-text {
padding: 0 1rem; padding: 0 1rem;
font-size: 0.875rem; font-size: 0.875rem;
color: #eab308; color: var(--color-warning);
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
@@ -145,7 +145,7 @@
} }
.info-icon { .info-icon {
color: #0284c7; color: var(--color-info);
} }
.clear-checkbox { .clear-checkbox {
@@ -156,7 +156,7 @@
.clear-label { .clear-label {
font-size: 0.875rem; font-size: 0.875rem;
color: #d1d5db; color: var(--color-text-secondary);
cursor: pointer; cursor: pointer;
} }
@@ -181,10 +181,10 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.5rem; gap: 0.5rem;
border: 1px solid #374151; border: 1px solid var(--color-border);
border-radius: 0.375rem; border-radius: 0.375rem;
padding: 1rem; padding: 1rem;
background: #111827; background: var(--color-page);
} }
.cover-label { .cover-label {
@@ -197,7 +197,7 @@
.cover-description { .cover-description {
font-size: 0.875rem; font-size: 0.875rem;
color: #9ca3af; color: var(--color-text-secondary);
} }
.cover-actions { .cover-actions {
@@ -212,7 +212,7 @@
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
font-size: 0.875rem; font-size: 0.875rem;
color: #d1d5db; color: var(--color-text-secondary);
} }
.file-input-hidden { .file-input-hidden {
@@ -26,8 +26,8 @@
overflow-y: auto; overflow-y: auto;
min-height: 0; min-height: 0;
padding: 1.5rem; padding: 1.5rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
border-radius: 0 0 10px 10px; border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0 0 0 / 8%); box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
@@ -37,8 +37,8 @@
// Search Section // Search Section
.search-section { .search-section {
flex-shrink: 0; flex-shrink: 0;
background: var(--ground-background); background: var(--color-card);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 12px; border-radius: 12px;
padding: 1.25rem 1.5rem; padding: 1.25rem 1.5rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
@@ -68,11 +68,11 @@
gap: 0.5rem; gap: 0.5rem;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
color: var(--text-color-secondary); color: var(--color-text-secondary);
i { i {
font-size: 0.875rem; font-size: 0.875rem;
color: var(--primary-color); color: var(--color-primary);
} }
.required { .required {
@@ -123,21 +123,21 @@
justify-content: center; justify-content: center;
padding: 3rem; padding: 3rem;
text-align: center; text-align: center;
background: var(--ground-background); background: var(--color-card);
border: 1px dashed var(--border-color); border: 1px dashed var(--color-border);
border-radius: 12px; border-radius: 12px;
h3 { h3 {
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
} }
p { p {
margin: 0; margin: 0;
font-size: 0.9rem; font-size: 0.9rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
max-width: 300px; max-width: 300px;
} }
} }
@@ -148,13 +148,13 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: linear-gradient(135deg, var(--primary-100), var(--primary-50)); background: linear-gradient(135deg, var(--color-primary-100), var(--color-primary-50));
border-radius: 50%; border-radius: 50%;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
i { i {
font-size: 2rem; font-size: 2rem;
color: var(--primary-color); color: var(--color-primary);
} }
&.warning { &.warning {
@@ -181,7 +181,7 @@
gap: 0.75rem; gap: 0.75rem;
margin-bottom: 1rem; margin-bottom: 1rem;
padding-bottom: 0.75rem; padding-bottom: 0.75rem;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
.results-count { .results-count {
display: flex; display: flex;
@@ -189,10 +189,10 @@
gap: 0.5rem; gap: 0.5rem;
font-size: 0.95rem; font-size: 0.95rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
i { i {
color: var(--primary-color); color: var(--color-primary);
} }
} }
@@ -201,7 +201,7 @@
align-items: center; align-items: center;
gap: 0.4rem; gap: 0.4rem;
font-size: 0.8rem; font-size: 0.8rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
i { i {
font-size: 0.8rem; font-size: 0.8rem;
@@ -224,11 +224,11 @@
height: 220px; height: 220px;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
background: var(--ground-background); background: var(--color-page);
border: 2px solid transparent; border: 2px solid transparent;
&:hover { &:hover {
border-color: var(--primary-color); border-color: var(--color-primary);
.cover-overlay { .cover-overlay {
opacity: 1; opacity: 1;
@@ -1,5 +1,5 @@
<ng-container *transloco="let t; prefix: 'metadata.manager'"> <ng-container *transloco="let t; prefix: 'metadata.manager'">
<div class="main-container enclosing-container"> <div class="main-container">
<div class="settings-header"> <div class="settings-header">
<h2 class="settings-title"> <h2 class="settings-title">
<i class="pi pi-sitemap"></i> <i class="pi pi-sitemap"></i>
@@ -11,7 +11,7 @@
} }
.description { .description {
color: var(--text-secondary-color); color: var(--color-text-secondary);
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
@@ -91,7 +91,7 @@
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
.count { .count {
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: 0.875rem; font-size: 0.875rem;
} }
} }
@@ -109,7 +109,7 @@
small { small {
display: block; display: block;
margin-top: 0.5rem; margin-top: 0.5rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
} }
} }
@@ -128,10 +128,6 @@
} }
} }
.enclosing-container {
background: var(--p-content-background);
}
.settings-header { .settings-header {
margin-top: 0.75rem; margin-top: 0.75rem;
flex-shrink: 0; flex-shrink: 0;
@@ -259,7 +255,8 @@
} }
.table-card { .table-card {
border: 1px solid rgb(128 128 128 / 20%); background: var(--color-card);
border: 1px solid var(--color-border);
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
display: flex; display: flex;
@@ -267,7 +264,15 @@
flex: 1; flex: 1;
min-height: 0; min-height: 0;
.p-datatable { ::ng-deep .p-datatable {
--p-datatable-header-background: var(--color-card);
--p-datatable-header-cell-background: var(--color-card);
--p-datatable-row-background: var(--color-card);
--p-datatable-footer-background: var(--color-card);
--p-datatable-footer-cell-background: var(--color-card);
--p-datatable-row-hover-background: var(--color-surface-hover);
--p-datatable-header-cell-hover-background: var(--color-surface-hover);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
@@ -353,7 +358,7 @@
.delete-info { .delete-info {
padding: 1rem; padding: 1rem;
background: var(--ground-background); background: var(--color-card);
border-radius: 8px; border-radius: 8px;
border: 1px solid rgb(128 128 128 / 20%); border: 1px solid rgb(128 128 128 / 20%);
@@ -398,7 +403,7 @@
.current-value { .current-value {
padding: 1rem; padding: 1rem;
background: var(--ground-background); background: var(--color-card);
border: 1px solid rgb(128 128 128 / 20%); border: 1px solid rgb(128 128 128 / 20%);
border-radius: 8px; border-radius: 8px;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
@@ -446,10 +451,10 @@
gap: 0.5rem; gap: 0.5rem;
padding: 0.75rem; padding: 0.75rem;
margin-top: 1rem; margin-top: 1rem;
border-left: 3px solid #f59e0b; border-left: 3px solid var(--color-warning);
border-top: 1px solid #f59e0b; border-top: 1px solid var(--color-warning);
border-bottom: 1px solid #f59e0b; border-bottom: 1px solid var(--color-warning);
border-right: 1px solid #f59e0b; border-right: 1px solid var(--color-warning);
border-radius: 4px; border-radius: 4px;
font-size: 0.875rem; font-size: 0.875rem;
@@ -10,15 +10,16 @@
min-width: 100%; min-width: 100%;
table-layout: auto; table-layout: auto;
border-collapse: collapse; border-collapse: collapse;
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: var(--card-border); border-radius: var(--radius-md);
} }
.table-header { .table-header {
padding: 0.375rem 1rem; padding: 0.375rem 1rem;
text-align: left; text-align: left;
font-weight: 600; font-weight: 600;
color: #d4d4d8; color: var(--color-text);
background: var(--color-page);
} }
.help-icon { .help-icon {
@@ -28,20 +29,22 @@
.metadata-table-cell { .metadata-table-cell {
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
color: var(--color-text);
} }
.metadata-table-cell-sm { .metadata-table-cell-sm {
padding: 0.375rem 1rem; padding: 0.375rem 1rem;
color: var(--color-text);
} }
.set-all-label { .set-all-label {
font-size: 0.875rem; font-size: 0.875rem;
color: #a1a1aa; color: var(--color-text-secondary);
font-style: italic; font-style: italic;
} }
.field-label { .field-label {
color: #e4e4e7; color: var(--color-text);
} }
.row-disabled { .row-disabled {
@@ -58,13 +61,13 @@
.section-title { .section-title {
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 600; font-weight: 600;
color: #d4d4d8; color: var(--color-text);
margin: 0; margin: 0;
} }
.section-description { .section-description {
font-size: 0.875rem; font-size: 0.875rem;
color: #a1a1aa; color: var(--color-text-secondary);
margin: 0; margin: 0;
} }
@@ -87,13 +90,14 @@
align-items: center; align-items: center;
gap: 0.75rem; gap: 0.75rem;
padding: 0.75rem; padding: 0.75rem;
border: 1px solid #52525b; border: 1px solid var(--color-border);
border-radius: 0.5rem; border-radius: 0.5rem;
background: var(--color-page);
} }
.field-card-label { .field-card-label {
font-size: 0.875rem; font-size: 0.875rem;
color: #d4d4d8; color: var(--color-text);
} }
// Footer row // Footer row
@@ -121,6 +125,7 @@
p { p {
margin: 0; margin: 0;
color: var(--color-text);
white-space: nowrap; white-space: nowrap;
} }
} }
@@ -2,7 +2,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1.25rem; gap: 1.25rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 8px; border-radius: 8px;
padding: 1.5rem; padding: 1.5rem;
@@ -23,11 +23,11 @@
gap: 0.5rem; gap: 0.5rem;
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
.pi { .pi {
color: var(--primary-color); color: var(--color-primary);
font-size: 1.125rem; font-size: 1.125rem;
} }
} }
@@ -61,8 +61,8 @@
.provider-group { .provider-group {
padding: 0.875rem 1rem; padding: 0.875rem 1rem;
border-radius: 6px; border-radius: 6px;
border-left: 3px solid var(--primary-color); border-left: 3px solid var(--color-primary);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-page);
@media (width <= 768px) { @media (width <= 768px) {
padding: 0.75rem; padding: 0.75rem;
@@ -79,7 +79,7 @@
} }
.group-icon { .group-icon {
color: var(--primary-color); color: var(--color-primary);
font-size: 0.875rem; font-size: 0.875rem;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -87,7 +87,7 @@
.group-label { .group-label {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
margin: 0; margin: 0;
} }
@@ -106,7 +106,7 @@
transition: background-color 0.15s ease; transition: background-color 0.15s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--primary-color) 8%, transparent 92%); background: color-mix(in srgb, var(--color-primary) 8%, transparent 92%);
} }
label { label {
@@ -114,7 +114,7 @@
font-size: 0.9375rem; font-size: 0.9375rem;
font-weight: 400; font-weight: 400;
user-select: none; user-select: none;
color: var(--text-color); color: var(--color-text);
margin: 0; margin: 0;
flex: 1; flex: 1;
} }
@@ -27,8 +27,8 @@
overflow-y: auto; overflow-y: auto;
min-height: 0; min-height: 0;
padding: 1.5rem; padding: 1.5rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
border-radius: 0 0 10px 10px; border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0 0 0 / 8%); box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
@@ -42,7 +42,7 @@
.book-list-container { .book-list-container {
max-height: 6rem; max-height: 6rem;
overflow: auto; overflow: auto;
border: 1px solid #6b7280; border: 1px solid var(--color-border);
border-radius: 0.25rem; border-radius: 0.25rem;
padding: 0.5rem; padding: 0.5rem;
font-size: 0.875rem; font-size: 0.875rem;
@@ -62,7 +62,7 @@
} }
.book-id { .book-id {
color: #9ca3af; color: var(--color-text-secondary);
} }
::ng-deep app-metadata-fetch-options { ::ng-deep app-metadata-fetch-options {
@@ -254,11 +254,11 @@
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
border-radius: 6px; border-radius: 6px;
border-left: 3px solid var(--p-primary-color); border-left: 3px solid var(--p-primary-color);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
transition: background 0.15s ease; transition: background 0.15s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: color-mix(in srgb, var(--color-card) 92%, var(--color-text) 8%);
} }
} }
@@ -27,7 +27,7 @@
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 800; font-weight: 800;
margin-bottom: 0.75rem; margin-bottom: 0.75rem;
background: linear-gradient(135deg, #fff, #e2e8f0, #3b82f6); background: linear-gradient(135deg, var(--color-text-strong), var(--color-text-secondary), var(--color-primary));
background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
letter-spacing: -0.02em; letter-spacing: -0.02em;
@@ -52,7 +52,7 @@
left: 12px; left: 12px;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
color: #94a3b8; color: var(--color-text-muted);
font-size: 0.9rem; font-size: 0.9rem;
z-index: 1; z-index: 1;
} }
@@ -84,15 +84,16 @@
width: 36px; width: 36px;
height: 36px; height: 36px;
border-radius: 8px; border-radius: 8px;
border: 1px solid color-mix(in srgb, var(--p-surface-500), transparent 50%); border: 1px solid color-mix(in srgb, var(--color-border), transparent 50%);
background: color-mix(in srgb, var(--p-surface-700), transparent 30%); background: color-mix(in srgb, var(--color-border), transparent 30%);
color: #94a3b8; color: var(--color-text-secondary);
cursor: pointer; cursor: pointer;
transition: all 0.2s ease; transition: all 0.2s ease;
&:hover { &:hover {
color: #e2e8f0; color: var(--color-text);
border-color: var(--p-primary-400); border-color: var(--color-primary);
background: var(--color-surface-hover);
} }
} }
@@ -106,7 +107,7 @@
.display-settings-label { .display-settings-label {
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 600; font-weight: 600;
color: #e2e8f0; color: var(--color-text);
} }
// Virtual scroller and grid // Virtual scroller and grid
@@ -135,12 +136,12 @@
.empty-icon { .empty-icon {
font-size: 3rem; font-size: 3rem;
color: #64748b; color: var(--color-text-muted);
margin-bottom: 1rem; margin-bottom: 1rem;
} }
p { p {
color: #94a3b8; color: var(--color-text-muted);
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
} }
@@ -7,8 +7,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border-radius: 12px; border-radius: 12px;
border: 1px solid color-mix(in srgb, var(--p-surface-500), transparent 60%); border: 1px solid color-mix(in srgb, var(--color-border), transparent 60%);
background: color-mix(in srgb, var(--p-surface-900), transparent 30%); background: color-mix(in srgb, var(--color-card), transparent 30%);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
@@ -149,7 +149,7 @@
.series-name { .series-name {
font-size: 0.85rem; font-size: 0.85rem;
font-weight: 700; font-weight: 700;
color: #e2e8f0; color: var(--color-text);
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -159,7 +159,7 @@
.series-authors { .series-authors {
font-size: 0.75rem; font-size: 0.75rem;
color: #94a3b8; color: var(--color-text-muted);
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -197,7 +197,7 @@
} }
&.progress-complete ::ng-deep .p-progressbar-value { &.progress-complete ::ng-deep .p-progressbar-value {
background: linear-gradient(90deg, #22c55e, #16a34a); background: linear-gradient(90deg, var(--color-green-500), var(--color-green-600));
} }
&.progress-incomplete ::ng-deep .p-progressbar-value { &.progress-incomplete ::ng-deep .p-progressbar-value {
@@ -207,7 +207,7 @@
.progress-label { .progress-label {
font-size: 0.8rem; font-size: 0.8rem;
color: #cbd5e1; color: var(--color-text-secondary);
white-space: nowrap; white-space: nowrap;
font-weight: 700; font-weight: 700;
letter-spacing: 0.02em; letter-spacing: 0.02em;
@@ -5,7 +5,7 @@
position: relative; position: relative;
overflow: hidden; overflow: hidden;
backdrop-filter: blur(20px); backdrop-filter: blur(20px);
border: color-mix(in srgb, var(--p-surface-500), transparent 50%) 1px solid; border: color-mix(in srgb, var(--color-border), transparent 50%) 1px solid;
} }
.series-scroller-title { .series-scroller-title {
@@ -14,7 +14,7 @@
font-weight: 800; font-weight: 800;
margin-bottom: 1rem; margin-bottom: 1rem;
padding: 0; padding: 0;
background: linear-gradient(135deg, #fff, #e2e8f0, #3b82f6); background: linear-gradient(135deg, var(--color-text-strong), var(--color-text-secondary), var(--color-primary));
background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
position: relative; position: relative;
@@ -28,7 +28,7 @@
left: 0; left: 0;
width: 80px; width: 80px;
height: 4px; height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--primary-color)); background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
border-radius: 2px; border-radius: 2px;
} }
} }
@@ -58,12 +58,11 @@
} }
p { p {
color: #e2e8f0; color: var(--color-text-secondary);
font-size: 1rem; font-size: 1rem;
font-weight: 500; font-weight: 500;
max-width: 400px; max-width: 400px;
line-height: 1.7; line-height: 1.7;
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
} }
} }
@@ -61,8 +61,8 @@
<strong>{{ t('kobo.twoWaySyncNote') }}</strong> <strong>{{ t('kobo.twoWaySyncNote') }}</strong>
</p> </p>
@if (syncForm.controls.twoWayProgressSync.value && !koboSettings.convertToKepub) { @if (syncForm.controls.twoWayProgressSync.value && !koboSettings.convertToKepub) {
<p class="setting-warning" role="status" aria-live="polite" aria-atomic="true"> <p class="setting-warning border-l-red-700 dark:border-l-red-300" role="status" aria-live="polite" aria-atomic="true">
<i class="pi pi-exclamation-triangle" aria-hidden="true"></i> <i class="pi pi-exclamation-triangle text-red-700 dark:text-red-300" aria-hidden="true"></i>
@if (isAdmin) { @if (isAdmin) {
{{ t('kobo.twoWaySyncKepubWarningAdmin') }} {{ t('kobo.twoWaySyncKepubWarningAdmin') }}
} @else { } @else {
@@ -51,7 +51,7 @@
padding: 3rem 2rem; padding: 3rem 2rem;
text-align: center; text-align: center;
color: var(--p-text-muted-color); color: var(--p-text-muted-color);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border-radius: 6px; border-radius: 6px;
.pi { .pi {
@@ -81,7 +81,7 @@
} }
.provider-item { .provider-item {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-content-border-color); border-left: 3px solid var(--p-content-border-color);
border-radius: 6px; border-radius: 6px;
@@ -89,7 +89,7 @@
transition: border-color 0.2s ease, background 0.2s ease; transition: border-color 0.2s ease, background 0.2s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: var(--color-card);
} }
&.is-default { &.is-default {
@@ -51,7 +51,7 @@
padding: 3rem 2rem; padding: 3rem 2rem;
text-align: center; text-align: center;
color: var(--p-text-muted-color); color: var(--p-text-muted-color);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border-radius: 6px; border-radius: 6px;
.pi { .pi {
@@ -81,7 +81,7 @@
} }
.recipient-item { .recipient-item {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-content-border-color); border-left: 3px solid var(--p-content-border-color);
border-radius: 6px; border-radius: 6px;
@@ -89,7 +89,7 @@
transition: border-color 0.2s ease, background 0.2s ease; transition: border-color 0.2s ease, background 0.2s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: var(--color-card);
} }
&.is-default { &.is-default {
@@ -11,10 +11,10 @@
</p> </p>
</div> </div>
<div class="warning-notice"> <div class="warning-notice border-l-red-700 dark:border-l-red-300">
<i class="pi pi-exclamation-triangle"></i> <i class="pi pi-exclamation-triangle text-red-700 dark:text-red-300"></i>
<div> <div>
<strong>{{ t('warning.title') }}</strong> {{ t('warning.text') }} <strong class="text-red-700 dark:text-red-300">{{ t('warning.title') }}</strong> {{ t('warning.text') }}
</div> </div>
</div> </div>
@@ -55,7 +55,7 @@
<i class="pi pi-eye"></i> <i class="pi pi-eye"></i>
{{ t('defaultPattern.preview') }} {{ t('defaultPattern.preview') }}
</span> </span>
<code class="preview-value">{{ generateDefaultPreview() }}</code> <code class="preview-value text-emerald-700 dark:text-emerald-300">{{ generateDefaultPreview() }}</code>
</div> </div>
</div> </div>
</div> </div>
@@ -120,7 +120,7 @@
<i class="pi pi-eye"></i> <i class="pi pi-eye"></i>
{{ t('libraryOverrides.preview') }} {{ t('libraryOverrides.preview') }}
</span> </span>
<code class="preview-value">{{ generateLibraryPreview(library) }}</code> <code class="preview-value text-emerald-700 dark:text-emerald-300">{{ generateLibraryPreview(library) }}</code>
</div> </div>
</div> </div>
</div> </div>
@@ -160,16 +160,16 @@
{{ t('placeholders.available') }} {{ t('placeholders.available') }}
</h4> </h4>
<div class="placeholder-list"> <div class="placeholder-list">
<div class="placeholder-item"><code>{{ '{title}' }}</code><span>{{ t('placeholders.title') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title}' }}</code><span>{{ t('placeholders.title') }}</span></div>
<div class="placeholder-item"><code>{{ '{subtitle}' }}</code><span>{{ t('placeholders.subtitle') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{subtitle}' }}</code><span>{{ t('placeholders.subtitle') }}</span></div>
<div class="placeholder-item"><code>{{ '{authors}' }}</code><span>{{ t('placeholders.authors') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{authors}' }}</code><span>{{ t('placeholders.authors') }}</span></div>
<div class="placeholder-item"><code>{{ '{year}' }}</code><span>{{ t('placeholders.year') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{year}' }}</code><span>{{ t('placeholders.year') }}</span></div>
<div class="placeholder-item"><code>{{ '{series}' }}</code><span>{{ t('placeholders.series') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{series}' }}</code><span>{{ t('placeholders.series') }}</span></div>
<div class="placeholder-item"><code>{{ '{seriesIndex}' }}</code><span>{{ t('placeholders.seriesIndex') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{seriesIndex}' }}</code><span>{{ t('placeholders.seriesIndex') }}</span></div>
<div class="placeholder-item"><code>{{ '{language}' }}</code><span>{{ t('placeholders.language') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{language}' }}</code><span>{{ t('placeholders.language') }}</span></div>
<div class="placeholder-item"><code>{{ '{publisher}' }}</code><span>{{ t('placeholders.publisher') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{publisher}' }}</code><span>{{ t('placeholders.publisher') }}</span></div>
<div class="placeholder-item"><code>{{ '{isbn}' }}</code><span>{{ t('placeholders.isbn') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{isbn}' }}</code><span>{{ t('placeholders.isbn') }}</span></div>
<div class="placeholder-item"><code>{{ '{currentFilename}' }}</code><span>{{ t('placeholders.currentFilename') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{currentFilename}' }}</code><span>{{ t('placeholders.currentFilename') }}</span></div>
</div> </div>
</div> </div>
@@ -183,14 +183,14 @@
<div class="example-block"> <div class="example-block">
<div class="example-pattern"> <div class="example-pattern">
<span class="pattern-prefix">{{ t('placeholders.pattern') }}</span> <span class="pattern-prefix">{{ t('placeholders.pattern') }}</span>
<code>{{ '{<{seriesIndex} - >{title}' }}</code> <code class="text-orange-700 dark:text-orange-300">{{ '{<{seriesIndex} - >{title}' }}</code>
</div> </div>
<div class="example-results"> <div class="example-results">
<div class="result-item"> <div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.withIndex') }}</span> <span class="result-prefix">{{ t('placeholders.withIndex') }}</span>
<code>01 - Dune</code> <code>01 - Dune</code>
</div> </div>
<div class="result-item"> <div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.without') }}</span> <span class="result-prefix">{{ t('placeholders.without') }}</span>
<code>Dune</code> <code>Dune</code>
</div> </div>
@@ -208,14 +208,14 @@
<div class="example-block"> <div class="example-block">
<div class="example-pattern"> <div class="example-pattern">
<span class="pattern-prefix">{{ t('placeholders.pattern') }}</span> <span class="pattern-prefix">{{ t('placeholders.pattern') }}</span>
<code>{{ '{<{series}|Standalone>/{title}' }}</code> <code class="text-orange-700 dark:text-orange-300">{{ '{<{series}|Standalone>/{title}' }}</code>
</div> </div>
<div class="example-results"> <div class="example-results">
<div class="result-item"> <div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.withSeries') }}</span> <span class="result-prefix">{{ t('placeholders.withSeries') }}</span>
<code>The Kingkiller Chronicle/The Name of the Wind</code> <code>The Kingkiller Chronicle/The Name of the Wind</code>
</div> </div>
<div class="result-item"> <div class="result-item text-emerald-700 dark:text-emerald-300">
<span class="result-prefix">{{ t('placeholders.withoutSeries') }}</span> <span class="result-prefix">{{ t('placeholders.withoutSeries') }}</span>
<code>Standalone/The Name of the Wind</code> <code>Standalone/The Name of the Wind</code>
</div> </div>
@@ -231,11 +231,11 @@
<p class="group-description" [innerHTML]="t('placeholders.modifiersDesc')"> <p class="group-description" [innerHTML]="t('placeholders.modifiersDesc')">
</p> </p>
<div class="placeholder-list"> <div class="placeholder-list">
<div class="placeholder-item"><code>{{ '{authors:first}' }}</code><span>{{ t('placeholders.modFirst') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{authors:first}' }}</code><span>{{ t('placeholders.modFirst') }}</span></div>
<div class="placeholder-item"><code>{{ '{authors:sort}' }}</code><span>{{ t('placeholders.modSort') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{authors:sort}' }}</code><span>{{ t('placeholders.modSort') }}</span></div>
<div class="placeholder-item"><code>{{ '{title:initial}' }}</code><span>{{ t('placeholders.modInitial') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title:initial}' }}</code><span>{{ t('placeholders.modInitial') }}</span></div>
<div class="placeholder-item"><code>{{ '{title:upper}' }}</code><span>{{ t('placeholders.modUpper') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title:upper}' }}</code><span>{{ t('placeholders.modUpper') }}</span></div>
<div class="placeholder-item"><code>{{ '{title:lower}' }}</code><span>{{ t('placeholders.modLower') }}</span></div> <div class="placeholder-item"><code class="text-orange-700 dark:text-orange-300">{{ '{title:lower}' }}</code><span>{{ t('placeholders.modLower') }}</span></div>
</div> </div>
</div> </div>
</div> </div>
@@ -256,9 +256,9 @@
<div class="section-body"> <div class="section-body">
<div class="examples-container"> <div class="examples-container">
<div class="metadata-reference"> <div class="metadata-reference">
<div class="metadata-panel metadata-panel-full"> <div class="metadata-panel metadata-panel-full border-l-emerald-500 dark:border-l-emerald-300">
<div class="metadata-panel-header"> <div class="metadata-panel-header">
<i class="pi pi-check-circle metadata-icon-full"></i> <i class="pi pi-check-circle metadata-icon-full text-emerald-700 dark:text-emerald-300"></i>
<span>{{ t('examples.fullMetadata') }}</span> <span>{{ t('examples.fullMetadata') }}</span>
</div> </div>
<div class="metadata-grid"> <div class="metadata-grid">
@@ -270,9 +270,9 @@
<span class="metadata-key">year</span><code class="metadata-val">2007</code> <span class="metadata-key">year</span><code class="metadata-val">2007</code>
</div> </div>
</div> </div>
<div class="metadata-panel metadata-panel-partial"> <div class="metadata-panel metadata-panel-partial border-l-orange-700 dark:border-l-orange-300">
<div class="metadata-panel-header"> <div class="metadata-panel-header">
<i class="pi pi-question-circle metadata-icon-partial"></i> <i class="pi pi-question-circle metadata-icon-partial text-orange-700 dark:text-orange-300"></i>
<span>{{ t('examples.partialMetadata') }}</span> <span>{{ t('examples.partialMetadata') }}</span>
</div> </div>
<div class="metadata-grid"> <div class="metadata-grid">
@@ -294,33 +294,33 @@
<div class="example-grid"> <div class="example-grid">
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.basicPattern') }}</span> <span class="pattern-label">{{ t('examples.basicPattern') }}</span>
<span class="pattern-col"><code>{{ '{authors} - {title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors} - {title}' }}</code></span>
<span class="result-col"><code>Patrick Rothfuss - The Name of the Wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>Patrick Rothfuss - The Name of the Wind.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.seriesInFolder') }}</span> <span class="pattern-label">{{ t('examples.seriesInFolder') }}</span>
<span class="pattern-col"><code>{{ '{authors}/{series}/{seriesIndex} - {title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors}/{series}/{seriesIndex} - {title}' }}</code></span>
<span class="result-col"><code>Patrick Rothfuss/The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>Patrick Rothfuss/The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.titleSubtitle') }}</span> <span class="pattern-label">{{ t('examples.titleSubtitle') }}</span>
<span class="pattern-col"><code>{{ '{title}: {subtitle}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title}: {subtitle}' }}</code></span>
<span class="result-col"><code>The Name of the Wind: Special Edition.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>The Name of the Wind: Special Edition.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.absolutePath') }}</span> <span class="pattern-label">{{ t('examples.absolutePath') }}</span>
<span class="pattern-col"><code>{{ '/{authors}/{title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '/{authors}/{title}' }}</code></span>
<span class="result-col"><code>/Patrick Rothfuss/The Name of the Wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>/Patrick Rothfuss/The Name of the Wind.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.folderOnly') }}</span> <span class="pattern-label">{{ t('examples.folderOnly') }}</span>
<span class="pattern-col"><code>{{ '{title}/' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title}/' }}</code></span>
<span class="result-col"><code>The Name of the Wind/name_of_the_wind_original.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>The Name of the Wind/name_of_the_wind_original.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.yearPrefix') }}</span> <span class="pattern-label">{{ t('examples.yearPrefix') }}</span>
<span class="pattern-col"><code>{{ '({year}) {title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '({year}) {title}' }}</code></span>
<span class="result-col"><code>(2007) The Name of the Wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>(2007) The Name of the Wind.epub</code></span>
</div> </div>
</div> </div>
</div> </div>
@@ -335,50 +335,50 @@
<div class="example-grid"> <div class="example-grid">
<div class="example-row-conditional"> <div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.optionalBlock') }}</span> <span class="pattern-label">{{ t('examples.optionalBlock') }}</span>
<span class="pattern-col"><code>{{ '<{seriesIndex}. >{title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{seriesIndex}. >{title}' }}</code></span>
<div class="result-col-dual"> <div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>01. The Name of the Wind.epub</code></span> <span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>01. The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span> <span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
</div> </div>
</div> </div>
<div class="example-row-conditional"> <div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.subtitleConditional') }}</span> <span class="pattern-label">{{ t('examples.subtitleConditional') }}</span>
<span class="pattern-col"><code>{{ '{title}<: {subtitle}>' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title}<: {subtitle}>' }}</code></span>
<div class="result-col-dual"> <div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Name of the Wind: Special Edition.epub</code></span> <span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Name of the Wind: Special Edition.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span> <span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
</div> </div>
</div> </div>
<div class="example-row-conditional"> <div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.multipleOptional') }}</span> <span class="pattern-label">{{ t('examples.multipleOptional') }}</span>
<span class="pattern-col"><code>{{ '{authors}/<{series}/><{seriesIndex}. >{title}< ({year})>' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors}/<{series}/><{seriesIndex}. >{title}< ({year})>' }}</code></span>
<div class="result-col-dual"> <div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>Patrick Rothfuss/The Kingkiller Chronicle/01. The Name of the Wind (2007).epub</code></span> <span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>Patrick Rothfuss/The Kingkiller Chronicle/01. The Name of the Wind (2007).epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Andy Weir/Project Hail Mary (2021).epub</code></span> <span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Andy Weir/Project Hail Mary (2021).epub</code></span>
</div> </div>
</div> </div>
<div class="example-row-conditional"> <div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.elseClause') }}</span> <span class="pattern-label">{{ t('examples.elseClause') }}</span>
<span class="pattern-col"><code>{{ '<{series}|Standalone>/{title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{series}|Standalone>/{title}' }}</code></span>
<div class="result-col-dual"> <div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span> <span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Standalone/Project Hail Mary.epub</code></span> <span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Standalone/Project Hail Mary.epub</code></span>
</div> </div>
</div> </div>
<div class="example-row-conditional"> <div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.elseClauseFallback') }}</span> <span class="pattern-label">{{ t('examples.elseClauseFallback') }}</span>
<span class="pattern-col"><code>{{ '<{series}/{seriesIndex} - {title}|{title}>' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{series}/{seriesIndex} - {title}|{title}>' }}</code></span>
<div class="result-col-dual"> <div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span> <span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/01 - The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span> <span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Project Hail Mary.epub</code></span>
</div> </div>
</div> </div>
<div class="example-row-conditional"> <div class="example-row-conditional">
<span class="pattern-label">{{ t('examples.elseWithModifier') }}</span> <span class="pattern-label">{{ t('examples.elseWithModifier') }}</span>
<span class="pattern-col"><code>{{ '<{series}|{authors:sort}>/{title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '<{series}|{authors:sort}>/{title}' }}</code></span>
<div class="result-col-dual"> <div class="result-col-dual">
<span class="result-with"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span> <span class="result-with text-emerald-700 dark:text-emerald-300"><i class="pi pi-check-circle"></i> <code>The Kingkiller Chronicle/The Name of the Wind.epub</code></span>
<span class="result-without"><i class="pi pi-question-circle"></i> <code>Weir, Andy/Project Hail Mary.epub</code></span> <span class="result-without text-orange-700 dark:text-orange-300"><i class="pi pi-question-circle"></i> <code>Weir, Andy/Project Hail Mary.epub</code></span>
</div> </div>
</div> </div>
</div> </div>
@@ -394,38 +394,38 @@
<div class="example-grid"> <div class="example-grid">
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.modifierSort') }}</span> <span class="pattern-label">{{ t('examples.modifierSort') }}</span>
<span class="pattern-col"><code>{{ '{authors:sort}/{title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:sort}/{title}' }}</code></span>
<span class="result-col"><code>Rothfuss, Patrick/The Name of the Wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>Rothfuss, Patrick/The Name of the Wind.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.modifierInitial') }}</span> <span class="pattern-label">{{ t('examples.modifierInitial') }}</span>
<span class="pattern-col"><code>{{ '{authors:initial}/{authors:sort}/{title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:initial}/{authors:sort}/{title}' }}</code></span>
<span class="result-col"><code>R/Rothfuss, Patrick/The Name of the Wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>R/Rothfuss, Patrick/The Name of the Wind.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.modFirst') }}</span> <span class="pattern-label">{{ t('examples.modFirst') }}</span>
<span class="pattern-col"><code>{{ '{authors:first}/{title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:first}/{title}' }}</code></span>
<span class="result-col"><code>Patrick Rothfuss/The Name of the Wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>Patrick Rothfuss/The Name of the Wind.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.modUpper') }}</span> <span class="pattern-label">{{ t('examples.modUpper') }}</span>
<span class="pattern-col"><code>{{ '{title:upper}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title:upper}' }}</code></span>
<span class="result-col"><code>THE NAME OF THE WIND.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>THE NAME OF THE WIND.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.modLower') }}</span> <span class="pattern-label">{{ t('examples.modLower') }}</span>
<span class="pattern-col"><code>{{ '{title:lower}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title:lower}' }}</code></span>
<span class="result-col"><code>the name of the wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>the name of the wind.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.letterFolder') }}</span> <span class="pattern-label">{{ t('examples.letterFolder') }}</span>
<span class="pattern-col"><code>{{ '{title:initial}/{authors}/{title}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{title:initial}/{authors}/{title}' }}</code></span>
<span class="result-col"><code>T/Patrick Rothfuss/The Name of the Wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>T/Patrick Rothfuss/The Name of the Wind.epub</code></span>
</div> </div>
<div class="example-row"> <div class="example-row">
<span class="pattern-label">{{ t('examples.combinedMods') }}</span> <span class="pattern-label">{{ t('examples.combinedMods') }}</span>
<span class="pattern-col"><code>{{ '{authors:sort} - {title:lower}' }}</code></span> <span class="pattern-col text-orange-700 dark:text-orange-300"><code>{{ '{authors:sort} - {title:lower}' }}</code></span>
<span class="result-col"><code>Rothfuss, Patrick - the name of the wind.epub</code></span> <span class="result-col text-emerald-700 dark:text-emerald-300"><code>Rothfuss, Patrick - the name of the wind.epub</code></span>
</div> </div>
</div> </div>
</div> </div>
@@ -53,7 +53,7 @@
padding: 3rem 2rem; padding: 3rem 2rem;
text-align: center; text-align: center;
color: var(--p-text-muted-color); color: var(--p-text-muted-color);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border-radius: 6px; border-radius: 6px;
.pi { .pi {
@@ -77,7 +77,7 @@
// Default pattern card // Default pattern card
.default-pattern-card { .default-pattern-card {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-primary-color); border-left: 3px solid var(--p-primary-color);
border-radius: 6px; border-radius: 6px;
@@ -141,7 +141,6 @@
} }
.preview-value { .preview-value {
color: var(--p-green-400);
font-size: settings.$settings-section-description-size; font-size: settings.$settings-section-description-size;
background: transparent; background: transparent;
padding: 0; padding: 0;
@@ -156,14 +155,14 @@
} }
.library-item { .library-item {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-content-border-color); border-left: 3px solid var(--p-content-border-color);
border-radius: 6px; border-radius: 6px;
transition: border-color 0.2s ease, background 0.2s ease; transition: border-color 0.2s ease, background 0.2s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: var(--color-card);
} }
&.has-pattern { &.has-pattern {
@@ -230,8 +229,8 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
padding: 0.125rem 0.5rem; padding: 0.125rem 0.5rem;
background: color-mix(in srgb, #6b7280 15%, transparent); background: color-mix(in srgb, var(--color-text-secondary) 15%, transparent);
color: #6b7280; color: var(--color-text-secondary);
border-radius: 12px; border-radius: 12px;
font-size: 0.625rem; font-size: 0.625rem;
font-weight: 700; font-weight: 700;
@@ -260,7 +259,7 @@
} }
.placeholder-group { .placeholder-group {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border-radius: 6px; border-radius: 6px;
padding: 1rem; padding: 1rem;
border-left: 3px solid var(--p-primary-color); border-left: 3px solid var(--p-primary-color);
@@ -292,7 +291,7 @@
margin: 0 0 0.75rem; margin: 0 0 0.75rem;
code { code {
color: var(--p-orange-400); color: var(--color-primary);
font-size: settings.$settings-description-size; font-size: settings.$settings-description-size;
} }
} }
@@ -310,7 +309,6 @@
font-size: settings.$settings-section-description-size; font-size: settings.$settings-section-description-size;
code { code {
color: var(--p-orange-400);
font-size: settings.$settings-description-size; font-size: settings.$settings-description-size;
min-width: 130px; min-width: 130px;
} }
@@ -321,7 +319,7 @@
} }
.example-block { .example-block {
background: color-mix(in srgb, var(--p-surface-800) 30%, transparent); background: color-mix(in srgb, var(--color-card) 30%, transparent);
border-radius: 4px; border-radius: 4px;
padding: 0.75rem; padding: 0.75rem;
} }
@@ -338,7 +336,6 @@
} }
code { code {
color: var(--p-orange-400);
font-size: settings.$settings-section-description-size; font-size: settings.$settings-section-description-size;
} }
} }
@@ -362,7 +359,6 @@
} }
code { code {
color: var(--p-green-400);
font-size: settings.$settings-description-size; font-size: settings.$settings-description-size;
} }
} }
@@ -386,18 +382,11 @@
} }
.metadata-panel { .metadata-panel {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
padding: 1rem 1.25rem; padding: 1rem 1.25rem;
border-radius: 6px; border-radius: 6px;
border-left: 3px solid var(--p-content-border-color); border-left: 3px solid var(--p-content-border-color);
&.metadata-panel-full {
border-left-color: var(--p-green-400);
}
&.metadata-panel-partial {
border-left-color: var(--p-orange-400);
}
} }
.metadata-panel-header { .metadata-panel-header {
@@ -416,14 +405,6 @@
} }
} }
.metadata-icon-full {
color: var(--p-green-400);
}
.metadata-icon-partial {
color: var(--p-orange-400);
}
.metadata-grid { .metadata-grid {
display: grid; display: grid;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr;
@@ -485,7 +466,7 @@
grid-template-columns: 130px 1fr 1fr; grid-template-columns: 130px 1fr 1fr;
gap: 0.75rem; gap: 0.75rem;
padding: 0.625rem 0.75rem; padding: 0.625rem 0.75rem;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border-radius: 4px; border-radius: 4px;
font-size: settings.$settings-section-description-size; font-size: settings.$settings-section-description-size;
align-items: center; align-items: center;
@@ -501,7 +482,7 @@
grid-template-columns: 130px 1fr 1fr; grid-template-columns: 130px 1fr 1fr;
gap: 0.75rem; gap: 0.75rem;
padding: 0.625rem 0.75rem; padding: 0.625rem 0.75rem;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border-radius: 4px; border-radius: 4px;
font-size: settings.$settings-section-description-size; font-size: settings.$settings-section-description-size;
align-items: start; align-items: start;
@@ -525,7 +506,6 @@
.pattern-col { .pattern-col {
code { code {
color: var(--p-orange-400);
font-size: settings.$settings-description-size; font-size: settings.$settings-description-size;
word-break: break-all; word-break: break-all;
} }
@@ -537,14 +517,13 @@
.result-col { .result-col {
code { code {
color: var(--p-green-400);
font-size: settings.$settings-description-size; font-size: settings.$settings-description-size;
word-break: break-all; word-break: break-all;
} }
@media (width <= 1024px) { @media (width <= 1024px) {
padding-left: 0.5rem; padding-left: 0.5rem;
border-left: 2px solid var(--p-green-400); border-left: 2px solid currentcolor;
} }
} }
@@ -563,27 +542,3 @@
margin-right: 0.25rem; margin-right: 0.25rem;
} }
} }
.result-with {
color: var(--p-green-400);
.pi {
color: var(--p-green-400);
}
code {
color: var(--p-green-400);
}
}
.result-without {
color: var(--p-orange-400);
.pi {
color: var(--p-orange-400);
}
code {
color: var(--p-orange-400);
}
}
@@ -2,7 +2,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1.25rem; gap: 1.25rem;
background: var(--card-background); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 8px; border-radius: 8px;
padding: 1.5rem; padding: 1.5rem;
@@ -23,11 +23,11 @@
gap: 0.5rem; gap: 0.5rem;
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
.pi { .pi {
color: var(--primary-color); color: var(--color-primary);
font-size: 1.125rem; font-size: 1.125rem;
} }
} }
@@ -53,8 +53,8 @@
.setting-item { .setting-item {
padding: 0.875rem 1rem; padding: 0.875rem 1rem;
border-radius: 6px; border-radius: 6px;
border-left: 3px solid var(--primary-color); border-left: 3px solid var(--color-primary);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
@media (width <= 768px) { @media (width <= 768px) {
padding: 0.75rem; padding: 0.75rem;
@@ -83,7 +83,7 @@
.action-label { .action-label {
font-size: 0.9375rem; font-size: 0.9375rem;
font-weight: 500; font-weight: 500;
color: var(--text-color); color: var(--color-text);
} }
.action-description { .action-description {
@@ -100,7 +100,7 @@
} }
.weights-icon { .weights-icon {
color: var(--primary-color); color: var(--color-primary);
font-size: 0.875rem; font-size: 0.875rem;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -108,7 +108,7 @@
.weights-label { .weights-label {
font-size: 0.9375rem; font-size: 0.9375rem;
font-weight: 500; font-weight: 500;
color: var(--text-color); color: var(--color-text);
margin: 0; margin: 0;
} }
@@ -141,14 +141,14 @@
justify-content: space-between; justify-content: space-between;
gap: 0.5rem; gap: 0.5rem;
padding: 0.5rem 0.625rem; padding: 0.5rem 0.625rem;
background: var(--ground-background); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 4px; border-radius: 4px;
.field-label { .field-label {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
color: var(--text-color); color: var(--color-text);
text-transform: capitalize; text-transform: capitalize;
} }
@@ -89,12 +89,12 @@
} }
.p-accordion-header { .p-accordion-header {
background: var(--p-surface-100); background: var(--color-card);
border: none; border: none;
border-radius: 0; border-radius: 0;
&:hover { &:hover {
background: var(--p-surface-200); background: var(--color-card);
} }
.p-accordion-header-content { .p-accordion-header-content {
@@ -154,7 +154,7 @@
.library-name { .library-name {
font-weight: settings.$settings-section-title-weight; font-weight: settings.$settings-section-title-weight;
color: var(--text-color); color: var(--color-text);
} }
.dot-separator { .dot-separator {
@@ -21,7 +21,7 @@
</div> </div>
} @else { } @else {
<div class="section-notice"> <div class="section-notice">
<div class="warning-notice"> <div class="warning-notice warning-notice-danger">
<i class="pi pi-exclamation-triangle"></i> <i class="pi pi-exclamation-triangle"></i>
<div> <div>
<strong>{{ t('networkWarningTitle') }}</strong> {{ t('networkWarning') }} <strong>{{ t('networkWarningTitle') }}</strong> {{ t('networkWarning') }}
@@ -26,6 +26,28 @@
@include settings.settings-warning-notice; @include settings.settings-warning-notice;
} }
.warning-notice-danger {
border-left-color: var(--color-red-700);
color: var(--color-red-700);
.pi,
strong {
color: var(--color-red-700);
}
}
:host-context(.dark) {
.warning-notice-danger {
border-left-color: var(--color-red-300);
color: var(--color-red-300);
.pi,
strong {
color: var(--color-red-300);
}
}
}
.info-notice { .info-notice {
@include settings.settings-info-notice; @include settings.settings-info-notice;
} }
@@ -65,13 +65,13 @@
justify-content: space-between; justify-content: space-between;
gap: 0.5rem; gap: 0.5rem;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
background: var(--ground-background); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 4px; border-radius: 4px;
transition: border-color 0.2s ease; transition: border-color 0.2s ease;
&:hover { &:hover {
border-color: var(--primary-color); border-color: var(--color-primary);
} }
} }
@@ -83,7 +83,7 @@
.provider-label { .provider-label {
font-weight: settings.$settings-label-weight; font-weight: settings.$settings-label-weight;
color: var(--text-color); color: var(--color-text);
font-size: settings.$settings-description-size; font-size: settings.$settings-description-size;
} }
@@ -103,14 +103,14 @@
padding: 0.25rem 0.375rem; padding: 0.25rem 0.375rem;
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 4px; border-radius: 4px;
background: var(--p-surface-800); background: var(--color-card);
color: var(--text-color); color: var(--color-text);
font-size: settings.$settings-description-size; font-size: settings.$settings-description-size;
text-align: center; text-align: center;
&:focus { &:focus {
outline: none; outline: none;
border-color: var(--primary-color); border-color: var(--color-primary);
} }
} }
@@ -123,7 +123,7 @@
font-style: italic; font-style: italic;
margin-top: 0.5rem; margin-top: 0.5rem;
padding: 0.75rem; padding: 0.75rem;
background: var(--ground-background); background: var(--color-card);
border-radius: 4px; border-radius: 4px;
.pi { .pi {
@@ -25,7 +25,7 @@
<div class="section-body"> <div class="section-body">
<div class="toggle-list"> <div class="toggle-list">
<div class="toggle-item" [class.is-active]="opdsEnabled"> <div class="toggle-item border-l-(--p-content-border-color) [&.is-active]:border-l-emerald-500 dark:[&.is-active]:border-l-emerald-300" [class.is-active]="opdsEnabled">
<div class="toggle-content"> <div class="toggle-content">
<div class="toggle-header"> <div class="toggle-header">
<div class="toggle-icon"> <div class="toggle-icon">
@@ -33,7 +33,7 @@
</div> </div>
<div class="toggle-info"> <div class="toggle-info">
<span class="toggle-label">{{ t('server.opdsLabel') }}</span> <span class="toggle-label">{{ t('server.opdsLabel') }}</span>
<span class="toggle-status" [class.active]="opdsEnabled"> <span class="toggle-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="opdsEnabled">
{{ opdsEnabled ? t('server.enabled') : t('server.disabled') }} {{ opdsEnabled ? t('server.enabled') : t('server.disabled') }}
</span> </span>
</div> </div>
@@ -49,7 +49,7 @@
</p-toggleswitch> </p-toggleswitch>
</div> </div>
<div class="toggle-item" [class.is-active]="komgaApiEnabled"> <div class="toggle-item border-l-(--p-content-border-color) [&.is-active]:border-l-emerald-500 dark:[&.is-active]:border-l-emerald-300" [class.is-active]="komgaApiEnabled">
<div class="toggle-content"> <div class="toggle-content">
<div class="toggle-header"> <div class="toggle-header">
<div class="toggle-icon"> <div class="toggle-icon">
@@ -57,7 +57,7 @@
</div> </div>
<div class="toggle-info"> <div class="toggle-info">
<span class="toggle-label">{{ t('server.komgaLabel') }}</span> <span class="toggle-label">{{ t('server.komgaLabel') }}</span>
<span class="toggle-status" [class.active]="komgaApiEnabled"> <span class="toggle-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="komgaApiEnabled">
{{ komgaApiEnabled ? t('server.enabled') : t('server.disabled') }} {{ komgaApiEnabled ? t('server.enabled') : t('server.disabled') }}
</span> </span>
</div> </div>
@@ -74,7 +74,7 @@
</div> </div>
@if (komgaApiEnabled) { @if (komgaApiEnabled) {
<div class="toggle-item sub-item" [class.is-active]="komgaGroupUnknown"> <div class="toggle-item sub-item border-l-orange-500 dark:border-l-orange-400 [&.is-active]:border-l-emerald-500 dark:[&.is-active]:border-l-emerald-300" [class.is-active]="komgaGroupUnknown">
<div class="toggle-content"> <div class="toggle-content">
<div class="toggle-header"> <div class="toggle-header">
<div class="toggle-icon sub-icon"> <div class="toggle-icon sub-icon">
@@ -82,7 +82,7 @@
</div> </div>
<div class="toggle-info"> <div class="toggle-info">
<span class="toggle-label">{{ t('server.groupUnknownLabel') }}</span> <span class="toggle-label">{{ t('server.groupUnknownLabel') }}</span>
<span class="toggle-status" [class.active]="komgaGroupUnknown"> <span class="toggle-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="komgaGroupUnknown">
{{ komgaGroupUnknown ? t('server.grouped') : t('server.individual') }} {{ komgaGroupUnknown ? t('server.grouped') : t('server.individual') }}
</span> </span>
</div> </div>
@@ -68,28 +68,20 @@
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
gap: 1rem; gap: 1rem;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-content-border-color); border-left-width: 3px;
border-left-style: solid;
border-radius: 6px; border-radius: 6px;
padding: 1rem; padding: 1rem;
transition: border-color 0.2s ease, background 0.2s ease; transition: border-color 0.2s ease, background 0.2s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: var(--color-card);
}
&.is-active {
border-left-color: var(--p-green-500);
} }
&.sub-item { &.sub-item {
margin-left: 1.5rem; margin-left: 1.5rem;
border-left-color: var(--p-orange-500);
&.is-active {
border-left-color: var(--p-green-500);
}
@media (width <= 600px) { @media (width <= 600px) {
margin-left: 0; margin-left: 0;
@@ -157,11 +149,6 @@
.toggle-status { .toggle-status {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
color: var(--p-text-muted-color);
&.active {
color: var(--p-green-400);
}
} }
.toggle-description { .toggle-description {
@@ -184,7 +171,7 @@
} }
.endpoint-item { .endpoint-item {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-primary-color); border-left: 3px solid var(--p-primary-color);
border-radius: 6px; border-radius: 6px;
@@ -262,7 +249,7 @@
padding: 3rem 2rem; padding: 3rem 2rem;
text-align: center; text-align: center;
color: var(--p-text-muted-color); color: var(--p-text-muted-color);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border-radius: 6px; border-radius: 6px;
.pi { .pi {
@@ -296,7 +283,7 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 1rem; gap: 1rem;
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-primary-color); border-left: 3px solid var(--p-primary-color);
border-radius: 6px; border-radius: 6px;
@@ -304,7 +291,7 @@
transition: background 0.2s ease; transition: background 0.2s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: var(--color-card);
} }
@media (width <= 600px) { @media (width <= 600px) {
@@ -457,7 +444,7 @@
gap: 1rem; gap: 1rem;
padding: 1.5rem; padding: 1.5rem;
border-radius: settings.$settings-card-border-radius; border-radius: settings.$settings-card-border-radius;
background: color-mix(in srgb, var(--ground-background) 85%, var(--p-red-600) 15%); background: color-mix(in srgb, var(--color-card) 85%, var(--p-red-600) 15%);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-red-500); border-left: 3px solid var(--p-red-500);
max-width: 500px; max-width: 500px;
@@ -52,19 +52,6 @@
&.action-item { &.action-item {
border-left-color: var(--p-orange-500); border-left-color: var(--p-orange-500);
background: color-mix(
in srgb,
var(--ground-background) 40%,
var(--p-surface-800) 60%
);
&:hover {
background: color-mix(
in srgb,
var(--ground-background) 20%,
var(--p-surface-800) 80%
);
}
} }
@media (width <= 768px) { @media (width <= 768px) {
@@ -97,7 +84,7 @@
.setting-value { .setting-value {
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
white-space: nowrap; white-space: nowrap;
} }
@@ -86,14 +86,14 @@
} }
.task-item { .task-item {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-content-border-color); border-left: 3px solid var(--p-content-border-color);
border-radius: 6px; border-radius: 6px;
transition: border-color 0.2s ease, background 0.2s ease; transition: border-color 0.2s ease, background 0.2s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: var(--color-surface-hover);
} }
&.is-running { &.is-running {
@@ -276,7 +276,7 @@
gap: 0.75rem; gap: 0.75rem;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0.75rem; padding: 0.75rem;
background: var(--p-surface-800); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 6px; border-radius: 6px;
@@ -317,7 +317,7 @@
flex-direction: column; flex-direction: column;
gap: 0.5rem; gap: 0.5rem;
padding: 0.25rem 0.5rem; padding: 0.25rem 0.5rem;
background: var(--p-surface-800); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 6px; border-radius: 6px;
} }
@@ -343,10 +343,10 @@
font-family: 'SF Mono', Monaco, 'Courier New', monospace; font-family: 'SF Mono', Monaco, 'Courier New', monospace;
font-size: 0.75rem; font-size: 0.75rem;
color: var(--p-primary-color); color: var(--p-primary-color);
background: var(--p-surface-900); background: var(--color-card);
padding: 0.25rem 0.5rem; padding: 0.25rem 0.5rem;
border-radius: 4px; border-radius: 4px;
border: 1px solid var(--p-surface-700); border: 1px solid var(--color-border);
white-space: nowrap; white-space: nowrap;
} }
@@ -373,10 +373,10 @@
font-family: 'SF Mono', Monaco, 'Courier New', monospace; font-family: 'SF Mono', Monaco, 'Courier New', monospace;
font-size: 0.75rem; font-size: 0.75rem;
color: var(--p-text-color); color: var(--p-text-color);
background: var(--p-surface-900); background: var(--color-card);
padding: 0.25rem 0.5rem; padding: 0.25rem 0.5rem;
border-radius: 4px; border-radius: 4px;
border: 1px solid var(--p-surface-700); border: 1px solid var(--color-border);
outline: none; outline: none;
transition: border-color 0.2s; transition: border-color 0.2s;
@@ -416,7 +416,7 @@
// Task Progress (Running State) // Task Progress (Running State)
.task-progress { .task-progress {
padding: 1rem; padding: 1rem;
background: var(--p-surface-800); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
@@ -60,11 +60,13 @@
<div class="user-identity"> <div class="user-identity">
<div class="user-name-row"> <div class="user-name-row">
<span class="username">{{ user.username }}</span> <span class="username">{{ user.username }}</span>
<span class="user-type-badge" [attr.data-type]="user.provisioningMethod || 'LOCAL'"> <span
class="user-type-badge"
[attr.data-type]="user.provisioningMethod || 'LOCAL'">
{{ (user.provisioningMethod || 'LOCAL') | lowercase | titlecase }} {{ (user.provisioningMethod || 'LOCAL') | lowercase | titlecase }}
</span> </span>
@if (user.permissions.admin) { @if (user.permissions.admin) {
<span class="admin-badge"> <span class="admin-badge bg-emerald-500/15 text-emerald-700 dark:text-emerald-300">
<i class="pi pi-shield"></i> <i class="pi pi-shield"></i>
{{ t('admin') }} {{ t('admin') }}
</span> </span>
@@ -67,7 +67,7 @@
padding: 3rem 2rem; padding: 3rem 2rem;
text-align: center; text-align: center;
color: var(--p-text-muted-color); color: var(--p-text-muted-color);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border-radius: 6px; border-radius: 6px;
.pi { .pi {
@@ -97,18 +97,18 @@
} }
.user-card { .user-card {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-content-border-color); border-left: 3px solid var(--p-content-border-color);
border-radius: 6px; border-radius: 6px;
transition: border-color 0.2s ease, background 0.2s ease; transition: border-color 0.2s ease, background 0.2s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: var(--color-card);
} }
&.is-admin { &.is-admin {
border-left-color: #10b981; border-left-color: var(--color-emerald-500);
} }
&.is-expanded { &.is-expanded {
@@ -156,7 +156,7 @@
flex-shrink: 0; flex-shrink: 0;
&:hover { &:hover {
background: var(--p-surface-100); background: var(--color-card);
color: var(--p-primary-color); color: var(--p-primary-color);
} }
@@ -207,16 +207,22 @@
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.025em; letter-spacing: 0.025em;
&[data-type="LOCAL"] { &[data-type='LOCAL'] {
color: #3b82f6; background: color-mix(in srgb, var(--color-blue-500) 15%, transparent);
background: color-mix(in srgb, #3b82f6 15%, transparent); border-color: var(--color-blue-500);
border-color: #3b82f6; color: var(--color-blue-700);
} }
&[data-type="OIDC"] { &[data-type='OIDC'] {
color: #8b5cf6; background: color-mix(in srgb, var(--color-violet-500) 15%, transparent);
background: color-mix(in srgb, #8b5cf6 15%, transparent); border-color: var(--color-violet-500);
border-color: #8b5cf6; color: var(--color-violet-700);
}
&[data-type='REMOTE'] {
background: color-mix(in srgb, var(--color-teal-500) 15%, transparent);
border-color: var(--color-teal-500);
color: var(--color-teal-700);
} }
} }
@@ -225,8 +231,6 @@
align-items: center; align-items: center;
gap: 0.25rem; gap: 0.25rem;
padding: 0.125rem 0.5rem; padding: 0.125rem 0.5rem;
background: color-mix(in srgb, #10b981 15%, transparent);
color: #10b981;
border-radius: 12px; border-radius: 12px;
font-size: 0.625rem; font-size: 0.625rem;
font-weight: 700; font-weight: 700;
@@ -276,36 +280,70 @@
border-radius: 16px; border-radius: 16px;
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 600; font-weight: 600;
background: var(--p-surface-100); border-width: 1px;
border: 1px solid var(--p-content-border-color); border-style: solid;
transition: all 0.2s; transition: all 0.2s;
.pi { .pi {
font-size: 0.75rem; font-size: 0.75rem;
} }
&[data-level="none"] { &[data-level='none'] {
background: color-mix(in srgb, #6b7280 15%, transparent); background: color-mix(in srgb, var(--color-gray-500) 15%, transparent);
border-color: #6b7280; border-color: var(--color-gray-500);
color: #6b7280; color: var(--color-gray-700);
} }
&[data-level="low"] { &[data-level='low'] {
background: color-mix(in srgb, #ef4444 15%, transparent); background: color-mix(in srgb, var(--color-red-500) 15%, transparent);
border-color: #ef4444; border-color: var(--color-red-500);
color: #ef4444; color: var(--color-red-700);
} }
&[data-level="medium"] { &[data-level='medium'] {
background: color-mix(in srgb, #f59e0b 15%, transparent); background: color-mix(in srgb, var(--color-amber-500) 15%, transparent);
border-color: #f59e0b; border-color: var(--color-amber-500);
color: #f59e0b; color: var(--color-amber-700);
} }
&[data-level="high"] { &[data-level='high'] {
background: color-mix(in srgb, #10b981 15%, transparent); background: color-mix(in srgb, var(--color-emerald-500) 15%, transparent);
border-color: #10b981; border-color: var(--color-emerald-500);
color: #10b981; color: var(--color-emerald-700);
}
}
:host-context(.dark) {
.user-type-badge {
&[data-type='LOCAL'] {
color: var(--color-blue-300);
}
&[data-type='OIDC'] {
color: var(--color-violet-300);
}
&[data-type='REMOTE'] {
color: var(--color-teal-300);
}
}
.permission-badge {
&[data-level='none'] {
color: var(--color-gray-300);
}
&[data-level='low'] {
color: var(--color-red-300);
}
&[data-level='medium'] {
color: var(--color-amber-300);
}
&[data-level='high'] {
color: var(--color-emerald-300);
}
} }
} }
@@ -544,7 +582,7 @@
color: var(--p-text-muted-color); color: var(--p-text-muted-color);
&:hover { &:hover {
background: var(--p-surface-100); background: var(--color-card);
color: var(--p-text-color); color: var(--p-text-color);
} }
} }
@@ -614,11 +652,11 @@
align-items: flex-start; align-items: flex-start;
gap: 0.75rem; gap: 0.75rem;
padding: 0.875rem 1rem; padding: 0.875rem 1rem;
background: color-mix(in srgb, #ef4444 12%, var(--p-content-background)); background: color-mix(in srgb, var(--color-red-500) 12%, var(--p-content-background));
border: 1px solid color-mix(in srgb, #ef4444 30%, transparent); border: 1px solid color-mix(in srgb, var(--color-red-500) 30%, transparent);
border-left: 3px solid #ef4444; border-left: 3px solid var(--color-red-500);
border-radius: 6px; border-radius: 6px;
color: #ef4444; color: var(--color-red-500);
font-size: settings.$settings-section-description-size; font-size: settings.$settings-section-description-size;
font-weight: 500; font-weight: 500;
@@ -653,7 +691,7 @@
background: transparent; background: transparent;
&:hover { &:hover {
background: var(--p-surface-100); background: var(--color-card);
} }
} }
@@ -22,6 +22,89 @@
</div> </div>
<div class="form-container"> <div class="form-container">
<div class="form-section preferences-section">
<h3 class="section-title">
<i class="pi pi-palette" aria-hidden="true"></i>
{{ 'settingsView.theme.sectionTitle' | transloco }}
</h3>
<div class="form-field">
<label class="field-label" for="app-appearance">{{ 'layout.theme.appearance' | transloco }}</label>
<p-select
inputId="app-appearance"
[options]="appearanceOptions()"
[ngModel]="selectedAppearancePreference()"
(ngModelChange)="updateAppearancePreference($event)"
optionLabel="label"
optionValue="value"
appendTo="body"
class="preference-select">
</p-select>
</div>
<div class="form-field">
<label class="field-label" for="app-theme">{{ 'layout.theme.theme' | transloco }}</label>
<p-select
inputId="app-theme"
[options]="themeOptions()"
[ngModel]="selectedThemePreference()"
(ngModelChange)="updateThemePreference($event)"
optionLabel="label"
optionValue="value"
appendTo="body"
class="preference-select">
<ng-template #selectedItem let-option>
@if (option) {
<span class="inline-flex items-center gap-2.5 min-w-0">
@if (option.value !== 'custom') {
<span
class="w-3.5 h-3.5 rounded-full shrink-0 ring-1 ring-black/15 ring-inset bg-(--color-primary-500)"
[attr.data-app-theme]="option.value"
aria-hidden="true">
</span>
}
<span>{{ option.label }}</span>
</span>
}
</ng-template>
<ng-template #item let-option>
<span class="inline-flex items-center gap-2.5 min-w-0">
@if (option.value !== 'custom') {
<span
class="w-3.5 h-3.5 rounded-full shrink-0 ring-1 ring-black/15 ring-inset bg-(--color-primary-500)"
[attr.data-app-theme]="option.value"
aria-hidden="true">
</span>
}
<span>{{ option.label }}</span>
</span>
</ng-template>
</p-select>
</div>
@if (selectedThemePreference() === 'custom') {
<fieldset class="form-field">
<legend class="field-label">{{ 'layout.theme.customPrimary' | transloco }}</legend>
<div class="custom-primary-card">
<div class="custom-primary-options">
@for (palette of customPrimaryOptions; track palette) {
<button
type="button"
[class]="'w-7 h-7 rounded-full cursor-pointer shadow-[inset_0_0_0_1px_rgb(0_0_0_/_0.1)] dark:shadow-[inset_0_0_0_1px_rgb(255_255_255_/_0.1)] ' + (palette === selectedCustomPrimary() ? 'ring-1 ring-black dark:ring-white' : '')"
[style.background]="'var(--color-' + palette + '-500)'"
[attr.aria-label]="palette"
[attr.aria-pressed]="palette === selectedCustomPrimary()"
(click)="updateCustomPrimary(palette)">
</button>
}
</div>
</div>
</fieldset>
}
</div>
<div class="gradient-divider"></div>
<div class="form-section preferences-section"> <div class="form-section preferences-section">
<h3 class="section-title"> <h3 class="section-title">
<i class="pi pi-language" aria-hidden="true"></i> <i class="pi pi-language" aria-hidden="true"></i>
@@ -29,64 +112,18 @@
</h3> </h3>
<p-select <p-select
size="small"
[options]="languageOptions" [options]="languageOptions"
[ngModel]="activeLang()" [ngModel]="activeLang()"
(ngModelChange)="onLanguageChange($event)" (ngModelChange)="onLanguageChange($event)"
optionLabel="label" optionLabel="label"
optionValue="value" optionValue="value"
appendTo="body" appendTo="body"
class="language-select"> class="preference-select">
</p-select> </p-select>
</div> </div>
<div class="gradient-divider"></div> <div class="gradient-divider"></div>
<div class="form-section preferences-section">
<div class="preference-group">
<h3 class="section-title">
<i class="pi pi-palette" aria-hidden="true"></i>
{{ 'settingsView.theme.sectionTitle' | transloco }}
</h3>
<div class="theme-row">
<span class="theme-row-label">{{ 'layout.theme.primary' | transloco }}</span>
<div class="color-swatches">
@for (primaryColor of primaryColors; track primaryColor.name) {
<button
type="button"
[title]="primaryColor.name"
[attr.aria-label]="primaryColor.name"
[attr.aria-pressed]="primaryColor.name === selectedPrimaryColor()"
(click)="updateThemeColor($event, 'primary', primaryColor)"
[ngClass]="{ 'active-color': primaryColor.name === selectedPrimaryColor() }"
[style]="{ 'background-color': primaryColor.name === 'noir' ? 'var(--text-color)' : primaryColor.palette['500'] || 'transparent' }">
</button>
}
</div>
</div>
<div class="theme-row">
<span class="theme-row-label">{{ 'layout.theme.surface' | transloco }}</span>
<div class="color-swatches">
@for (surface of surfaces; track surface.name) {
<button
type="button"
[title]="surface.name"
[attr.aria-label]="surface.name"
[attr.aria-pressed]="selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : surface.name === 'zinc'"
(click)="updateThemeColor($event, 'surface', surface)"
[ngClass]="{ 'active-color': selectedSurfaceColor() ? selectedSurfaceColor() === surface.name : surface.name === 'zinc' }"
[style]="{ 'background-color': surface.name === 'noir' ? 'var(--text-color)' : surface.palette['500'] }">
</button>
}
</div>
</div>
</div>
</div>
<div class="gradient-divider"></div>
<div class="form-section"> <div class="form-section">
<h3 class="section-title"> <h3 class="section-title">
<i class="pi pi-id-card"></i> <i class="pi pi-id-card"></i>
@@ -26,8 +26,8 @@
flex-direction: column; flex-direction: column;
gap: 2rem; gap: 2rem;
padding: 2rem; padding: 2rem;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-top: none; border-top: none;
border-radius: 0 0 10px 10px; border-radius: 0 0 10px 10px;
box-shadow: 0 2px 6px rgb(0 0 0 / 8%); box-shadow: 0 2px 6px rgb(0 0 0 / 8%);
@@ -52,10 +52,10 @@
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
i { i {
color: var(--primary-color); color: var(--color-primary);
font-size: 1.125rem; font-size: 1.125rem;
} }
} }
@@ -71,56 +71,8 @@
gap: 1rem; gap: 1rem;
} }
.language-select { .preference-select {
width: 11rem; width: 100%;
max-width: 100%;
min-width: 0;
}
.preference-group {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.theme-row {
display: flex;
flex-direction: column;
gap: 0.625rem;
padding: 0.75rem;
background: var(--ground-background);
border-radius: 8px;
box-shadow: inset 0 0 0 1px var(--border-color);
}
.theme-row-label {
color: var(--text-color-secondary);
font-size: var(--text-sm);
font-weight: 500;
line-height: 1.25rem;
}
.color-swatches {
display: flex;
flex-wrap: wrap;
gap: 0.375rem;
min-width: 0;
button {
width: 1.5rem;
height: 1.5rem;
padding: 0;
border: 0;
border-radius: 50%;
cursor: pointer;
outline: transparent solid 2px;
outline-offset: 1px;
&:focus-visible,
&.active-color {
outline-color: var(--primary-color);
}
}
} }
.form-field { .form-field {
@@ -131,16 +83,16 @@
.field-label { .field-label {
font-size: 0.9rem; font-size: 0.9rem;
font-weight: 500; font-weight: 500;
color: var(--text-color); color: var(--color-text);
} }
.field-input { .field-input {
width: 100%; width: 100%;
&.p-inputtext:disabled { &.p-inputtext:disabled {
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%) !important; background: var(--color-card) !important;
color: var(--text-color-secondary); color: var(--color-text-secondary);
-webkit-text-fill-color: var(--text-color-secondary); -webkit-text-fill-color: var(--color-text-secondary);
opacity: 1; opacity: 1;
cursor: not-allowed; cursor: not-allowed;
} }
@@ -160,10 +112,10 @@
.field-value { .field-value {
font-size: 1rem; font-size: 1rem;
color: var(--text-color); color: var(--color-text);
padding: 0.75rem; padding: 0.75rem;
background: var(--ground-background); background: var(--color-card);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 6px; border-radius: 6px;
margin: 0; margin: 0;
} }
@@ -172,7 +124,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.375rem;
color: #ef4444; color: var(--color-red-500);
font-size: 0.875rem; font-size: 0.875rem;
margin-top: -0.25rem; margin-top: -0.25rem;
@@ -182,6 +134,26 @@
} }
} }
fieldset.form-field {
min-width: 0;
margin: 0;
padding: 0;
border: 0;
}
.custom-primary-card {
padding: 0.75rem;
background: var(--color-card);
border-radius: 6px;
box-shadow: inset 0 0 0 1px var(--color-border);
}
.custom-primary-options {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.edit-actions { .edit-actions {
margin-top: 0.5rem; margin-top: 0.5rem;
@@ -205,17 +177,11 @@
.loading-icon { .loading-icon {
font-size: 2rem; font-size: 2rem;
color: var(--primary-color); color: var(--color-primary);
} }
p { p {
font-size: 1rem; font-size: 1rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
}
}
@media #{variables.$mobile-shell-media-query} {
.language-select {
width: 100%;
} }
} }
@@ -1,4 +1,3 @@
import {NgClass} from '@angular/common';
import {Component, DestroyRef, computed, effect, inject} from '@angular/core'; import {Component, DestroyRef, computed, effect, inject} from '@angular/core';
import {Button} from 'primeng/button'; import {Button} from 'primeng/button';
import {AbstractControl, FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, ValidationErrors, ValidatorFn, Validators} from '@angular/forms'; import {AbstractControl, FormBuilder, FormGroup, FormsModule, ReactiveFormsModule, ValidationErrors, ValidatorFn, Validators} from '@angular/forms';
@@ -13,14 +12,14 @@ import {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';
import {AVAILABLE_LANGS, LANG_LABELS} from '../../../core/config/transloco-loader'; import {AVAILABLE_LANGS, LANG_LABELS} from '../../../core/config/transloco-loader';
import {LANG_STORAGE_KEY} from '../../../core/config/language-initializer'; import {LANG_STORAGE_KEY} from '../../../core/config/language-initializer';
import {AppConfigService} from '../../../shared/service/app-config.service'; import {AppConfigService} from '../../../shared/service/app-config.service';
import Aura from '../../../shared/layout/theme-palette-extend'; import {
AppearancePreference,
type ColorPalette = Record<string, string>; AppTheme,
CUSTOM_PRIMARY_OPTIONS,
interface Palette { CustomPrimary,
name: string; DEFAULT_APP_THEME,
palette: ColorPalette; DEFAULT_CUSTOM_PRIMARY,
} } from '../../../shared/model/app-state.model';
export const passwordMatchValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => { export const passwordMatchValidator: ValidatorFn = (control: AbstractControl): ValidationErrors | null => {
const newPassword = control.get('newPassword'); const newPassword = control.get('newPassword');
@@ -42,7 +41,6 @@ export const passwordMatchValidator: ValidatorFn = (control: AbstractControl): V
InputText, InputText,
Password, Password,
Select, Select,
NgClass,
TranslocoDirective, TranslocoDirective,
TranslocoPipe, TranslocoPipe,
], ],
@@ -68,10 +66,27 @@ export class UserProfileDialogComponent {
private readonly t = inject(TranslocoService); private readonly t = inject(TranslocoService);
private readonly destroyRef = inject(DestroyRef); private readonly destroyRef = inject(DestroyRef);
protected readonly activeLang = toSignal(this.t.langChanges$, {initialValue: this.t.getActiveLang()}); protected readonly activeLang = toSignal(this.t.langChanges$, {initialValue: this.t.getActiveLang()});
protected readonly selectedPrimaryColor = computed(() => this.configService.appState().primary); protected readonly selectedThemePreference = computed(() => this.configService.appState().themePreference ?? DEFAULT_APP_THEME);
protected readonly selectedSurfaceColor = computed(() => this.configService.appState().surface); protected readonly selectedAppearancePreference = computed(() => this.configService.appState().appearancePreference ?? 'system');
protected readonly surfaces = this.configService.surfaces; protected readonly selectedCustomPrimary = computed<CustomPrimary>(
protected readonly primaryColors = this.getPrimaryColors(); () => this.configService.appState().customPrimary ?? DEFAULT_CUSTOM_PRIMARY,
);
protected readonly customPrimaryOptions = CUSTOM_PRIMARY_OPTIONS;
protected readonly themeOptions = computed(() => {
this.activeLang();
return this.configService.themes.map((theme) => ({
value: theme.name,
label: this.t.translate(theme.labelKey),
}));
});
protected readonly appearanceOptions = computed(() => {
this.activeLang();
return [
{value: 'light' as AppearancePreference, label: this.t.translate('layout.theme.light')},
{value: 'dark' as AppearancePreference, label: this.t.translate('layout.theme.dark')},
{value: 'system' as AppearancePreference, label: this.t.translate('layout.theme.system')},
];
});
constructor() { constructor() {
this.changePasswordForm = this.fb.group( this.changePasswordForm = this.fb.group(
@@ -119,31 +134,16 @@ export class UserProfileDialogComponent {
}); });
} }
updateThemeColor(event: Event, type: 'primary' | 'surface', color: { name: string; palette?: ColorPalette }): void { updateThemePreference(themePreference: AppTheme): void {
this.configService.appState.update((state) => ({ this.configService.setThemePreference(themePreference);
...state,
[type]: color.name,
}));
event.stopPropagation();
} }
private getPrimaryColors(): Palette[] { updateCustomPrimary(customPrimary: CustomPrimary): void {
const presetPalette = (Aura.primitive ?? {}) as Record<string, ColorPalette>; this.configService.setCustomPrimary(customPrimary);
const colors = [ }
'orange', 'amber', 'yellow', 'lime', 'green', 'emerald',
'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', updateAppearancePreference(appearancePreference: AppearancePreference): void {
'purple', 'fuchsia', 'pink', 'rose', 'red', this.configService.setAppearancePreference(appearancePreference);
'coralSunset', 'roseBlush', 'melonBlush', 'cottonCandy',
'apricotSunrise', 'antiqueBronze', 'butteryYellow', 'vanillaCream',
'citrusMint', 'freshMint', 'sagePearl', 'skyBlue', 'periwinkleCream',
'pastelRoyalBlue', 'lavenderDream', 'dustyNeutral',
];
return [{name: 'noir', palette: {}}].concat(
colors.map(name => ({
name,
palette: presetPalette[name] ?? {},
})),
);
} }
updateProfile(): void { updateProfile(): void {
@@ -9,7 +9,7 @@
} }
.header-card { .header-card {
background: var(--card-background); background: var(--color-card);
border-radius: 8px; border-radius: 8px;
padding: 25px; padding: 25px;
margin-bottom: 30px; margin-bottom: 30px;
@@ -45,7 +45,7 @@
} }
label { label {
color: var(--text-color, #fff); color: var(--color-text);
font-weight: 500; font-weight: 500;
white-space: nowrap; white-space: nowrap;
font-size: 1.15rem; font-size: 1.15rem;
@@ -57,32 +57,32 @@
align-items: center; align-items: center;
margin-top: 8px; margin-top: 8px;
font-size: 0.95rem; font-size: 0.95rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
flex-wrap: wrap; flex-wrap: wrap;
.total-item { .total-item {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 8px; gap: 8px;
background: rgb(255 255 255 / 2%); background: var(--color-page);
padding: 6px 10px; padding: 6px 10px;
border-radius: 6px; border-radius: 6px;
border: 1px solid rgb(255 255 255 / 4%); border: 1px solid var(--color-border);
} }
.pi { .pi {
font-size: 1.35rem; font-size: 1.35rem;
color: var(--primary-color, #80bdff); color: var(--color-primary);
} }
.total-label { .total-label {
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: 0.9rem; font-size: 0.9rem;
white-space: nowrap; white-space: nowrap;
} }
.total-value { .total-value {
color: var(--text-color, #fff); color: var(--color-text);
font-weight: 600; font-weight: 600;
margin-left: 4px; margin-left: 4px;
font-size: 1.35rem; font-size: 1.35rem;
@@ -104,10 +104,10 @@
} }
.config-modal { .config-modal {
background: var(--card-background, rgb(30 30 30 / 95%)); background: var(--color-card);
border-radius: 12px; border-radius: 12px;
box-shadow: 0 20px 40px rgb(0 0 0 / 40%); box-shadow: 0 20px 40px rgb(0 0 0 / 40%);
border: 1px solid rgb(255 255 255 / 15%); border: 1px solid var(--color-border);
width: 100%; width: 100%;
max-width: 800px; max-width: 800px;
max-height: 80vh; max-height: 80vh;
@@ -120,11 +120,11 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 20px 25px; padding: 20px 25px;
border-bottom: 1px solid rgb(255 255 255 / 10%); border-bottom: 1px solid var(--color-border);
background: var(--ground-background, rgb(40 40 40 / 80%)); background: var(--color-card);
h3 { h3 {
color: var(--text-color, #fff); color: var(--color-text);
font-weight: 500; font-weight: 500;
font-size: 1.2rem; font-size: 1.2rem;
margin: 0; margin: 0;
@@ -133,19 +133,19 @@
gap: 10px; gap: 10px;
.pi { .pi {
color: var(--primary-color, #80bdff); color: var(--color-primary);
font-size: 1.1rem; font-size: 1.1rem;
} }
} }
.close-btn { .close-btn {
background: transparent; background: transparent;
border: 1px solid rgb(255 255 255 / 20%); border: 1px solid var(--control-border);
color: var(--text-color, #fff); color: var(--color-text);
padding: 8px; padding: 8px;
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; transition: background 0.3s ease, border-color 0.3s ease;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -153,8 +153,8 @@
height: 36px; height: 36px;
&:hover { &:hover {
background: rgb(255 255 255 / 10%); background: var(--control-bg-hover);
border-color: rgb(255 255 255 / 30%); border-color: var(--control-border-hover);
} }
.pi { .pi {
@@ -167,60 +167,60 @@
display: flex; display: flex;
gap: 12px; gap: 12px;
padding: 20px 25px; padding: 20px 25px;
border-bottom: 1px solid rgb(255 255 255 / 10%); border-bottom: 1px solid var(--color-border);
background: var(--ground-background, rgb(35 35 35 / 60%)); background: var(--color-card);
.config-action-btn { .config-action-btn {
background: rgb(255 255 255 / 10%); background: var(--control-bg);
border: 1px solid rgb(255 255 255 / 20%); border: 1px solid var(--control-border);
color: var(--text-color, #fff); color: var(--color-text);
padding: 10px 16px; padding: 10px 16px;
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
display: flex; display: flex;
font-weight: 500; font-weight: 600;
align-items: center; align-items: center;
gap: 8px; gap: 8px;
flex: 1; flex: 1;
justify-content: center; justify-content: center;
&:hover { &:hover {
background: rgb(255 255 255 / 15%); background: var(--control-bg-hover);
border-color: rgb(255 255 255 / 30%); border-color: var(--control-border-hover);
transform: translateY(-1px); transform: translateY(-1px);
} }
&.enable-all { &.enable-all {
background: rgb(34 197 94 / 20%); background: color-mix(in srgb, var(--color-green-500), transparent 82%);
border-color: rgb(34 197 94 / 40%); border-color: color-mix(in srgb, var(--color-green-500), transparent 65%);
color: #22c55e; color: var(--color-green-700);
&:hover { &:hover {
background: rgb(34 197 94 / 30%); background: color-mix(in srgb, var(--color-green-500), transparent 72%);
border-color: rgb(34 197 94 / 60%); border-color: color-mix(in srgb, var(--color-green-500), transparent 50%);
} }
} }
&.disable-all { &.disable-all {
background: rgb(239 68 68 / 20%); background: color-mix(in srgb, var(--color-red-500), transparent 82%);
border-color: rgb(239 68 68 / 40%); border-color: color-mix(in srgb, var(--color-red-500), transparent 65%);
color: #ef4444; color: var(--color-red-700);
&:hover { &:hover {
background: rgb(239 68 68 / 30%); background: color-mix(in srgb, var(--color-red-500), transparent 72%);
border-color: rgb(239 68 68 / 60%); border-color: color-mix(in srgb, var(--color-red-500), transparent 50%);
} }
} }
&.reset-order { &.reset-order {
background: rgb(251 191 36 / 20%); background: color-mix(in srgb, var(--color-amber-500), transparent 82%);
border-color: rgb(251 191 36 / 40%); border-color: color-mix(in srgb, var(--color-amber-500), transparent 65%);
color: #fbbf24; color: var(--color-amber-700);
&:hover { &:hover {
background: rgb(251 191 36 / 30%); background: color-mix(in srgb, var(--color-amber-500), transparent 72%);
border-color: rgb(251 191 36 / 60%); border-color: color-mix(in srgb, var(--color-amber-500), transparent 50%);
} }
} }
@@ -242,12 +242,12 @@
.config-category { .config-category {
h4 { h4 {
color: var(--text-color, #fff); color: var(--color-text);
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
margin: 0 0 15px; margin: 0 0 15px;
padding-bottom: 8px; padding-bottom: 8px;
border-bottom: 2px solid var(--primary-color, #80bdff); border-bottom: 2px solid var(--color-primary);
display: flex; display: flex;
align-items: center; align-items: center;
text-transform: uppercase; text-transform: uppercase;
@@ -267,18 +267,18 @@
transition: background-color 0.2s ease; transition: background-color 0.2s ease;
&:hover { &:hover {
background: rgb(255 255 255 / 5%); background: var(--color-surface-hover);
} }
input[type="checkbox"] { input[type="checkbox"] {
width: 18px; width: 18px;
height: 18px; height: 18px;
accent-color: var(--primary-color, #80bdff); accent-color: var(--color-primary);
cursor: pointer; cursor: pointer;
} }
label { label {
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: 0.9rem; font-size: 0.9rem;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
@@ -286,12 +286,12 @@
flex: 1; flex: 1;
&:hover { &:hover {
color: var(--text-color, #fff); color: var(--color-text);
} }
} }
input[type="checkbox"]:checked + label { input[type="checkbox"]:checked + label {
color: var(--text-color, #fff); color: var(--color-text);
font-weight: 500; font-weight: 500;
} }
} }
@@ -327,14 +327,14 @@
&.cdk-drag-preview { &.cdk-drag-preview {
box-shadow: 0 8px 32px rgb(0 0 0 / 30%); box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
backdrop-filter: blur(15px); backdrop-filter: blur(15px);
border: 2px solid var(--primary-color, #80bdff); border: 2px solid var(--color-primary);
border-radius: 8px; border-radius: 8px;
transform: rotate(2deg); transform: rotate(2deg);
} }
&.cdk-drag-placeholder { &.cdk-drag-placeholder {
opacity: 0.3; opacity: 0.3;
border: 2px dashed var(--primary-color, #80bdff); border: 2px dashed var(--color-primary);
background: transparent !important; background: transparent !important;
} }
} }
@@ -348,13 +348,13 @@
top: 8px; top: 8px;
right: 8px; right: 8px;
z-index: 10; z-index: 10;
background: rgb(0 0 0 / 60%); background: color-mix(in srgb, var(--color-text) 72%, transparent);
border: 1px solid rgb(255 255 255 / 20%); border: 1px solid var(--color-border);
border-radius: 4px; border-radius: 4px;
padding: 6px; padding: 6px;
cursor: default; cursor: default;
opacity: 0; opacity: 0;
transition: all 0.3s ease; transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -362,17 +362,17 @@
height: 28px; height: 28px;
&:hover { &:hover {
background: rgb(0 0 0 / 80%); background: color-mix(in srgb, var(--color-text) 85%, transparent);
border-color: var(--primary-color, #80bdff); border-color: var(--color-primary);
} }
&:active { &:active {
background: rgb(0 0 0 / 90%); background: var(--color-text);
transform: scale(1.1); transform: scale(1.1);
} }
.pi { .pi {
color: var(--text-color, #fff); color: var(--color-card);
font-size: 0.8rem; font-size: 0.8rem;
cursor: grab; cursor: grab;
@@ -391,15 +391,15 @@
} }
.chart-section { .chart-section {
background: var(--card-background); background: var(--color-card);
border-radius: 8px; border-radius: 8px;
padding: 15px; padding: 15px;
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
transition: all 0.3s ease; transition: border-color 0.3s ease, box-shadow 0.3s ease;
&:hover { &:hover {
border-color: rgb(255 255 255 / 20%); border-color: var(--color-border);
box-shadow: 0 4px 12px rgb(0 0 0 / 15%); box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
} }
@@ -432,7 +432,7 @@
.no-data-message { .no-data-message {
text-align: center; text-align: center;
padding: 50px; padding: 50px;
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: 16px; font-size: 16px;
} }
@@ -441,7 +441,7 @@
} }
.no-data-message { .no-data-message {
color: var(--text-color-secondary, #999); color: var(--color-text-secondary);
small { small {
display: block; display: block;
@@ -8,7 +8,7 @@
} }
.header-section { .header-section {
background: var(--card-background); background: var(--color-card);
border-radius: 12px; border-radius: 12px;
padding: 1rem; padding: 1rem;
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
@@ -18,7 +18,7 @@
transition: all 0.3s ease; transition: all 0.3s ease;
&:hover { &:hover {
border-color: rgb(255 255 255 / 20%); border-color: var(--color-border);
box-shadow: 0 6px 12px rgb(0 0 0 / 15%); box-shadow: 0 6px 12px rgb(0 0 0 / 15%);
} }
@@ -40,11 +40,11 @@
i { i {
font-size: 1.5rem; font-size: 1.5rem;
color: var(--primary-color); color: var(--color-primary);
} }
h2 { h2 {
color: var(--text-color, #fff); color: var(--color-text);
font-size: 1.5rem; font-size: 1.5rem;
font-weight: 600; font-weight: 600;
margin: 0; margin: 0;
@@ -68,10 +68,10 @@
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
padding: 0.75rem 1.25rem; padding: 0.75rem 1.25rem;
background: var(--card-background); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 8px; border-radius: 8px;
color: var(--text-color); color: var(--color-text);
cursor: pointer; cursor: pointer;
transition: all 0.3s ease; transition: all 0.3s ease;
font-size: 0.9rem; font-size: 0.9rem;
@@ -95,7 +95,7 @@
} }
.p-dialog-content { .p-dialog-content {
background: var(--card-background); background: var(--color-card);
padding: 1.5rem; padding: 1.5rem;
} }
@@ -131,20 +131,20 @@
align-items: center; align-items: center;
gap: 1rem; gap: 1rem;
padding: 0.5rem 1.25rem; padding: 0.5rem 1.25rem;
background: rgb(255 255 255 / 3%); background: var(--color-page);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 8px; border-radius: 8px;
cursor: move; cursor: move;
transition: all 0.2s ease; transition: all 0.2s ease;
&:hover { &:hover {
background: rgb(255 255 255 / 5%); background: var(--color-surface-hover);
border-color: var(--p-primary-color); border-color: var(--p-primary-color);
} }
.drag-handle { .drag-handle {
cursor: grab; cursor: grab;
color: var(--text-color-secondary); color: var(--color-text-secondary);
display: flex; display: flex;
align-items: center; align-items: center;
@@ -155,7 +155,7 @@
.chart-title { .chart-title {
flex: 1; flex: 1;
color: var(--text-color); color: var(--color-text);
font-size: 0.95rem; font-size: 0.95rem;
} }
@@ -175,12 +175,12 @@
} }
&.disabled { &.disabled {
color: var(--text-color-secondary); color: var(--color-text-secondary);
opacity: 0.5; opacity: 0.5;
&:hover { &:hover {
background: transparent; background: transparent;
color: var(--text-color-secondary); color: var(--color-text-secondary);
border-color: var(--p-content-border-color); border-color: var(--p-content-border-color);
} }
} }
@@ -196,7 +196,7 @@
} }
.chart-card { .chart-card {
background: var(--card-background); background: var(--color-card);
border-radius: 12px; border-radius: 12px;
padding: 1.5rem; padding: 1.5rem;
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
@@ -207,7 +207,7 @@
overflow: visible; overflow: visible;
&:hover { &:hover {
border-color: rgb(255 255 255 / 20%); border-color: var(--color-border);
box-shadow: 0 6px 12px rgb(0 0 0 / 15%); box-shadow: 0 6px 12px rgb(0 0 0 / 15%);
.chart-drag-handle { .chart-drag-handle {
@@ -226,7 +226,7 @@
opacity: 0; opacity: 0;
transition: opacity 0.2s ease; transition: opacity 0.2s ease;
z-index: 10; z-index: 10;
color: var(--text-color); color: var(--color-text);
&:active { &:active {
cursor: grabbing; cursor: grabbing;
@@ -32,19 +32,31 @@ import {DomSanitizer, SafeHtml} from '@angular/platform-browser';
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: var(--icon-display-color, currentColor);
} }
.svg-icon-inline { .svg-icon-inline {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: inherit;
} }
.svg-icon-inline :deep(svg) { .svg-icon-inline ::ng-deep svg {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: block; display: block;
} }
/* Tint only paths without explicit paint so user-uploaded multi-colour SVGs survive. */
.svg-icon-inline ::ng-deep svg:not([fill]),
.svg-icon-inline ::ng-deep path:not([fill]) {
fill: currentColor;
}
.svg-icon-inline ::ng-deep path[stroke]:not([stroke="none"]) {
stroke: currentColor;
}
`], `],
changeDetection: ChangeDetectionStrategy.OnPush changeDetection: ChangeDetectionStrategy.OnPush
}) })
@@ -2,8 +2,8 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 80dvh; height: 80dvh;
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 12px; border-radius: 12px;
overflow: hidden; overflow: hidden;
} }
@@ -14,8 +14,8 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 1.25rem 1.5rem; padding: 1.25rem 1.5rem;
background: var(--overlay-background); background: var(--color-page);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
flex-shrink: 0; flex-shrink: 0;
.header-content { .header-content {
@@ -30,12 +30,12 @@
justify-content: center; justify-content: center;
width: 42px; width: 42px;
height: 42px; height: 42px;
background: var(--primary-color); background: var(--color-primary);
border-radius: 10px; border-radius: 10px;
i { i {
font-size: 1.25rem; font-size: 1.25rem;
color: var(--primary-contrast-color); color: var(--color-primary-contrast);
} }
} }
@@ -44,13 +44,13 @@
margin: 0; margin: 0;
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
} }
p { p {
margin: 0.125rem 0 0; margin: 0.125rem 0 0;
font-size: 0.875rem; font-size: 0.875rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
} }
} }
@@ -71,8 +71,8 @@
} }
.p-tablist { .p-tablist {
background: var(--overlay-background); background: var(--color-page);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
padding: 0 1rem; padding: 0 1rem;
} }
@@ -120,11 +120,11 @@
} }
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background: var(--border-color); background: var(--color-border);
border-radius: 3px; border-radius: 3px;
&:hover { &:hover {
background: var(--primary-color); background: var(--color-primary);
} }
} }
} }
@@ -140,7 +140,7 @@
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
font-size: 0.9rem; font-size: 0.9rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
pointer-events: none; pointer-events: none;
z-index: 1; z-index: 1;
} }
@@ -166,7 +166,7 @@
justify-content: center; justify-content: center;
width: 44px; width: 44px;
height: 44px; height: 44px;
background: var(--ground-background); background: var(--color-page);
border: 1px solid transparent; border: 1px solid transparent;
border-radius: 8px; border-radius: 8px;
cursor: pointer; cursor: pointer;
@@ -174,25 +174,25 @@
> i { > i {
font-size: 1.25rem; font-size: 1.25rem;
color: var(--text-color); color: var(--color-text);
transition: color 0.15s ease; transition: color 0.15s ease;
} }
&:hover { &:hover {
border-color: var(--border-color); border-color: var(--color-border);
background: var(--overlay-background); background: var(--color-page);
> i { > i {
color: var(--primary-color); color: var(--color-primary);
} }
} }
&.selected { &.selected {
border-color: var(--primary-color); border-color: var(--color-primary);
background: rgb(var(--primary-color-rgb, 59, 130, 246), 10%); background: color-mix(in srgb, var(--color-primary) 10%, transparent);
> i { > i {
color: var(--primary-color); color: var(--color-primary);
} }
} }
@@ -221,7 +221,7 @@
justify-content: center; justify-content: center;
gap: 0.75rem; gap: 0.75rem;
padding: 3rem; padding: 3rem;
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: 0.9rem; font-size: 0.9rem;
i { i {
@@ -247,10 +247,10 @@
justify-content: center; justify-content: center;
gap: 0.625rem; gap: 0.625rem;
padding: 0.875rem 1.25rem; padding: 0.875rem 1.25rem;
background: var(--ground-background); background: var(--color-page);
border: 2px dashed var(--border-color); border: 2px dashed var(--color-border);
border-radius: 8px; border-radius: 8px;
color: var(--text-secondary-color); color: var(--color-text-secondary);
font-size: 0.875rem; font-size: 0.875rem;
transition: all 0.2s ease; transition: all 0.2s ease;
@@ -268,8 +268,8 @@
// Form sections // Form sections
.form-section { .form-section {
background: var(--ground-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 8px; border-radius: 8px;
padding: 1.25rem; padding: 1.25rem;
@@ -282,11 +282,11 @@
font-weight: 600; font-weight: 600;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.03em; letter-spacing: 0.03em;
color: var(--text-secondary-color); color: var(--color-text-secondary);
> i { > i {
font-size: 0.9rem; font-size: 0.9rem;
color: var(--primary-color); color: var(--color-primary);
} }
.section-badge { .section-badge {
@@ -296,8 +296,8 @@
min-width: 20px; min-width: 20px;
height: 20px; height: 20px;
padding: 0 0.375rem; padding: 0 0.375rem;
background: var(--primary-color); background: var(--color-primary);
color: var(--primary-contrast-color); color: var(--color-primary-contrast);
border-radius: 10px; border-radius: 10px;
font-size: 0.7rem; font-size: 0.7rem;
font-weight: 600; font-weight: 600;
@@ -328,7 +328,7 @@
label { label {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 500; font-weight: 500;
color: var(--text-color); color: var(--color-text);
} }
.input-full { .input-full {
@@ -348,8 +348,8 @@
// Preview // Preview
.preview-card { .preview-card {
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
@@ -359,9 +359,9 @@
font-weight: 600; font-weight: 600;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.03em; letter-spacing: 0.03em;
color: var(--text-secondary-color); color: var(--color-text-secondary);
background: var(--overlay-background); background: var(--color-page);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
} }
.preview-content { .preview-content {
@@ -404,7 +404,7 @@
justify-content: flex-end; justify-content: flex-end;
margin-top: 1rem; margin-top: 1rem;
padding-top: 1rem; padding-top: 1rem;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
} }
// Queue grid // Queue grid
@@ -418,14 +418,14 @@
} }
.queue-item { .queue-item {
background: var(--card-background); background: var(--color-page);
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
transition: all 0.2s ease; transition: all 0.2s ease;
&:hover { &:hover {
border-color: var(--primary-color); border-color: var(--color-primary);
} }
&.has-error { &.has-error {
@@ -437,14 +437,14 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0.5rem 0.625rem; padding: 0.5rem 0.625rem;
background: var(--overlay-background); background: var(--color-page);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
} }
.queue-item-name { .queue-item-name {
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 600; font-weight: 600;
color: var(--text-color); color: var(--color-text);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@@ -459,7 +459,7 @@
background: transparent; background: transparent;
border: none; border: none;
border-radius: 4px; border-radius: 4px;
color: var(--text-secondary-color); color: var(--color-text-secondary);
cursor: pointer; cursor: pointer;
transition: all 0.15s ease; transition: all 0.15s ease;
@@ -1,6 +1,6 @@
.live-border { .live-border {
background: var(--card-background); background: var(--color-card);
border: 1px solid var(--primary-color); border: 1px solid var(--color-primary);
border-radius: 0.5rem; border-radius: 0.5rem;
} }
@@ -24,12 +24,12 @@
.notification-timestamp { .notification-timestamp {
font-size: 0.75rem; font-size: 0.75rem;
color: #a1a1aa; color: var(--color-text-secondary);
align-self: center; align-self: center;
} }
.notification-message { .notification-message {
font-weight: 400; font-weight: 400;
color: #e4e4e7; color: var(--color-text);
margin: 0; margin: 0;
} }
@@ -11,12 +11,12 @@
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#login-logo-gradient-secondary)"/> <path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#login-logo-gradient-secondary)"/>
<defs> <defs>
<linearGradient id="login-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="login-logo-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--p-primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--p-primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
<linearGradient id="login-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="login-logo-gradient-secondary" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--p-primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--p-primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
</defs> </defs>
</svg> </svg>
@@ -1,7 +1,7 @@
.task-border { .task-border {
margin-top: 1rem; margin-top: 1rem;
background: var(--card-background); background: var(--color-card);
border: 1px solid var(--primary-color); border: 1px solid var(--color-primary);
border-radius: 0.5rem; border-radius: 0.5rem;
} }
@@ -25,7 +25,7 @@
.task-title { .task-title {
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 600; font-weight: 600;
color: var(--primary-color); color: var(--color-primary);
margin: 0; margin: 0;
} }
@@ -47,13 +47,13 @@
.task-message { .task-message {
font-size: 1rem; font-size: 1rem;
color: #e5e7eb; color: var(--color-text);
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
.task-progress-info { .task-progress-info {
font-size: 0.875rem; font-size: 0.875rem;
color: #d1d5db; color: var(--color-text-secondary);
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
@@ -110,9 +110,9 @@
} }
&-primary { &-primary {
background-color: color-mix(in srgb, var(--p-primary-500), transparent 82%); background-color: color-mix(in srgb, var(--color-primary-500), transparent 82%);
color: var(--p-primary-300); color: var(--color-primary-700);
border: 1px solid color-mix(in srgb, var(--p-primary-500), transparent 65%); border: 1px solid color-mix(in srgb, var(--color-primary-500), transparent 65%);
} }
$colors: ( $colors: (
@@ -147,22 +147,42 @@
@each $name, $color in $colors { @each $name, $color in $colors {
&-#{$name} { &-#{$name} {
background-color: color-mix(in srgb, var(--p-#{$color}-500), transparent 82%); background-color: color-mix(in srgb, var(--color-#{$color}-500), transparent 82%);
color: var(--p-#{$color}-300); color: var(--color-#{$color}-700);
border: 1px solid color-mix(in srgb, var(--p-#{$color}-500), transparent 65%); border: 1px solid color-mix(in srgb, var(--color-#{$color}-500), transparent 65%);
} }
} }
&-dark { &-dark {
background-color: color-mix(in srgb, var(--p-gray-800), transparent 82%); background-color: color-mix(in srgb, var(--color-gray-800), transparent 82%);
color: var(--p-gray-300); color: var(--color-gray-800);
border: 1px solid color-mix(in srgb, var(--p-gray-800), transparent 65%); border: 1px solid color-mix(in srgb, var(--color-gray-800), transparent 65%);
} }
&-light { &-light {
background-color: color-mix(in srgb, var(--p-gray-300), transparent 82%); background-color: color-mix(in srgb, var(--color-gray-300), transparent 82%);
color: var(--p-gray-600); color: var(--color-gray-700);
border: 1px solid color-mix(in srgb, var(--p-gray-300), transparent 65%); border: 1px solid color-mix(in srgb, var(--color-gray-300), transparent 65%);
}
@at-root :host-context(.dark) .app-tag-primary {
color: var(--color-primary-300);
}
@at-root :host-context(.dark) {
@each $name, $color in $colors {
.app-tag-#{$name} {
color: var(--color-#{$color}-300);
}
}
.app-tag-dark {
color: var(--color-gray-300);
}
.app-tag-light {
color: var(--color-gray-400);
}
} }
&-variant-pill { &-variant-pill {
@@ -170,29 +190,29 @@
padding: 0.125rem 0.375rem; padding: 0.125rem 0.375rem;
&.app-tag-primary { &.app-tag-primary {
background-color: var(--p-primary-600); background-color: var(--color-primary-600);
color: var(--p-primary-100); color: var(--color-primary-100);
border-color: var(--p-primary-500); border-color: var(--color-primary-500);
} }
@each $name, $color in $colors { @each $name, $color in $colors {
&.app-tag-#{$name} { &.app-tag-#{$name} {
background-color: var(--p-#{$color}-600); background-color: var(--color-#{$color}-600);
color: var(--p-#{$color}-100); color: var(--color-#{$color}-100);
border-color: var(--p-#{$color}-500); border-color: var(--color-#{$color}-500);
} }
} }
&.app-tag-dark { &.app-tag-dark {
background-color: var(--p-gray-800); background-color: var(--color-gray-800);
color: var(--p-gray-100); color: var(--color-gray-100);
border-color: var(--p-gray-700); border-color: var(--color-gray-700);
} }
&.app-tag-light { &.app-tag-light {
background-color: var(--p-gray-300); background-color: var(--color-gray-300);
color: var(--p-gray-800); color: var(--color-gray-800);
border-color: var(--p-gray-400); border-color: var(--color-gray-400);
} }
} }
} }
@@ -15,12 +15,12 @@
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#mobile-topbar-brand-secondary-gradient)"/> <path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#mobile-topbar-brand-secondary-gradient)"/>
<defs> <defs>
<linearGradient id="mobile-topbar-brand-primary-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="mobile-topbar-brand-primary-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
<linearGradient id="mobile-topbar-brand-secondary-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="mobile-topbar-brand-secondary-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
</defs> </defs>
</svg> </svg>
@@ -13,8 +13,9 @@
box-sizing: border-box; box-sizing: border-box;
height: 3.5rem; height: 3.5rem;
z-index: 100; z-index: 100;
background-color: var(--surface-app); background-color: var(--color-app);
border-bottom: 1px solid var(--content-border-color); color: var(--color-text);
border-bottom: 1px solid var(--color-border);
padding: padding:
0 0
calc(0.75rem + env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-right))
@@ -32,7 +33,6 @@
flex: 1 1 auto; flex: 1 1 auto;
min-width: 0; min-width: 0;
gap: 0.4rem; gap: 0.4rem;
color: var(--text-color);
} }
.mobile-topbar-brand-icon { .mobile-topbar-brand-icon {
@@ -63,16 +63,15 @@
border: 0; border: 0;
background: none; background: none;
border-radius: 6px; border-radius: 6px;
color: var(--text-color);
cursor: pointer; cursor: pointer;
transition: background-color 0.15s ease, color 0.15s ease; transition: background-color 0.15s ease, color 0.15s ease;
&:hover { &:hover {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
} }
&:focus-visible { &:focus-visible {
outline: 2px solid var(--primary-color); outline: 2px solid var(--color-primary);
outline-offset: 2px; outline-offset: 2px;
} }
@@ -18,17 +18,17 @@
border-radius: var(--sidebar-row-radius); border-radius: var(--sidebar-row-radius);
&:focus-within { &:focus-within {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
} }
} }
@media (hover: hover) and (pointer: fine) { @media (hover: hover) and (pointer: fine) {
.sidebar-item-container:hover { .sidebar-item-container:hover {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
} }
.sidebar-item-container:hover .sidebar-item-chevron { .sidebar-item-container:hover .sidebar-item-chevron {
color: var(--text-color); color: var(--color-text);
} }
.sidebar-item-container:hover .entity-menu-icon { .sidebar-item-container:hover .entity-menu-icon {
@@ -41,7 +41,7 @@
} }
.sidebar-item-container.active-route-container { .sidebar-item-container.active-route-container {
background-color: color-mix(in srgb, var(--primary-color) 8%, transparent); background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
} }
.sidebar-item-link { .sidebar-item-link {
@@ -73,13 +73,13 @@ a.sidebar-item-link {
} }
.sidebar-item-container:has(.sidebar-item-link:focus-visible) { .sidebar-item-container:has(.sidebar-item-link:focus-visible) {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
box-shadow: var(--sidebar-focus-ring); box-shadow: var(--sidebar-focus-ring);
border-radius: var(--sidebar-row-radius); border-radius: var(--sidebar-row-radius);
} }
a.sidebar-item-link.active-route { a.sidebar-item-link.active-route {
color: var(--primary-color); color: var(--color-primary-text);
} }
.sidebar-item-chrome { .sidebar-item-chrome {
@@ -96,7 +96,7 @@ a.sidebar-item-link.active-route {
.sidebar-item-chevron { .sidebar-item-chevron {
font-size: var(--text-sm); font-size: var(--text-sm);
color: var(--text-color-secondary); color: var(--color-text-secondary);
padding-right: var(--space-3); padding-right: var(--space-3);
transition: color var(--transition-fast); transition: color var(--transition-fast);
} }
@@ -156,7 +156,7 @@ a.sidebar-item-link.active-route {
border: 0; border: 0;
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
background: transparent; background: transparent;
color: var(--text-color-secondary); color: var(--color-text-secondary);
cursor: pointer; cursor: pointer;
font: inherit; font: inherit;
font-size: var(--text-sm); font-size: var(--text-sm);
@@ -165,11 +165,11 @@ a.sidebar-item-link.active-route {
.entity-menu-button:hover { .entity-menu-button:hover {
background-color: transparent; background-color: transparent;
color: var(--primary-color); color: var(--color-primary);
} }
.entity-menu-button:focus-visible { .entity-menu-button:focus-visible {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
box-shadow: var(--sidebar-focus-ring); box-shadow: var(--sidebar-focus-ring);
outline: none; outline: none;
} }
@@ -197,7 +197,7 @@ a.sidebar-item-link.active-route {
} }
.book-count { .book-count {
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-size: var(--text-sm); font-size: var(--text-sm);
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
@@ -219,7 +219,7 @@ a.sidebar-item-link.active-route {
width: 10px; width: 10px;
height: 10px; height: 10px;
border-radius: 50%; border-radius: 50%;
background-color: #ef4444; background-color: var(--color-red-500);
animation: pulse 2s ease-in-out infinite; animation: pulse 2s ease-in-out infinite;
} }
@@ -233,11 +233,11 @@ a.sidebar-item-link.active-route {
} }
.sidebar-item-container.active-route-container { .sidebar-item-container.active-route-container {
background-color: color-mix(in srgb, var(--primary-color) 8%, transparent); background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
} }
.sidebar-item-container:has(:focus-visible) { .sidebar-item-container:has(:focus-visible) {
outline: 2px solid var(--primary-color); outline: 2px solid var(--color-primary);
outline-offset: -2px; outline-offset: -2px;
} }
@@ -31,7 +31,7 @@
color: inherit; color: inherit;
&:focus-visible { &:focus-visible {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
box-shadow: var(--sidebar-focus-ring); box-shadow: var(--sidebar-focus-ring);
outline: none; outline: none;
} }
@@ -53,12 +53,12 @@
} }
.expand-icon { .expand-icon {
color: var(--surface-500); color: var(--color-surface-500);
} }
@media (hover: hover) and (pointer: fine) { @media (hover: hover) and (pointer: fine) {
.expand-icon:hover { .expand-icon:hover {
color: var(--surface-200); color: var(--color-surface-200);
} }
} }
@@ -66,7 +66,7 @@
.root-item-with-dropdown:focus-visible { .root-item-with-dropdown:focus-visible {
background-color: transparent; background-color: transparent;
box-shadow: none; box-shadow: none;
outline: 2px solid var(--primary-color); outline: 2px solid var(--color-primary);
outline-offset: -2px; outline-offset: -2px;
} }
} }
@@ -116,6 +116,6 @@
.expand-icon { .expand-icon {
font-size: 1.125rem; font-size: 1.125rem;
color: var(--text-color-secondary); color: var(--color-text-secondary);
} }
} }
@@ -9,12 +9,12 @@
<path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#sidebar-brand-secondary-gradient)"/> <path d="M96.7715 113.077H43.5539V119.537H96.7715C98.5535 119.537 99.9964 118.092 99.9964 116.307C99.9964 114.522 98.5535 113.077 96.7715 113.077Z" fill="url(#sidebar-brand-secondary-gradient)"/>
<defs> <defs>
<linearGradient id="sidebar-brand-primary-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="sidebar-brand-primary-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
<linearGradient id="sidebar-brand-secondary-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse"> <linearGradient id="sidebar-brand-secondary-gradient" x1="50" y1="0" x2="50" y2="119.537" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
</defs> </defs>
</svg> </svg>
@@ -22,9 +22,9 @@
<svg class="sidebar-brand-wordmark" width="2500" height="350" viewBox="0 0 2500 350" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> <svg class="sidebar-brand-wordmark" width="2500" height="350" viewBox="0 0 2500 350" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<g clip-path="url(#sidebar-brand-wordmark-clip)"> <g clip-path="url(#sidebar-brand-wordmark-clip)">
<path d="M71.8311 296.149V314.103V332.047V350L89.7839 332.047L107.747 350V332.047V314.103V296.149H71.8311Z" fill="white"/> <path d="M71.8311 296.149V314.103V332.047V350L89.7839 332.047L107.747 350V332.047V314.103V296.149H71.8311Z" fill="white"/>
<path d="M1748.64 102.654H1701.96C1691.71 102.654 1683.37 110.983 1683.37 121.23V165.376C1683.37 175.622 1691.7 183.952 1701.96 183.952H1748.64C1757.49 183.952 1764.7 176.746 1764.7 167.895V118.721C1764.7 109.869 1757.49 102.664 1748.64 102.664V102.654Z" style="fill: var(--primary-400)"/> <path d="M1748.64 102.654H1701.96C1691.71 102.654 1683.37 110.983 1683.37 121.23V165.376C1683.37 175.622 1691.7 183.952 1701.96 183.952H1748.64C1757.49 183.952 1764.7 176.746 1764.7 167.895V118.721C1764.7 109.869 1757.49 102.664 1748.64 102.664V102.654Z" fill="url(#sidebar-brand-wordmark-gradient)"/>
<path d="M896.673 102.654H852.504C842.263 102.654 833.919 110.983 833.919 121.23V167.885C833.919 176.736 841.128 183.942 849.984 183.942H899.184C908.039 183.942 915.249 176.736 915.249 167.885V121.23C915.249 110.983 906.915 102.654 896.663 102.654H896.673Z" style="fill: var(--primary-400)"/> <path d="M896.673 102.654H852.504C842.263 102.654 833.919 110.983 833.919 121.23V167.885C833.919 176.736 841.128 183.942 849.984 183.942H899.184C908.039 183.942 915.249 176.736 915.249 167.885V121.23C915.249 110.983 906.915 102.654 896.663 102.654H896.673Z" fill="url(#sidebar-brand-wordmark-gradient)"/>
<path d="M653.709 183.942H697.878C708.119 183.942 716.463 175.612 716.463 165.366V118.711C716.463 109.859 709.254 102.654 700.398 102.654H651.199C642.343 102.654 635.134 109.859 635.134 118.711V165.366C635.134 175.612 643.467 183.942 653.719 183.942H653.709Z" style="fill: var(--primary-400)"/> <path d="M653.709 183.942H697.878C708.119 183.942 716.463 175.612 716.463 165.366V118.711C716.463 109.859 709.254 102.654 700.398 102.654H651.199C642.343 102.654 635.134 109.859 635.134 118.711V165.366C635.134 175.612 643.467 183.942 653.719 183.942H653.709Z" fill="url(#sidebar-brand-wordmark-gradient)"/>
<path d="M107.747 80.7661H269.361C274.322 80.7661 278.338 76.7519 278.338 71.7944V8.97179C278.338 4.01422 274.322 0 269.361 0H35.9155C29.369 0 23.2442 1.75622 17.9527 4.81707C12.5007 7.96823 7.96226 12.5043 4.80949 17.9536C1.75712 23.2323 0 29.354 0 35.8972V296.149C0 315.979 16.0751 332.046 35.9155 332.046H58.8786V314.103H35.9155C25.9953 314.103 17.9527 306.064 17.9527 296.149C17.9527 286.234 25.9953 278.196 35.9155 278.196H260.385C270.305 278.196 278.348 270.157 278.348 260.242V116.663C278.348 106.748 270.305 98.7097 260.385 98.7097H107.747C102.786 98.7097 98.7702 102.724 98.7702 107.681V170.504C98.7702 175.462 102.786 179.476 107.747 179.476H188.554C193.514 179.476 197.53 183.49 197.53 188.448C197.53 193.405 193.514 197.419 188.554 197.419H107.747C92.8663 197.419 80.8074 185.367 80.8074 170.494V107.671C80.8074 92.7988 92.8663 80.7461 107.747 80.7461V80.7661Z" fill="url(#sidebar-brand-wordmark-gradient)"/> <path d="M107.747 80.7661H269.361C274.322 80.7661 278.338 76.7519 278.338 71.7944V8.97179C278.338 4.01422 274.322 0 269.361 0H35.9155C29.369 0 23.2442 1.75622 17.9527 4.81707C12.5007 7.96823 7.96226 12.5043 4.80949 17.9536C1.75712 23.2323 0 29.354 0 35.8972V296.149C0 315.979 16.0751 332.046 35.9155 332.046H58.8786V314.103H35.9155C25.9953 314.103 17.9527 306.064 17.9527 296.149C17.9527 286.234 25.9953 278.196 35.9155 278.196H260.385C270.305 278.196 278.348 270.157 278.348 260.242V116.663C278.348 106.748 270.305 98.7097 260.385 98.7097H107.747C102.786 98.7097 98.7702 102.724 98.7702 107.681V170.504C98.7702 175.462 102.786 179.476 107.747 179.476H188.554C193.514 179.476 197.53 183.49 197.53 188.448C197.53 193.405 193.514 197.419 188.554 197.419H107.747C92.8663 197.419 80.8074 185.367 80.8074 170.494V107.671C80.8074 92.7988 92.8663 80.7461 107.747 80.7461V80.7661Z" fill="url(#sidebar-brand-wordmark-gradient)"/>
<path d="M269.361 314.103H121.231V332.046H269.361C274.322 332.046 278.338 328.032 278.338 323.075C278.338 318.117 274.322 314.103 269.361 314.103Z" fill="url(#sidebar-brand-wordmark-gradient)"/> <path d="M269.361 314.103H121.231V332.046H269.361C274.322 332.046 278.338 328.032 278.338 323.075C278.338 318.117 274.322 314.103 269.361 314.103Z" fill="url(#sidebar-brand-wordmark-gradient)"/>
<path d="M1620.14 3.3017C1600.16 3.3017 1583.98 19.489 1583.98 39.4498V248.099C1583.98 267.538 1599.74 283.294 1619.19 283.294H1847.17C1856.53 283.294 1864.11 275.717 1864.11 266.364V19.6898C1864.11 10.6377 1856.77 3.3017 1847.72 3.3017H1620.14ZM1782.77 167.885C1782.77 186.701 1767.46 202.006 1748.64 202.006H1701.96C1681.74 202.006 1665.3 185.567 1665.3 165.366V121.219C1665.3 101.018 1681.74 84.5796 1701.96 84.5796H1748.64C1767.46 84.5796 1782.77 99.8839 1782.77 118.701V167.885Z" fill="url(#sidebar-brand-wordmark-gradient)"/> <path d="M1620.14 3.3017C1600.16 3.3017 1583.98 19.489 1583.98 39.4498V248.099C1583.98 267.538 1599.74 283.294 1619.19 283.294H1847.17C1856.53 283.294 1864.11 275.717 1864.11 266.364V19.6898C1864.11 10.6377 1856.77 3.3017 1847.72 3.3017H1620.14ZM1782.77 167.885C1782.77 186.701 1767.46 202.006 1748.64 202.006H1701.96C1681.74 202.006 1665.3 185.567 1665.3 165.366V121.219C1665.3 101.018 1681.74 84.5796 1701.96 84.5796H1748.64C1767.46 84.5796 1782.77 99.8839 1782.77 118.701V167.885Z" fill="url(#sidebar-brand-wordmark-gradient)"/>
@@ -38,8 +38,8 @@
</g> </g>
<defs> <defs>
<linearGradient id="sidebar-brand-wordmark-gradient" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse"> <linearGradient id="sidebar-brand-wordmark-gradient" x1="1250.2" y1="0" x2="1250.2" y2="332.046" gradientUnits="userSpaceOnUse">
<stop offset="0" style="stop-color: var(--primary-300)"/> <stop offset="0" style="stop-color: var(--color-logo-start)"/>
<stop offset="1" style="stop-color: var(--primary-500)"/> <stop offset="1" style="stop-color: var(--color-logo-end)"/>
</linearGradient> </linearGradient>
<clipPath id="sidebar-brand-wordmark-clip"> <clipPath id="sidebar-brand-wordmark-clip">
<rect width="2500" height="350" fill="white"/> <rect width="2500" height="350" fill="white"/>
@@ -148,7 +148,7 @@
<div class="sidebar-nav-top"> <div class="sidebar-nav-top">
<button <button
type="button" type="button"
class="sidebar-action-link sidebar-search-button" class="sidebar-action-link sidebar-search-button bg-surface-200 hover:bg-surface-300 dark:bg-surface-800 dark:hover:bg-surface-700"
[pTooltip]="t('search')" [pTooltip]="t('search')"
[tooltipDisabled]="!layoutService.desktopSidebarCollapsed()" [tooltipDisabled]="!layoutService.desktopSidebarCollapsed()"
tooltipPosition="right" tooltipPosition="right"
@@ -172,7 +172,7 @@
<div class="sidebar-footer-actions"> <div class="sidebar-footer-actions">
<button <button
type="button" type="button"
class="sidebar-action-link sidebar-footer-action sidebar-toolbar-button" class="sidebar-action-link sidebar-footer-action sidebar-toolbar-button hover:bg-surface-hover"
[pTooltip]="t('add')" [pTooltip]="t('add')"
[tooltipDisabled]="!layoutService.isDesktop()" [tooltipDisabled]="!layoutService.isDesktop()"
tooltipPosition="top" tooltipPosition="top"
@@ -188,7 +188,7 @@
@if (canUploadBooks()) { @if (canUploadBooks()) {
<button <button
type="button" type="button"
class="sidebar-action-link sidebar-footer-action" class="sidebar-action-link sidebar-footer-action hover:bg-surface-hover"
[attr.aria-label]="t('uploadBook')" [attr.aria-label]="t('uploadBook')"
[pTooltip]="t('uploadBook')" [pTooltip]="t('uploadBook')"
[tooltipDisabled]="!layoutService.isDesktop()" [tooltipDisabled]="!layoutService.isDesktop()"
@@ -204,7 +204,7 @@
type="button" type="button"
cdkOverlayOrigin cdkOverlayOrigin
#notificationsFooterOrigin="cdkOverlayOrigin" #notificationsFooterOrigin="cdkOverlayOrigin"
class="sidebar-action-link sidebar-footer-action sidebar-notification-button" class="sidebar-action-link sidebar-footer-action sidebar-notification-button hover:bg-surface-hover"
[attr.aria-label]="t('notifications')" [attr.aria-label]="t('notifications')"
[pTooltip]="t('notifications')" [pTooltip]="t('notifications')"
[tooltipDisabled]="!layoutService.isDesktop()" [tooltipDisabled]="!layoutService.isDesktop()"
@@ -223,7 +223,7 @@
</button> </button>
<a <a
class="sidebar-action-link sidebar-footer-action" class="sidebar-action-link sidebar-footer-action hover:bg-surface-hover"
[class.active-route]="isSettingsActive()" [class.active-route]="isSettingsActive()"
[attr.aria-current]="isSettingsActive() ? 'page' : null" [attr.aria-current]="isSettingsActive() ? 'page' : null"
[routerLink]="['/settings']" [routerLink]="['/settings']"
@@ -36,16 +36,16 @@
min-width: 0; min-width: 0;
min-height: var(--sidebar-row-min-height); min-height: var(--sidebar-row-min-height);
padding: var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-end) var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-start); padding: var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-end) var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-start);
color: var(--text-color); color: var(--color-text);
text-decoration: none; text-decoration: none;
letter-spacing: 0.02em; letter-spacing: 0.02em;
&:hover { &:hover {
color: var(--primary-color); color: var(--color-primary);
} }
&:focus-visible { &:focus-visible {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
box-shadow: var(--sidebar-focus-ring); box-shadow: var(--sidebar-focus-ring);
outline: none; outline: none;
} }
@@ -108,10 +108,10 @@
} }
.sidebar-action-link.sidebar-toolbar-button { .sidebar-action-link.sidebar-toolbar-button {
color: var(--primary-color); color: var(--color-primary);
&:hover { &:hover {
color: var(--primary-color); color: var(--color-primary);
} }
} }
@@ -127,18 +127,18 @@
border: 0; border: 0;
background: none; background: none;
border-radius: var(--sidebar-row-radius); border-radius: var(--sidebar-row-radius);
color: var(--text-color-secondary); color: var(--color-text-secondary);
cursor: pointer; cursor: pointer;
text-decoration: none; text-decoration: none;
transition: background-color var(--transition-fast), color var(--transition-fast); transition: background-color var(--transition-fast), color var(--transition-fast);
&:hover { &:hover {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
color: var(--text-color); color: var(--color-text);
} }
&:focus-visible { &:focus-visible {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
box-shadow: var(--sidebar-focus-ring); box-shadow: var(--sidebar-focus-ring);
outline: none; outline: none;
} }
@@ -170,8 +170,8 @@
height: 1rem; height: 1rem;
padding: 0 0.25rem; padding: 0 0.25rem;
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
background: var(--primary-color); background: var(--color-primary);
color: var(--primary-color-text); color: var(--color-primary-contrast);
font-size: 0.65rem; font-size: 0.65rem;
font-weight: 700; font-weight: 700;
line-height: 1rem; line-height: 1rem;
@@ -203,7 +203,7 @@
gap: var(--space-2); gap: var(--space-2);
padding-top: var(--space-2); padding-top: var(--space-2);
margin-top: var(--space-2); margin-top: var(--space-2);
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
} }
.sidebar-action-link { .sidebar-action-link {
@@ -217,9 +217,8 @@
min-width: 0; min-width: 0;
padding: var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-end) var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-start); padding: var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-end) var(--sidebar-row-padding-block) var(--sidebar-row-padding-inline-start);
border: 0; border: 0;
background: none;
border-radius: var(--sidebar-row-radius); border-radius: var(--sidebar-row-radius);
color: var(--text-color); color: var(--color-text);
font: inherit; font: inherit;
font-size: var(--text-base); font-size: var(--text-base);
text-align: left; text-align: left;
@@ -227,19 +226,14 @@
cursor: pointer; cursor: pointer;
transition: background-color var(--transition-fast), padding var(--transition-base); transition: background-color var(--transition-fast), padding var(--transition-base);
&:hover {
background-color: var(--surface-hover);
}
&:focus-visible { &:focus-visible {
background-color: var(--surface-hover);
box-shadow: var(--sidebar-focus-ring); box-shadow: var(--sidebar-focus-ring);
outline: none; outline: none;
} }
&.active-route { &.active-route {
color: var(--primary-color); color: var(--color-primary-text);
background-color: color-mix(in srgb, var(--primary-color) 8%, transparent); background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
.sidebar-footer-action-label { .sidebar-footer-action-label {
color: inherit; color: inherit;
@@ -298,11 +292,6 @@
.sidebar-search-button { .sidebar-search-button {
padding-inline-end: var(--space-2); padding-inline-end: var(--space-2);
background-color: var(--surface-hover);
&:hover {
background-color: color-mix(in srgb, var(--surface-hover), white 15%);
}
} }
.sidebar-search-shortcut { .sidebar-search-shortcut {
@@ -314,7 +303,7 @@
border: 0; border: 0;
background: transparent; background: transparent;
margin-left: auto; margin-left: auto;
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-family: inherit; font-family: inherit;
font-size: var(--text-xs); font-size: var(--text-xs);
line-height: 1; line-height: 1;
@@ -335,18 +324,18 @@
border: 0; border: 0;
background: none; background: none;
border-radius: var(--sidebar-row-radius); border-radius: var(--sidebar-row-radius);
color: var(--text-color); color: var(--color-text);
font: inherit; font: inherit;
text-align: left; text-align: left;
cursor: pointer; cursor: pointer;
transition: background-color var(--transition-fast); transition: background-color var(--transition-fast);
&:hover { &:hover {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
} }
&:focus-visible { &:focus-visible {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
box-shadow: var(--sidebar-focus-ring); box-shadow: var(--sidebar-focus-ring);
outline: none; outline: none;
} }
@@ -370,8 +359,8 @@
width: 1.75rem; width: 1.75rem;
height: 1.75rem; height: 1.75rem;
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
background-color: color-mix(in srgb, var(--primary-color) 18%, transparent); background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
color: var(--primary-color); color: var(--color-primary);
font-size: var(--text-xs); font-size: var(--text-xs);
font-weight: 600; font-weight: 600;
letter-spacing: 0.02em; letter-spacing: 0.02em;
@@ -402,7 +391,7 @@
.sidebar-user-handle { .sidebar-user-handle {
font-size: var(--text-xs); font-size: var(--text-xs);
color: var(--text-color-secondary); color: var(--color-text-secondary);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@@ -440,11 +429,11 @@
width: 2.5rem; width: 2.5rem;
height: 2.5rem; height: 2.5rem;
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
background-color: var(--surface-hover); background-color: var(--color-card);
color: var(--text-color); color: var(--color-text);
&:hover { &:hover {
background-color: color-mix(in srgb, var(--surface-hover), white 15%); background-color: var(--color-surface-hover);
} }
} }
@@ -487,10 +476,10 @@
min-height: 4.75rem; min-height: 4.75rem;
padding: var(--space-2) var(--space-1); padding: var(--space-2) var(--space-1);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
background-color: var(--surface-hover); background-color: var(--color-card);
&:hover { &:hover {
background-color: color-mix(in srgb, var(--surface-hover), white 15%); background-color: var(--color-surface-hover);
} }
} }
@@ -502,7 +491,7 @@
white-space: normal; white-space: normal;
text-align: center; text-align: center;
text-wrap: balance; text-wrap: balance;
color: var(--text-color-secondary); color: var(--color-text-secondary);
overflow-wrap: anywhere; overflow-wrap: anywhere;
} }
@@ -569,7 +558,7 @@
background: none; background: none;
&:hover { &:hover {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
} }
} }
@@ -584,7 +573,7 @@
background: none; background: none;
.sidebar-user-avatar { .sidebar-user-avatar {
background-color: color-mix(in srgb, var(--primary-color) 24%, transparent); background-color: color-mix(in srgb, var(--color-primary) 24%, transparent);
} }
} }
@@ -602,15 +591,15 @@
height: 3rem; height: 3rem;
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
background: none; background: none;
color: var(--text-color); color: var(--color-text);
&:hover { &:hover {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
} }
&.active-route { &.active-route {
background-color: color-mix(in srgb, var(--primary-color) 8%, transparent); background-color: color-mix(in srgb, var(--color-primary) 8%, transparent);
color: var(--primary-color); color: var(--color-primary-text);
} }
} }
@@ -1,66 +0,0 @@
import {provideHttpClient} from '@angular/common/http';
import {HttpTestingController, provideHttpClientTesting} from '@angular/common/http/testing';
import {TestBed} from '@angular/core/testing';
import {afterEach, beforeEach, describe, expect, it, vi} from 'vitest';
import {BackgroundUploadService} from './background-upload.service';
describe('BackgroundUploadService', () => {
let service: BackgroundUploadService;
let httpTestingController: HttpTestingController;
beforeEach(() => {
TestBed.configureTestingModule({
providers: [
provideHttpClient(),
provideHttpClientTesting(),
BackgroundUploadService,
],
});
service = TestBed.inject(BackgroundUploadService);
httpTestingController = TestBed.inject(HttpTestingController);
});
afterEach(() => {
httpTestingController.verify();
TestBed.resetTestingModule();
vi.restoreAllMocks();
});
it('uploads a file as multipart form data and maps the returned URL', () => {
const logSpy = vi.spyOn(console, 'log').mockImplementation(() => undefined);
const file = new File(['image-bytes'], 'background.png', {type: 'image/png'});
let result: string | undefined;
service.uploadFile(file).subscribe(value => {
result = value;
});
const request = httpTestingController.expectOne(req => req.url.endsWith('/api/v1/background/upload'));
expect(request.request.method).toBe('POST');
expect(request.request.body instanceof FormData).toBe(true);
expect((request.request.body as FormData).get('file')).toBe(file);
request.flush({url: 'https://example.test/background.png'});
expect(result).toBe('https://example.test/background.png');
expect(logSpy).toHaveBeenCalled();
});
it('uploads a background URL and maps the returned URL', () => {
const logSpy = vi.spyOn(console, 'log').mockImplementation(() => undefined);
let result: string | undefined;
service.uploadUrl('https://example.test/source.jpg').subscribe(value => {
result = value;
});
const request = httpTestingController.expectOne(req => req.url.endsWith('/api/v1/background/url'));
expect(request.request.method).toBe('POST');
expect(request.request.body).toEqual({url: 'https://example.test/source.jpg'});
request.flush({url: 'https://example.test/normalized.jpg'});
expect(result).toBe('https://example.test/normalized.jpg');
expect(logSpy).toHaveBeenCalled();
});
});
@@ -1,26 +0,0 @@
import {Injectable, inject} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {Observable, map, tap} from 'rxjs';
import {API_CONFIG} from '../../../core/config/api-config';
@Injectable({providedIn: 'root'})
export class BackgroundUploadService {
private readonly baseUrl = `${API_CONFIG.BASE_URL}/api/v1/background`;
private readonly http = inject(HttpClient);
uploadFile(file: File): Observable<string> {
const formData = new FormData();
formData.append('file', file);
return this.http.post<{ url: string }>(`${this.baseUrl}/upload`, formData).pipe(
tap(response => console.log('File upload response:', response)),
map(resp => resp?.url)
);
}
uploadUrl(url: string): Observable<string> {
return this.http.post<{ url: string }>(`${this.baseUrl}/url`, {url}).pipe(
tap(response => console.log('URL upload response:', response)),
map(resp => resp?.url)
);
}
}
@@ -1,62 +0,0 @@
<ng-container *transloco="let t; prefix: 'layout.uploadDialog'">
<div class="upload-dialog-content">
<div class="upload-section">
<div class="file-selector">
<label class="file-label" for="upload-dialog-file-input">{{ t('chooseFile') }}</label>
<p-button
[label]="t('selectImage')"
icon="pi pi-upload"
(click)="fileInput.click()"
outlined
severity="info">
</p-button>
</div>
<input
id="upload-dialog-file-input"
#fileInput
type="file"
accept=".jpg,.jpeg,.png,image/jpeg,image/png"
(change)="onFileSelected($event)"
style="display: none;">
<small class="file-note">{{ t('fileNote') }}</small>
@if (uploadFile) {
<small class="selected-file">{{ uploadFile.name }}</small>
}
</div>
<p-divider align="center" type="solid">
<span class="or-text">{{ t('or') }}</span>
</p-divider>
<div class="url-section">
<label for="urlInput" class="url-label">{{ t('imageUrl') }}</label>
<input
id="urlInput"
type="text"
[(ngModel)]="uploadImageUrl"
[placeholder]="t('urlPlaceholder')"
class="url-input"
pInputText>
<small class="url-note">{{ t('urlNote') }}</small>
</div>
@if (uploadError) {
<p-message severity="error">{{uploadError}}</p-message>
}
<div class="dialog-footer">
<p-button
[label]="'common.cancel' | transloco"
icon="pi pi-times"
(click)="cancel()"
severity="secondary"
outlined>
</p-button>
<p-button
[label]="'common.submit' | transloco"
icon="pi pi-check"
(click)="submit()">
</p-button>
</div>
</div>
</ng-container>
@@ -1,82 +0,0 @@
.upload-dialog-content {
display: flex;
flex-direction: column;
gap: 1.5rem;
padding: 1rem 0;
.upload-section {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-bottom: 1rem;
.file-selector {
display: flex;
align-items: center;
gap: 1rem;
}
.file-label {
font-weight: 500;
color: var(--text-color);
}
.file-input {
padding: 0.75rem;
border: 1px solid var(--border-color);
border-radius: var(--p-border-radius);
background: var(--ground-background);
}
.file-note {
color: var(--text-secondary-color);
font-size: 0.875rem;
margin-top: 0.25rem;
}
.selected-file {
color: var(--text-secondary-color);
font-style: italic;
}
}
.url-section {
display: flex;
flex-direction: column;
gap: 0.25rem;
.url-label {
font-weight: 500;
color: var(--text-color);
margin-bottom: 0.5rem;
}
.url-input {
width: 100%;
padding: 0.75rem;
}
.url-note {
color: var(--text-secondary-color);
font-size: 0.875rem;
margin-top: 0.25rem;
}
}
.or-text {
font-size: 0.9rem;
color: var(--text-color);
font-weight: 500;
}
p-message {
margin-top: 1rem;
}
.dialog-footer {
display: flex;
gap: 1rem;
justify-content: flex-end;
margin-top: 1rem;
}
}
@@ -1,125 +0,0 @@
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {of, throwError} from 'rxjs';
import {afterEach, beforeEach, describe, expect, it, vi} from 'vitest';
import {DynamicDialogRef} from 'primeng/dynamicdialog';
import {TranslocoService} from '@jsverse/transloco';
import {getTranslocoModule} from '../../../../core/testing/transloco-testing';
import {BackgroundUploadService} from '../background-upload.service';
import {UploadDialogComponent} from './upload-dialog.component';
describe('UploadDialogComponent', () => {
let fixture: ComponentFixture<UploadDialogComponent>;
let component: UploadDialogComponent;
let dialogRef: {close: ReturnType<typeof vi.fn>};
let backgroundUploadService: {
uploadFile: ReturnType<typeof vi.fn>;
uploadUrl: ReturnType<typeof vi.fn>;
};
let translocoService: TranslocoService;
beforeEach(async () => {
dialogRef = {
close: vi.fn(),
};
backgroundUploadService = {
uploadFile: vi.fn(() => of('https://example.com/uploaded.png')),
uploadUrl: vi.fn(() => of('https://example.com/from-url.png')),
};
await TestBed.configureTestingModule({
imports: [UploadDialogComponent, getTranslocoModule()],
providers: [
{provide: DynamicDialogRef, useValue: dialogRef},
{provide: BackgroundUploadService, useValue: backgroundUploadService},
],
}).compileComponents();
fixture = TestBed.createComponent(UploadDialogComponent);
component = fixture.componentInstance;
translocoService = TestBed.inject(TranslocoService);
});
afterEach(() => {
vi.restoreAllMocks();
TestBed.resetTestingModule();
});
it('stores the selected file and clears the URL field', () => {
const file = new File(['image'], 'cover.png', {type: 'image/png'});
const event = {
target: {
files: [file],
},
} as unknown as Event;
component.uploadImageUrl = 'https://example.com/old.png';
component.onFileSelected(event);
expect(component.uploadFile).toBe(file);
expect(component.uploadImageUrl).toBe('');
});
it('requires either a file or a URL before uploading', () => {
component.submit();
expect(component.uploadError).toBe(
translocoService.translate('layout.uploadDialog.errorNoInput')
);
expect(backgroundUploadService.uploadFile).not.toHaveBeenCalled();
expect(backgroundUploadService.uploadUrl).not.toHaveBeenCalled();
});
it('uploads a selected file and closes the dialog with the returned URL', () => {
const file = new File(['image'], 'cover.png', {type: 'image/png'});
component.uploadFile = file;
component.submit();
expect(backgroundUploadService.uploadFile).toHaveBeenCalledWith(file);
expect(dialogRef.close).toHaveBeenCalledWith({
imageUrl: 'https://example.com/uploaded.png',
});
});
it('uploads a trimmed URL and closes the dialog with the returned value', () => {
component.uploadImageUrl = ' https://example.com/bg.png ';
component.submit();
expect(backgroundUploadService.uploadUrl).toHaveBeenCalledWith('https://example.com/bg.png');
expect(dialogRef.close).toHaveBeenCalledWith({
imageUrl: 'https://example.com/from-url.png',
});
});
it('shows an error when the upload succeeds without returning an image URL', () => {
backgroundUploadService.uploadUrl.mockReturnValueOnce(of(''));
component.uploadImageUrl = 'https://example.com/bg.png';
component.submit();
expect(component.uploadError).toBe('Failed to upload image.');
expect(dialogRef.close).not.toHaveBeenCalled();
});
it('shows a generic upload error when the upload request fails', () => {
vi.spyOn(console, 'error').mockImplementation(() => undefined);
backgroundUploadService.uploadFile.mockReturnValueOnce(
throwError(() => new Error('boom'))
);
component.uploadFile = new File(['image'], 'cover.png', {type: 'image/png'});
component.submit();
expect(component.uploadError).toBe('Upload failed. Please try again.');
expect(console.error).toHaveBeenCalled();
expect(dialogRef.close).not.toHaveBeenCalled();
});
it('closes the dialog when cancel is clicked', () => {
component.cancel();
expect(dialogRef.close).toHaveBeenCalledWith();
});
});
@@ -1,74 +0,0 @@
import {Component, inject} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {DynamicDialogRef} from 'primeng/dynamicdialog';
import {Button} from 'primeng/button';
import {InputText} from 'primeng/inputtext';
import {Divider} from 'primeng/divider';
import {Message} from 'primeng/message';
import {BackgroundUploadService} from '../background-upload.service';
import {take} from 'rxjs';
import {TranslocoDirective, TranslocoPipe, TranslocoService} from '@jsverse/transloco';
@Component({
selector: 'app-upload-dialog',
standalone: true,
templateUrl: './upload-dialog.component.html',
styleUrls: ['./upload-dialog.component.scss'],
imports: [
FormsModule,
Button,
InputText,
Divider,
Message,
TranslocoDirective,
TranslocoPipe
]
})
export class UploadDialogComponent {
private readonly dialogRef = inject(DynamicDialogRef);
private readonly backgroundUploadService = inject(BackgroundUploadService);
private readonly t = inject(TranslocoService);
uploadImageUrl = '';
uploadFile: File | null = null;
uploadError = '';
onFileSelected(event: Event) {
const input = event.target as HTMLInputElement;
if (input.files && input.files.length > 0) {
this.uploadFile = input.files[0];
this.uploadImageUrl = '';
}
}
submit() {
this.uploadError = '';
let upload$;
if (this.uploadFile) {
upload$ = this.backgroundUploadService.uploadFile(this.uploadFile);
} else if (this.uploadImageUrl.trim()) {
upload$ = this.backgroundUploadService.uploadUrl(this.uploadImageUrl.trim());
} else {
this.uploadError = this.t.translate('layout.uploadDialog.errorNoInput');
return;
}
upload$.pipe(take(1)).subscribe({
next: (imageUrl) => {
if (imageUrl) {
this.dialogRef.close({ imageUrl });
} else {
this.uploadError = 'Failed to upload image.';
}
},
error: (err) => {
console.error('Upload failed:', err);
this.uploadError = 'Upload failed. Please try again.';
}
});
}
cancel() {
this.dialogRef.close();
}
}
@@ -1,37 +0,0 @@
import Aura from '@primeuix/themes/aura';
import {describe, expect, it} from 'vitest';
import ExtendedAura from './theme-palette-extend';
interface AppThemePreset {
primitive?: Record<string, Record<string, string>>;
semantic?: AppThemeSemantic;
}
interface AppThemeSemantic {
colorScheme?: {
light?: AppThemeColorScheme;
dark?: AppThemeColorScheme;
};
}
interface AppThemeColorScheme {
content?: {
background?: string;
};
}
describe('theme-palette-extend', () => {
it('extends Aura with custom primitive palettes and app content surfaces', () => {
const auraPrimitive = Aura.primitive as Record<string, Record<string, string>>;
const preset = ExtendedAura as AppThemePreset;
expect(auraPrimitive).toBeTruthy();
expect(auraPrimitive['coralSunset']['500']).toBe('#ef7550');
expect(auraPrimitive['skyBlue']['700']).toBe('#2e88e6');
expect(auraPrimitive['dustyNeutral']['950']).toBe('#2f2821');
expect(preset.primitive?.['coralSunset']['500']).toBe('#ef7550');
expect(preset.semantic?.colorScheme?.light?.content?.background).toBe('var(--surface-page)');
expect(preset.semantic?.colorScheme?.dark?.content?.background).toBe('var(--surface-page)');
});
});
@@ -1,241 +0,0 @@
import Aura from '@primeuix/themes/aura';
import { definePreset } from '@primeuix/themes';
type ColorPalette = Record<string, string>;
/*
* PrimeNG theme bridge.
*
* App-owned CSS tokens define the native shell/page foundation. This file only
* extends Prime's Aura preset so Prime components can use the same app-selected
* palettes and the same app-owned page background.
*/
/* Extra primary palettes exposed to the theme configurator and Prime runtime. */
const customPalettes: Record<string, ColorPalette> = {
coralSunset: {
50: '#fef7f0',
100: '#feede1',
200: '#fcd9c2',
300: '#f9be9e',
400: '#f59673',
500: '#ef7550',
600: '#de5a3a',
700: '#b94730',
800: '#943a2e',
900: '#78322a',
950: '#401814'
},
roseBlush: {
50: '#fef7f7',
100: '#feebeb',
200: '#fddcdc',
300: '#fbbfbf',
400: '#f69393',
500: '#ed6767',
600: '#d93f3f',
700: '#b73030',
800: '#982d2d',
900: '#7f2d2d',
950: '#451313'
},
melonBlush: {
50: '#fffafb',
100: '#fff2f4',
200: '#ffdfe7',
300: '#ffcbd4',
400: '#ffaebb',
500: '#ff90a2',
600: '#ff6f88',
700: '#e8506b',
800: '#b7384d',
900: '#7f2231',
950: '#3f1118'
},
cottonCandy: {
50: '#fff9fb',
100: '#fff0f6',
200: '#ffdfee',
300: '#ffc0e0',
400: '#ffa3cf',
500: '#ff86bf',
600: '#ff69ad',
700: '#e14f93',
800: '#b93a72',
900: '#86284f',
950: '#42142a'
},
apricotSunrise: {
50: '#fffaf7',
100: '#fff1e8',
200: '#ffe2c9',
300: '#ffd2a8',
400: '#ffbf88',
500: '#ffad68',
600: '#ff974f',
700: '#e67a3b',
800: '#b6572b',
900: '#7f351b',
950: '#3f190f'
},
antiqueBronze: {
50: '#faf7f2',
100: '#f4ede0',
200: '#e8d9c0',
300: '#d9c199',
400: '#c8a56f',
500: '#b8904f',
600: '#a67c44',
700: '#8a6439',
800: '#715233',
900: '#5c442c',
950: '#302316'
},
butteryYellow: {
50: '#fffef7',
100: '#fffceb',
200: '#fff7d1',
300: '#ffeea7',
400: '#ffe072',
500: '#ffcf45',
600: '#ffb61f',
700: '#ff9b0a',
800: '#cc7606',
900: '#a35f0c',
950: '#633204'
},
vanillaCream: {
50: '#fefdfb',
100: '#fefbf6',
200: '#fdf5ea',
300: '#fbecd5',
400: '#f7dbb5',
500: '#f1c589',
600: '#e8a95c',
700: '#d88d3e',
800: '#b47134',
900: '#915c2e',
950: '#4e2f17'
},
citrusMint: {
50: '#fbfff9',
100: '#f4fff2',
200: '#e8ffd9',
300: '#d1ffbc',
400: '#b7ffa0',
500: '#96ff84',
600: '#76e96e',
700: '#4fb84c',
800: '#2f7f32',
900: '#1a4f20',
950: '#0a2410'
},
freshMint: {
50: '#f8fff9',
100: '#f0fff3',
200: '#dcffea',
300: '#bfffd6',
400: '#99ffc2',
500: '#7fffae',
600: '#5fe592',
700: '#3fbf75',
800: '#2d8f55',
900: '#1e5f39',
950: '#0f2f1d'
},
sagePearl: {
50: '#fbfdfb',
100: '#f4f8f4',
200: '#e6efe6',
300: '#d1e6d1',
400: '#bcdcbf',
500: '#9fcfa8',
600: '#84b792',
700: '#5f8f6e',
800: '#3f6648',
900: '#25442e',
950: '#0f2118'
},
skyBlue: {
50: '#f7fbff',
100: '#eef6ff',
200: '#dceefd',
300: '#c1e8ff',
400: '#99dfff',
500: '#6fc8ff',
600: '#48afff',
700: '#2e88e6',
800: '#2360b3',
900: '#153d80',
950: '#071d40'
},
periwinkleCream: {
50: '#fbfbff',
100: '#f2f3ff',
200: '#e7eaff',
300: '#d2dcff',
400: '#b9c9ff',
500: '#9fb2ff',
600: '#7f97ff',
700: '#5f78e6',
800: '#4559b3',
900: '#2b387f',
950: '#151c40'
},
pastelRoyalBlue: {
50: '#f6fbff',
100: '#eef6ff',
200: '#dbeeff',
300: '#b9ddff',
400: '#92c7ff',
500: '#63aaff',
600: '#3b88ff',
700: '#2e66cc',
800: '#235099',
900: '#183366',
950: '#0d1a33'
},
lavenderDream: {
50: '#fbf7ff',
100: '#f6eeff',
200: '#ebdcff',
300: '#dcc0ff',
400: '#caa1ff',
500: '#b47fff',
600: '#9366e6',
700: '#6f45b3',
800: '#4c2f80',
900: '#2d1b4f',
950: '#15082a'
},
dustyNeutral: {
50: '#faf9f7',
100: '#f3f1ed',
200: '#e8e3db',
300: '#d8cfc2',
400: '#c4b5a3',
500: '#b39c85',
600: '#a28a70',
700: '#87725d',
800: '#6f5e4e',
900: '#5a4e42',
950: '#2f2821'
}
};
if (!Aura.primitive) {
Aura.primitive = {};
}
Object.assign(Aura.primitive, customPalettes);
const AppPrimePreset = definePreset(Aura, {
semantic: {
colorScheme: {
light: { content: { background: 'var(--surface-page)' } },
dark: { content: { background: 'var(--surface-page)' } }
}
}
});
export default AppPrimePreset;
@@ -0,0 +1,76 @@
import {describe, expect, it} from 'vitest';
import ExtendedAura, {primeThemeTokenPalettes} from './theme-palette-extend';
interface AppThemePreset {
semantic?: AppThemeSemantic;
}
interface AppThemeSemantic {
colorScheme?: {
light?: AppThemeColorScheme;
dark?: AppThemeColorScheme;
};
}
interface AppThemeColorScheme {
content?: {
background?: string;
};
primary?: {
color?: string;
contrastColor?: string;
hoverColor?: string;
activeColor?: string;
};
highlight?: {
background?: string;
color?: string;
};
}
interface AppThemePresetComponents {
components?: {
button?: {
colorScheme?: {
light?: {
outlined?: Record<string, { borderColor?: string; color?: string }>;
};
};
};
};
}
describe('theme-palette-extend', () => {
it('bridges app content surfaces', () => {
const preset = ExtendedAura as AppThemePreset;
expect(preset.semantic?.colorScheme?.light?.content?.background).toBe('var(--color-page)');
expect(preset.semantic?.colorScheme?.dark?.content?.background).toBe('var(--color-page)');
});
it('uses balanced light outlined button tokens', () => {
const outlined = (ExtendedAura as AppThemePreset & AppThemePresetComponents)
.components?.button?.colorScheme?.light?.outlined;
expect(outlined?.['primary']).toMatchObject({
borderColor: 'var(--color-primary)',
color: 'var(--color-primary)',
});
expect(outlined?.['info']).toMatchObject({ borderColor: '{sky.400}', color: '{sky.600}' });
expect(outlined?.['help']).toMatchObject({ borderColor: '{purple.400}', color: '{purple.600}' });
expect(outlined?.['secondary']).toMatchObject({
borderColor: '{surface.400}',
color: '{surface.600}',
});
});
it('defines Prime palettes from app CSS tokens', () => {
const palettes = primeThemeTokenPalettes();
expect(palettes.primary['0']).toBeUndefined();
expect(palettes.primary['500']).toBe('var(--color-primary-500)');
expect(palettes.surface['0']).toBe('var(--color-surface-0)');
expect(palettes.surface['950']).toBe('var(--color-surface-950)');
});
});
@@ -0,0 +1,124 @@
import Aura from '@primeuix/themes/aura';
import {$t, definePreset} from '@primeuix/themes';
export type ColorPalette = Record<string, string>;
export interface ResolvedThemePalettes {
primary: ColorPalette;
surface: ColorPalette;
}
const COLOR_STOPS = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900', '950'] as const;
const SURFACE_STOPS = ['0', ...COLOR_STOPS] as const;
/*
* PrimeNG theme bridge.
*
* App-owned CSS tokens define the native shell/page foundation. This file only
* extends Prime's Aura preset so Prime components can use the same app-selected
* palettes and the same Tailwind-owned page background.
*/
/** Popup menu surfaces use card elevation, not page canvas. */
const menuRoot = { background: 'var(--color-card)' };
/*
* Aura light outlined buttons default to *-200 borders — too faint on --color-card.
* Use *-400 borders and *-600 text: readable without feeling heavy.
*/
const lightOutlinedButton = {
primary: { borderColor: 'var(--color-primary)', color: 'var(--color-primary)' },
secondary: { borderColor: '{surface.400}', color: '{surface.600}' },
plain: { borderColor: '{surface.400}', color: '{surface.600}' },
success: { borderColor: '{green.400}', color: '{green.600}' },
info: { borderColor: '{sky.400}', color: '{sky.600}' },
warn: { borderColor: '{orange.400}', color: '{orange.600}' },
danger: { borderColor: '{red.400}', color: '{red.600}' },
help: { borderColor: '{purple.400}', color: '{purple.600}' },
};
const appPrimary = {
color: 'var(--color-primary)',
contrastColor: 'var(--color-primary-contrast)',
hoverColor: 'var(--color-primary-hover)',
activeColor: 'var(--color-primary-active)',
};
const appHighlight = {
background: 'color-mix(in srgb, var(--color-primary), transparent 84%)',
focusBackground: 'color-mix(in srgb, var(--color-primary), transparent 76%)',
color: 'var(--color-primary-text)',
focusColor: 'var(--color-primary-text)',
};
function buildAppTokenPalette(prefix: 'primary' | 'surface', stops: readonly string[]): ColorPalette {
return Object.fromEntries(
stops.map((stop) => [stop, `var(--color-${prefix}-${stop})`])
);
}
const appTokenPalettes: ResolvedThemePalettes = {
primary: buildAppTokenPalette('primary', COLOR_STOPS),
surface: buildAppTokenPalette('surface', SURFACE_STOPS),
};
export function primeThemeTokenPalettes(): ResolvedThemePalettes {
return appTokenPalettes;
}
function buildPrimePalettePreset(theme: ResolvedThemePalettes): object {
return {
semantic: {
primary: theme.primary,
colorScheme: {
light: {
primary: appPrimary,
highlight: appHighlight,
},
dark: {
primary: appPrimary,
highlight: appHighlight,
},
},
},
};
}
const AppPrimePreset = definePreset(Aura, {
semantic: {
colorScheme: {
light: { content: { background: 'var(--color-page)' } },
dark: {
content: { background: 'var(--color-page)' },
// Card menus are surface.800; Aura default hover is also 800 — use app surface-hover mix.
navigation: {
item: {
focusBackground: 'color-mix(in srgb, {text.color}, transparent 92%)',
activeBackground: 'color-mix(in srgb, {text.color}, transparent 92%)',
},
},
},
},
},
components: {
menu: { root: menuRoot },
tieredmenu: { root: menuRoot },
contextmenu: { root: menuRoot },
menubar: { submenu: menuRoot },
button: {
colorScheme: {
light: { outlined: lightOutlinedButton },
},
},
},
});
export function applyPrimeTheme(theme: ResolvedThemePalettes): void {
$t()
.preset(AppPrimePreset)
.preset(buildPrimePalettePreset(theme))
.surfacePalette(theme.surface)
.use({useDefaultOptions: true});
}
export default AppPrimePreset;
@@ -1,21 +1,34 @@
import {describe, expect, expectTypeOf, it} from 'vitest'; import {describe, expect, expectTypeOf, it} from 'vitest';
import {AppState} from './app-state.model'; import {
APP_THEME_OPTIONS,
AppearancePreference,
AppState,
AppTheme,
CustomPrimary,
DEFAULT_APP_THEME,
THEME_REGISTRY,
} from './app-state.model';
describe('app-state.model', () => { describe('app-state.model', () => {
it('supports partially specified visual state presets', () => { it('supports partially specified visual theme state', () => {
const appState: AppState = { const appState: AppState = {
preset: 'midnight', themePreference: DEFAULT_APP_THEME,
primary: '#112233' appearancePreference: 'system',
}; };
expect(appState.preset).toBe('midnight'); expect(appState.themePreference).toBe(DEFAULT_APP_THEME);
expect(appState.surface).toBeUndefined(); expect(appState.appearancePreference).toBe('system');
}); });
it('keeps each field optional and string-based', () => { it('keeps each field optional and constrained to supported values', () => {
expectTypeOf<AppState['preset']>().toEqualTypeOf<string | undefined>(); expectTypeOf<AppState['themePreference']>().toEqualTypeOf<AppTheme | undefined>();
expectTypeOf<AppState['primary']>().toEqualTypeOf<string | undefined>(); expectTypeOf<AppState['appearancePreference']>().toEqualTypeOf<AppearancePreference | undefined>();
expectTypeOf<AppState['surface']>().toEqualTypeOf<string | undefined>(); expectTypeOf<AppState['customPrimary']>().toEqualTypeOf<CustomPrimary | undefined>();
});
it('derives theme options from the registry', () => {
expect(APP_THEME_OPTIONS).toBe(THEME_REGISTRY);
expect(APP_THEME_OPTIONS.some(option => option.name === DEFAULT_APP_THEME)).toBe(true);
}); });
}); });
@@ -1,5 +1,18 @@
import type {AppTheme, CustomPrimary} from './theme-registry';
export type AppearancePreference = 'light' | 'dark' | 'system';
export {
APP_THEME_OPTIONS,
CUSTOM_PRIMARY_OPTIONS,
DEFAULT_APP_THEME,
DEFAULT_CUSTOM_PRIMARY,
THEME_REGISTRY,
} from './theme-registry';
export type {AppTheme, CustomPrimary} from './theme-registry';
export interface AppState { export interface AppState {
preset?: string; themePreference?: AppTheme;
primary?: string; appearancePreference?: AppearancePreference;
surface?: string; customPrimary?: CustomPrimary;
} }
@@ -0,0 +1,29 @@
export const THEME_REGISTRY = [
{name: 'grimmory', labelKey: 'layout.theme.options.grimmory'},
{name: 'cobalt', labelKey: 'layout.theme.options.cobalt'},
{name: 'ember', labelKey: 'layout.theme.options.ember'},
{name: 'crimson', labelKey: 'layout.theme.options.crimson'},
{name: 'rose', labelKey: 'layout.theme.options.rose'},
{name: 'forest', labelKey: 'layout.theme.options.forest'},
{name: 'meadow', labelKey: 'layout.theme.options.meadow'},
{name: 'teal', labelKey: 'layout.theme.options.teal'},
{name: 'lagoon', labelKey: 'layout.theme.options.lagoon'},
{name: 'violet', labelKey: 'layout.theme.options.violet'},
{name: 'fuchsia', labelKey: 'layout.theme.options.fuchsia'},
{name: 'slate', labelKey: 'layout.theme.options.slate'},
{name: 'custom', labelKey: 'layout.theme.options.custom'},
] as const;
export type AppTheme = (typeof THEME_REGISTRY)[number]['name'];
export const DEFAULT_APP_THEME: AppTheme = 'grimmory';
export const APP_THEME_OPTIONS = THEME_REGISTRY;
export const CUSTOM_PRIMARY_OPTIONS = [
'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal',
'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose',
] as const;
export type CustomPrimary = (typeof CUSTOM_PRIMARY_OPTIONS)[number];
export const DEFAULT_CUSTOM_PRIMARY: CustomPrimary = 'orange';
@@ -1,7 +1,7 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { TestBed } from '@angular/core/testing'; import { TestBed } from '@angular/core/testing';
import { AppConfigService } from './app-config.service'; import { AppConfigService } from './app-config.service';
import { FaviconService } from '../layout/theme-configurator/favicon-service'; import { FaviconService } from '../layout/theme/favicon-service';
function createLocalStorageMock() { function createLocalStorageMock() {
const store = new Map<string, string>(); const store = new Map<string, string>();
@@ -20,11 +20,36 @@ function createLocalStorageMock() {
}; };
} }
function createThemeComputedStyle(): CSSStyleDeclaration {
const values = new Map<string, string>();
['50', '100', '200', '300', '400', '500', '600', '700', '800', '900', '950'].forEach((stop) => {
values.set(`--color-primary-${stop}`, `primary-${stop}`);
});
['0', '50', '100', '200', '300', '400', '500', '600', '700', '800', '900', '950'].forEach((stop) => {
values.set(`--color-surface-${stop}`, `surface-${stop}`);
});
return {
getPropertyValue: (propertyName: string) => values.get(propertyName) ?? '',
} as CSSStyleDeclaration;
}
function createMatchMediaMock(matches: boolean) {
return vi.fn().mockImplementation((query: string) => ({
matches,
media: query,
addEventListener: vi.fn(),
removeEventListener: vi.fn(),
}) as unknown as MediaQueryList);
}
describe('AppConfigService', () => { describe('AppConfigService', () => {
let service: AppConfigService; let service: AppConfigService;
let localStorageMock: ReturnType<typeof createLocalStorageMock>; let localStorageMock: ReturnType<typeof createLocalStorageMock>;
let faviconServiceMock: { updateFavicon: ReturnType<typeof vi.fn> }; let faviconServiceMock: { updateFavicon: ReturnType<typeof vi.fn> };
const rootStyle = document.documentElement.style; const root = document.documentElement;
const rootStyle = root.style;
beforeEach(() => { beforeEach(() => {
localStorageMock = createLocalStorageMock(); localStorageMock = createLocalStorageMock();
@@ -32,7 +57,16 @@ describe('AppConfigService', () => {
updateFavicon: vi.fn(), updateFavicon: vi.fn(),
}; };
vi.stubGlobal('localStorage', localStorageMock); vi.stubGlobal('localStorage', localStorageMock);
Object.defineProperty(window, 'matchMedia', {
writable: true,
value: createMatchMediaMock(false),
});
rootStyle.cssText = ''; rootStyle.cssText = '';
const computedStyle = createThemeComputedStyle();
vi.spyOn(globalThis, 'getComputedStyle').mockReturnValue(computedStyle);
vi.spyOn(window, 'getComputedStyle').mockReturnValue(computedStyle);
root.classList.remove('dark');
delete root.dataset['appTheme'];
TestBed.resetTestingModule(); TestBed.resetTestingModule();
TestBed.configureTestingModule({ TestBed.configureTestingModule({
@@ -48,55 +82,76 @@ describe('AppConfigService', () => {
afterEach(() => { afterEach(() => {
localStorageMock.clear(); localStorageMock.clear();
rootStyle.cssText = ''; rootStyle.cssText = '';
root.classList.remove('dark');
delete root.dataset['appTheme'];
vi.restoreAllMocks();
vi.unstubAllGlobals(); vi.unstubAllGlobals();
}); });
it('applies the default app-owned tokens on init', () => { it('applies the default curated theme and system appearance on init', () => {
expect(rootStyle.getPropertyValue('--primary-300')).toBe('#fdba74'); expect(service.appState()).toEqual({
expect(rootStyle.getPropertyValue('--primary-400')).toBe('#fb923c'); themePreference: 'grimmory',
expect(rootStyle.getPropertyValue('--primary-500')).toBe('#f97316'); appearancePreference: 'system',
expect(rootStyle.getPropertyValue('--primary-color')).toBe('#fb923c'); customPrimary: 'orange',
expect(rootStyle.getPropertyValue('--surface-app')).toBe('#0d1012');
expect(rootStyle.getPropertyValue('--surface-page')).toBe('color-mix(in srgb, #1a1e21 82%, #0d1012)');
expect(rootStyle.getPropertyValue('--surface-content')).toBe('#1a1e21');
expect(rootStyle.getPropertyValue('--ground-background')).toBe('var(--surface-app)');
expect(rootStyle.getPropertyValue('--content-border-color')).toBe('var(--border-subtle)');
expect(faviconServiceMock.updateFavicon).toHaveBeenCalledWith('#fdba74', '#f97316');
});
it('updates app-owned tokens for custom palettes', () => {
service.appState.set({
preset: 'Aura',
primary: 'coralSunset',
surface: 'midnight-blue',
}); });
service.onPresetChange(); expect(localStorageMock.getItem('appConfigState')).toBeNull();
expect(root.dataset['appTheme']).toBe('grimmory');
expect(rootStyle.getPropertyValue('--primary-color')).toBe('#f59673'); expect(root.classList.contains('dark')).toBe(false);
expect(rootStyle.getPropertyValue('--primary-300')).toBe('#f9be9e'); expect(rootStyle.getPropertyValue('color-scheme')).toBe('light');
expect(rootStyle.getPropertyValue('--primary-500')).toBe('#ef7550'); expect(rootStyle.getPropertyValue('--primary-300')).toBe('');
expect(rootStyle.getPropertyValue('--primary-color-rgb')).toBe('239, 117, 80'); expect(rootStyle.getPropertyValue('--color-app')).toBe('');
expect(rootStyle.getPropertyValue('--surface-app')).toBe('#121518'); expect(rootStyle.getPropertyValue('--color-card')).toBe('');
expect(rootStyle.getPropertyValue('--surface-page')).toBe('color-mix(in srgb, #1f252c 82%, #121518)'); expect(faviconServiceMock.updateFavicon).toHaveBeenCalledWith(
expect(rootStyle.getPropertyValue('--ground-background')).toBe('var(--surface-app)'); 'primary-300',
expect(rootStyle.getPropertyValue('--surface-card')).toBe('color-mix(in srgb, #1f252c 62%, #38424d)'); 'primary-500'
expect(rootStyle.getPropertyValue('--card-background')).toBe('var(--surface-card)'); );
expect(faviconServiceMock.updateFavicon).toHaveBeenLastCalledWith('#f9be9e', '#ef7550');
}); });
it('maps noir to the selected surface palette', () => { it('updates the root theme attributes without writing palette tokens inline', () => {
service.appState.set({ service.setThemePreference('grimmory');
service.setAppearancePreference('light');
expect(root.dataset['appTheme']).toBe('grimmory');
expect(root.classList.contains('dark')).toBe(false);
expect(rootStyle.getPropertyValue('color-scheme')).toBe('light');
expect(rootStyle.getPropertyValue('--color-primary')).toBe('');
expect(rootStyle.getPropertyValue('--primary-300')).toBe('');
expect(rootStyle.getPropertyValue('--color-card')).toBe('');
expect(faviconServiceMock.updateFavicon).toHaveBeenLastCalledWith(
'primary-300',
'primary-500'
);
});
it('resets legacy saved palette state to the default theme and dark appearance', () => {
localStorageMock.setItem('appConfigState', JSON.stringify({
preset: 'Aura', preset: 'Aura',
primary: 'noir', primary: 'blue',
surface: 'charcoal', surface: 'charcoal',
}); colorScheme: 'light',
service.onPresetChange(); }));
expect(rootStyle.getPropertyValue('--primary-color')).toBe('#f0f0f0'); TestBed.resetTestingModule();
expect(rootStyle.getPropertyValue('--primary-300')).toBe('#b8b8b8'); TestBed.configureTestingModule({
expect(rootStyle.getPropertyValue('--primary-500')).toBe('#7d7d7d'); providers: [
expect(rootStyle.getPropertyValue('--primary-contrast-color')).toBe('#141414'); AppConfigService,
expect(rootStyle.getPropertyValue('--primary-hover-color')).toBe('#d1d1d1'); { provide: FaviconService, useValue: faviconServiceMock },
expect(faviconServiceMock.updateFavicon).toHaveBeenLastCalledWith('#f0f0f0', '#b8b8b8'); ],
});
service = TestBed.inject(AppConfigService);
expect(service.appState()).toEqual({
themePreference: 'grimmory',
appearancePreference: 'dark',
customPrimary: 'orange',
});
expect(root.dataset['appTheme']).toBe('grimmory');
expect(root.classList.contains('dark')).toBe(true);
expect(localStorageMock.getItem('appConfigState')).toBe(JSON.stringify({
themePreference: 'grimmory',
appearancePreference: 'dark',
customPrimary: 'orange',
}));
}); });
}); });
@@ -1,24 +1,31 @@
import { DOCUMENT, isPlatformBrowser } from '@angular/common'; import { DOCUMENT, isPlatformBrowser } from '@angular/common';
import { effect, inject, Injectable, PLATFORM_ID, signal } from '@angular/core'; import { inject, Injectable, PLATFORM_ID, signal } from '@angular/core';
import { $t } from '@primeuix/themes'; import { FaviconService } from '../layout/theme/favicon-service';
import { FaviconService } from '../layout/theme-configurator/favicon-service'; import {applyPrimeTheme, primeThemeTokenPalettes} from '../layout/theme/theme-palette-extend';
import Aura from '../layout/theme-palette-extend'; import {
import { AppState } from '../model/app-state.model'; APP_THEME_OPTIONS,
AppearancePreference,
AppState,
AppTheme,
CUSTOM_PRIMARY_OPTIONS,
CustomPrimary,
DEFAULT_APP_THEME,
DEFAULT_CUSTOM_PRIMARY,
} from '../model/app-state.model';
type ColorPalette = Record<string, string>; const PRIMARY_COLOR_STOPS = ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900', '950'];
const DEFAULT_APPEARANCE_PREFERENCE: AppearancePreference = 'system';
const LEGACY_APPEARANCE_PREFERENCE: AppearancePreference = 'dark';
const COLOR_STOPS = ['0', '50', '100', '200', '300', '400', '500', '600', '700', '800', '900', '950']; type StoredAppState = Partial<AppState> & {
preset?: unknown;
primary?: unknown;
surface?: unknown;
};
interface Palette { interface LoadedAppState {
name: string; state: AppState;
palette: ColorPalette; shouldPersist: boolean;
}
interface ResolvedThemePalettes {
primary: ColorPalette;
surface: ColorPalette;
appPrimary: ColorPalette;
isNoir: boolean;
} }
@Injectable({ @Injectable({
@@ -26,539 +33,193 @@ interface ResolvedThemePalettes {
}) })
export class AppConfigService { export class AppConfigService {
private readonly STORAGE_KEY = 'appConfigState'; private readonly STORAGE_KEY = 'appConfigState';
appState = signal<AppState>({}); readonly themes = APP_THEME_OPTIONS;
private readonly appStateSignal = signal<AppState>({});
readonly appState = this.appStateSignal.asReadonly();
document = inject(DOCUMENT); document = inject(DOCUMENT);
platformId = inject(PLATFORM_ID); platformId = inject(PLATFORM_ID);
faviconService = inject(FaviconService); faviconService = inject(FaviconService);
private initialized = false;
readonly surfaces: Palette[] = [
{
name: 'slate',
palette: {
0: '#ffffff',
50: '#f8fafc',
100: '#f1f5f9',
200: '#e2e8f0',
300: '#cbd5e1',
400: '#94a3b8',
500: '#64748b',
600: '#475569',
700: '#334155',
800: '#283548',
900: '#0f172a',
950: '#020617'
}
},
{
name: 'gray',
palette: {
0: '#ffffff',
50: '#fafafa',
100: '#f4f4f5',
200: '#e4e4e7',
300: '#d4d4d8',
400: '#a1a1aa',
500: '#71717a',
600: '#52525b',
700: '#3f3f46',
800: '#313136',
900: '#18181b',
950: '#09090b'
}
},
{
name: 'neutral',
palette: {
0: '#ffffff',
50: '#fafafa',
100: '#f5f5f5',
200: '#e5e5e5',
300: '#d4d4d4',
400: '#a3a3a3',
500: '#737373',
600: '#525252',
700: '#404040',
800: '#303030',
900: '#171717',
950: '#0a0a0a'
}
},
{
name: 'zinc',
palette: {
0: '#ffffff',
50: '#fafafa',
100: '#f4f4f5',
200: '#e4e4e7',
300: '#d4d4d8',
400: '#a1a1aa',
500: '#71717a',
600: '#52525b',
700: '#3f3f46',
800: '#313136',
900: '#18181b',
950: '#09090b'
}
},
{
name: 'stone',
palette: {
0: '#ffffff',
50: '#fafaf9',
100: '#f5f5f4',
200: '#e7e5e4',
300: '#d6d3d1',
400: '#a8a29e',
500: '#78716c',
600: '#57534e',
700: '#44403c',
800: '#342f2b',
900: '#1c1917',
950: '#0c0a09'
}
},
{
name: 'iron',
palette: {
0: '#ffffff',
50: '#f1f3f4',
100: '#e3e5e6',
200: '#d2d4d6',
300: '#b8bbc0',
400: '#9ca0a6',
500: '#7d8288',
600: '#646a70',
700: '#4c5258',
800: '#353a40',
900: '#1a1d20',
950: '#0d0f11'
}
},
{
name: 'steel',
palette: {
0: '#ffffff',
50: '#f3f4f6',
100: '#e5e7eb',
200: '#d1d5db',
300: '#b0b7c3',
400: '#8b93a6',
500: '#6b7280',
600: '#545861',
700: '#3f4347',
800: '#2c2f33',
900: '#16181b',
950: '#0b0d0e'
}
},
{
name: 'carbon',
palette: {
0: '#ffffff',
50: '#eef0f2',
100: '#dde1e6',
200: '#c7cdd5',
300: '#a8b0bc',
400: '#8691a0',
500: '#697080',
600: '#545a66',
700: '#41464f',
800: '#303439',
900: '#181a1d',
950: '#0c0e10'
}
},
{
name: 'ash',
palette: {
0: '#ffffff',
50: '#f4f6f8',
100: '#e6e9ed',
200: '#d3d8de',
300: '#b4bcc7',
400: '#919ca9',
500: '#71808a',
600: '#5a666f',
700: '#464f56',
800: '#34393e',
900: '#1a1e21',
950: '#0d1012'
}
},
{
name: 'smoke',
palette: {
0: '#ffffff',
50: '#f6f6f7',
100: '#ebebed',
200: '#dadadd',
300: '#bbbcc1',
400: '#989aa1',
500: '#797c84',
600: '#63666d',
700: '#4f5257',
800: '#3a3d42',
900: '#1d2023',
950: '#0e1011'
}
},
{
name: 'midnight-blue',
palette: {
0: '#ffffff',
50: '#fcfcfd',
100: '#f7f8fb',
200: '#f0f2f7',
300: '#e5e8f0',
400: '#d3d8e3',
500: '#5c6b7a',
600: '#4a5866',
700: '#3b4651',
800: '#38424d',
900: '#1f252c',
950: '#121518'
}
},
{
name: 'charcoal',
palette: {
0: '#ffffff',
50: '#f0f0f0',
100: '#e5e5e5',
200: '#d1d1d1',
300: '#b8b8b8',
400: '#9a9a9a',
500: '#7d7d7d',
600: '#666666',
700: '#525252',
800: '#3d3d3d',
900: '#242424',
950: '#141414'
}
},
{
name: 'soho',
palette: {
0: '#ffffff',
50: '#ececec',
100: '#dedfdf',
200: '#c4c4c6',
300: '#adaeb0',
400: '#97979b',
500: '#7f8084',
600: '#6a6b70',
700: '#55565b',
800: '#3f4046',
900: '#252530',
950: '#16161d'
}
},
{
name: 'viva',
palette: {
0: '#ffffff',
50: '#f3f3f3',
100: '#e7e7e8',
200: '#cfd0d0',
300: '#b7b8b9',
400: '#9fa1a1',
500: '#87898a',
600: '#6e7173',
700: '#565a5b',
800: '#3e4244',
900: '#1e2324',
950: '#0e1315'
}
},
{
name: 'ocean',
palette: {
0: '#ffffff',
50: '#fbfcfc',
100: '#F7F9F8',
200: '#EFF3F2',
300: '#DADEDD',
400: '#B1B7B6',
500: '#828787',
600: '#5F7274',
700: '#415B61',
800: '#324f5a',
900: '#183240',
950: '#0c1920'
}
},
{
name: 'light-slate',
palette: {
0: '#ffffff',
50: '#fcfcfd',
100: '#f8fafc',
200: '#f1f5f9',
300: '#e2e8f0',
400: '#cbd5e1',
500: '#94a3b8',
600: '#64748b',
700: '#475569',
800: '#3d5068',
900: '#1e293b',
950: '#0f172a'
}
},
{
name: 'olive',
palette: {
0: '#ffffff',
50: '#fcfcfb',
100: '#f8f9f6',
200: '#f1f4ed',
300: '#e6eadc',
400: '#d4dfc5',
500: '#6a755e',
600: '#555d4c',
700: '#434a3d',
800: '#3d4438',
900: '#232824',
950: '#131614'
}
},
{
name: 'crimson',
palette: {
0: '#ffffff',
50: '#fcfbfb',
100: '#f8f5f5',
200: '#f1ebeb',
300: '#e6d9d9',
400: '#d4c3c3',
500: '#755e5e',
600: '#5d4c4c',
700: '#4a3d3d',
800: '#423838',
900: '#242020',
950: '#141212'
}
}
];
constructor() { constructor() {
const initialState = this.loadAppState(); const initialState = this.loadAppState();
this.appState.set({ ...initialState }); this.appStateSignal.set(initialState.state);
this.document.documentElement.classList.add('p-dark');
if (isPlatformBrowser(this.platformId)) { if (initialState.shouldPersist) {
this.onPresetChange(); this.saveAppState(initialState.state);
} }
this.applyAppState(initialState.state);
effect(() => {
const state = this.appState();
if (!this.initialized || !state) {
this.initialized = true;
return;
}
this.saveAppState(state);
this.onPresetChange();
});
} }
private loadAppState(): AppState { setThemePreference(themePreference: AppTheme): void {
this.updateAppState({themePreference});
}
setCustomPrimary(customPrimary: CustomPrimary): void {
this.updateAppState({customPrimary});
}
setAppearancePreference(appearancePreference: AppearancePreference): void {
this.updateAppState({appearancePreference});
}
private updateAppState(patch: AppState): void {
const state = this.withDefaults({
...this.appStateSignal(),
...patch,
});
this.appStateSignal.set(state);
this.saveAppState(state);
this.applyAppState(state);
}
private loadAppState(): LoadedAppState {
if (isPlatformBrowser(this.platformId)) { if (isPlatformBrowser(this.platformId)) {
const storedState = localStorage.getItem(this.STORAGE_KEY); const storedState = localStorage.getItem(this.STORAGE_KEY);
if (storedState) { if (storedState) {
return JSON.parse(storedState); try {
const parsedState = JSON.parse(storedState) as StoredAppState;
return {
state: this.normalizeStoredState(parsedState),
shouldPersist: this.isLegacyPaletteState(parsedState),
};
} catch {
return {state: this.withDefaults({}), shouldPersist: false};
}
} }
} }
return {state: this.withDefaults({}), shouldPersist: false};
}
private normalizeStoredState(state: StoredAppState): AppState {
if (this.isLegacyPaletteState(state)) {
return this.withDefaults({
themePreference: DEFAULT_APP_THEME,
appearancePreference: LEGACY_APPEARANCE_PREFERENCE,
customPrimary: DEFAULT_CUSTOM_PRIMARY,
});
}
return this.withDefaults({
themePreference: state.themePreference,
appearancePreference: state.appearancePreference,
customPrimary: state.customPrimary,
});
}
private isLegacyPaletteState(state: StoredAppState): boolean {
return 'preset' in state || 'primary' in state || 'surface' in state;
}
private withDefaults(state: AppState): AppState {
return { return {
preset: 'Aura', themePreference: this.resolveThemePreference(state.themePreference),
primary: 'orange', appearancePreference: this.resolveAppearancePreference(state.appearancePreference),
surface: 'ash', customPrimary: this.resolveCustomPrimary(state.customPrimary),
}; };
} }
private resolveCustomPrimary(customPrimary: AppState['customPrimary']): CustomPrimary {
if (customPrimary && CUSTOM_PRIMARY_OPTIONS.includes(customPrimary)) {
return customPrimary;
}
return DEFAULT_CUSTOM_PRIMARY;
}
private resolveThemePreference(themePreference: AppState['themePreference']): AppTheme {
if (themePreference && this.themes.some((option) => option.name === themePreference)) {
return themePreference;
}
return DEFAULT_APP_THEME;
}
private resolveAppearancePreference(appearancePreference: AppState['appearancePreference']): AppearancePreference {
if (appearancePreference === 'light' || appearancePreference === 'dark' || appearancePreference === 'system') {
return appearancePreference;
}
return DEFAULT_APPEARANCE_PREFERENCE;
}
private effectiveAppearancePreference(appearancePreference: AppearancePreference): 'light' | 'dark' {
if (appearancePreference !== 'system') {
return appearancePreference;
}
if (isPlatformBrowser(this.platformId) && globalThis.window?.matchMedia) {
return globalThis.window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
}
return 'dark';
}
private saveAppState(state: AppState): void { private saveAppState(state: AppState): void {
if (isPlatformBrowser(this.platformId)) { if (isPlatformBrowser(this.platformId)) {
localStorage.setItem(this.STORAGE_KEY, JSON.stringify(state)); localStorage.setItem(this.STORAGE_KEY, JSON.stringify(this.withDefaults(state)));
} }
} }
private getSurfacePalette(surface: string): ColorPalette { applyCurrentTheme(): void {
return this.surfaces.find(s => s.name === surface)?.palette ?? {}; this.applyAppState(this.withDefaults(this.appStateSignal()));
} }
private resolveThemePalettes(): ResolvedThemePalettes { private applyAppState(state: AppState): void {
const primaryName = this.appState().primary ?? 'orange'; this.applyThemeAttributes(state);
const surfaceName = this.appState().surface ?? 'ash';
const presetPalette = (Aura.primitive ?? {}) as Record<string, ColorPalette>;
const primary = presetPalette[primaryName] ?? presetPalette['orange'] ?? {};
const surface = this.getSurfacePalette(surfaceName);
const isNoir = primaryName === 'noir';
return {
primary,
surface,
appPrimary: isNoir ? surface : primary,
isNoir,
};
}
private buildPrimePreset(theme: ResolvedThemePalettes): object {
if (theme.isNoir) {
return {
semantic: {
primary: { ...theme.surface },
colorScheme: {
dark: {
primary: {
color: '{primary.50}',
contrastColor: '{primary.950}',
hoverColor: '{primary.200}',
activeColor: '{primary.300}'
},
highlight: {
background: '{primary.50}',
focusBackground: '{primary.300}',
color: '{primary.950}',
focusColor: '{primary.950}'
}
}
}
}
};
}
return {
semantic: {
primary: theme.primary,
colorScheme: {
dark: {
primary: {
color: '{primary.400}',
contrastColor: '{surface.900}',
hoverColor: '{primary.300}',
activeColor: '{primary.200}'
},
highlight: {
background: 'color-mix(in srgb, {primary.400}, transparent 84%)',
focusBackground: 'color-mix(in srgb, {primary.400}, transparent 76%)',
color: 'rgba(255,255,255,.87)',
focusColor: 'rgba(255,255,255,.87)'
}
}
}
}
};
}
private getFaviconGradient(theme: ResolvedThemePalettes): { start: string; end: string } {
if (theme.isNoir) {
return {
start: theme.surface['50'] ?? theme.surface['0'] ?? '#f4f6f8',
end: theme.surface['300'] ?? theme.surface['200'] ?? '#b4bcc7'
};
}
return {
start: theme.primary['300'] ?? theme.primary['500'] ?? '#fdba74',
end: theme.primary['500'] ?? theme.primary['700'] ?? '#f97316'
};
}
onPresetChange(): void {
if (!isPlatformBrowser(this.platformId)) { if (!isPlatformBrowser(this.platformId)) {
return; return;
} }
const theme = this.resolveThemePalettes(); applyPrimeTheme(primeThemeTokenPalettes());
this.applyPrimeTheme(theme); this.updateFavicon();
this.applyDesignTokens(theme);
const faviconGradient = this.getFaviconGradient(theme);
this.faviconService.updateFavicon(faviconGradient.start, faviconGradient.end);
} }
private applyPrimeTheme(theme: ResolvedThemePalettes): void { private applyThemeAttributes(state: AppState): void {
$t() const root = this.document.documentElement;
.preset(Aura) const theme = this.resolveThemePreference(state.themePreference);
.preset(this.buildPrimePreset(theme)) const appearancePreference = this.resolveAppearancePreference(state.appearancePreference);
.surfacePalette(theme.surface) const effective = this.effectiveAppearancePreference(appearancePreference);
.use({ useDefaultOptions: true });
root.dataset['appTheme'] = theme;
root.classList.toggle('dark', effective === 'dark');
root.style.setProperty('color-scheme', effective);
this.applyCustomPrimary(root, theme, this.resolveCustomPrimary(state.customPrimary));
this.syncSystemSchemeListener(appearancePreference);
} }
private applyDesignTokens(theme: ResolvedThemePalettes): void { private applyCustomPrimary(root: HTMLElement, theme: AppTheme, customPrimary: CustomPrimary): void {
const style = this.document.documentElement.style; if (theme === 'custom') {
const appBackground = theme.surface['950'] ?? '#0d1012'; PRIMARY_COLOR_STOPS.forEach((stop) => {
const surfaceContent = theme.surface['900'] ?? '#1a1e21'; root.style.setProperty(`--color-primary-${stop}`, `var(--color-${customPrimary}-${stop})`);
const pageBackground = `color-mix(in srgb, ${surfaceContent} 82%, ${appBackground})`; });
const surfaceCard = `color-mix(in srgb, ${surfaceContent} 62%, ${theme.surface['800'] ?? '#34393e'})`; } else {
const borderSubtle = theme.surface['800'] ?? '#34393e'; PRIMARY_COLOR_STOPS.forEach((stop) => root.style.removeProperty(`--color-primary-${stop}`));
const borderStrong = theme.surface['700'] ?? '#464f56'; }
}
const primary400 = theme.isNoir ? theme.surface['50'] : theme.primary['400']; private systemSchemeMedia: MediaQueryList | null = null;
const primary500 = theme.isNoir ? theme.surface['50'] : (theme.primary['500'] ?? theme.primary['400']); private systemSchemeListener: ((event: MediaQueryListEvent) => void) | null = null;
style.setProperty('--primary-color', primary400 ?? '#fb923c'); private syncSystemSchemeListener(appearancePreference: AppearancePreference): void {
style.setProperty('--primary-color-rgb', this.toRgbChannels(primary500)); if (!isPlatformBrowser(this.platformId) || !globalThis.window?.matchMedia) {
style.setProperty('--primary-contrast-color', theme.isNoir ? (theme.surface['950'] ?? '#0d1012') : (theme.surface['900'] ?? '#1a1e21')); return;
style.setProperty('--primary-hover-color', theme.isNoir ? (theme.surface['200'] ?? '#d3d8de') : (theme.primary['300'] ?? primary400 ?? '#fdba74')); }
style.setProperty('--primary-text-color', primary400 ?? '#fb923c'); if (appearancePreference === 'system') {
style.setProperty('--primary-text-color-dark', theme.isNoir ? (theme.surface['950'] ?? '#0d1012') : (theme.primary['900'] ?? '#9a3412')); if (!this.systemSchemeMedia) {
this.systemSchemeMedia = globalThis.window.matchMedia('(prefers-color-scheme: dark)');
style.setProperty('--surface-app', appBackground); this.systemSchemeListener = () => this.applyCurrentTheme();
style.setProperty('--surface-page', pageBackground); this.systemSchemeMedia.addEventListener('change', this.systemSchemeListener);
style.setProperty('--surface-content', surfaceContent);
style.setProperty('--surface-card', surfaceCard);
style.setProperty('--surface-toolbar', `color-mix(in srgb, ${appBackground} 70%, ${surfaceContent})`);
style.setProperty('--surface-overlay', surfaceContent);
style.setProperty('--border-subtle', borderSubtle);
style.setProperty('--border-strong', borderStrong);
style.setProperty('--state-hover', 'color-mix(in srgb, var(--surface-400) 12%, transparent)');
style.setProperty('--state-active', 'color-mix(in srgb, var(--primary-color) 8%, transparent)');
style.setProperty('--ground-background', 'var(--surface-app)');
style.setProperty('--overlay-background', 'var(--surface-overlay)');
style.setProperty('--card-background', 'var(--surface-card)');
style.setProperty('--content-background', 'var(--surface-content)');
style.setProperty('--code-background', 'var(--surface-content)');
style.setProperty('--border-color', 'var(--border-subtle)');
style.setProperty('--content-border-color', 'var(--border-subtle)');
style.setProperty('--surface-hover', 'var(--state-hover)');
style.setProperty('--surface-border', 'var(--border-subtle)');
style.setProperty('--text-color', theme.surface['0'] ?? '#ffffff');
style.setProperty('--text-color-secondary', theme.surface['300'] ?? '#b4bcc7');
style.setProperty('--text-secondary-color', theme.surface['400'] ?? '#919ca9');
style.setProperty('--text-muted-color', theme.surface['400'] ?? '#919ca9');
style.setProperty('--high-contrast-text-color', theme.surface['0'] ?? '#ffffff');
Object.entries(theme.surface).forEach(([stop, value]) => {
style.setProperty(`--surface-${stop}`, value);
});
COLOR_STOPS.forEach((stop) => {
const value = theme.appPrimary[stop];
if (value) {
style.setProperty(`--primary-${stop}`, value);
} }
}); } else if (this.systemSchemeMedia && this.systemSchemeListener) {
this.systemSchemeMedia.removeEventListener('change', this.systemSchemeListener);
this.systemSchemeMedia = null;
this.systemSchemeListener = null;
}
} }
private toRgbChannels(color: string | undefined): string { private updateFavicon(): void {
if (!color) { const styles = getComputedStyle(this.document.documentElement);
return '74, 222, 128'; this.faviconService.updateFavicon(
} styles.getPropertyValue('--color-primary-300').trim(),
styles.getPropertyValue('--color-primary-500').trim(),
const normalized = color.startsWith('#') ? color.slice(1) : color; );
const hex = normalized.length === 3
? normalized.split('').map((char) => char + char).join('')
: normalized;
if (hex.length !== 6) {
return '74, 222, 128';
}
const value = Number.parseInt(hex, 16);
if (Number.isNaN(value)) {
return '74, 222, 128';
}
return `${(value >> 16) & 255}, ${(value >> 8) & 255}, ${value & 255}`;
} }
} }
@@ -5,7 +5,7 @@
min-height: 100vh; min-height: 100vh;
min-width: 100vw; min-width: 100vw;
overflow: hidden; overflow: hidden;
background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 50%, #0f172a 100%); background: linear-gradient(135deg, var(--color-logo-start) 0%, var(--color-logo-end) 100%);
position: relative; position: relative;
&::before { &::before {
@@ -15,7 +15,7 @@
left: -50%; left: -50%;
width: 200%; width: 200%;
height: 200%; height: 200%;
background: radial-gradient(circle, rgb(59 130 246 / 10%) 0%, transparent 70%); background: radial-gradient(circle, color-mix(in srgb, var(--color-logo-start) 22%, transparent) 0%, transparent 70%);
animation: float 20s ease-in-out infinite; animation: float 20s ease-in-out infinite;
} }
} }
@@ -42,9 +42,9 @@
width: 100%; width: 100%;
border-radius: 2rem; border-radius: 2rem;
padding: 2px; padding: 2px;
background: linear-gradient(135deg, var(--primary-color) 0%, rgb(59 130 246 / 30%) 50%, transparent 100%); background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 70%, transparent) 0%, color-mix(in srgb, var(--color-primary) 30%, transparent) 50%, transparent 100%);
box-shadow: 0 20px 60px rgb(0 0 0 / 40%); box-shadow: 0 20px 60px rgb(0 0 0 / 40%);
transition: all 0.3s ease; transition: box-shadow 0.3s ease, transform 0.3s ease;
&:hover { &:hover {
box-shadow: 0 25px 70px rgb(0 0 0 / 50%); box-shadow: 0 25px 70px rgb(0 0 0 / 50%);
@@ -54,7 +54,7 @@
@mixin auth-card { @mixin auth-card {
width: 100%; width: 100%;
background: rgb(17 24 39 / 95%); background: var(--color-card);
backdrop-filter: blur(20px); backdrop-filter: blur(20px);
border-radius: calc(2rem - 2px); border-radius: calc(2rem - 2px);
padding: 3rem 2.5rem; padding: 3rem 2.5rem;
@@ -79,7 +79,7 @@
height: 4rem; height: 4rem;
margin: 0 auto; margin: 0 auto;
display: block; display: block;
filter: drop-shadow(0 4px 12px rgb(59 130 246 / 40%)); filter: drop-shadow(0 4px 12px rgb(0 0 0 / 30%));
transition: transform 0.3s ease; transition: transform 0.3s ease;
&:hover { &:hover {
@@ -95,8 +95,8 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 50%; border-radius: 50%;
background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%); background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
box-shadow: 0 4px 12px rgb(59 130 246 / 40%); box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
transition: transform 0.3s ease; transition: transform 0.3s ease;
i { i {
@@ -113,7 +113,7 @@
font-size: 2rem; font-size: 2rem;
font-weight: 700; font-weight: 700;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%); background: linear-gradient(135deg, var(--color-text-strong) 0%, var(--color-primary) 100%);
background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
@@ -124,7 +124,7 @@
@mixin auth-subtitle { @mixin auth-subtitle {
font-size: 0.95rem; font-size: 0.95rem;
color: rgb(255 255 255 / 70%); color: var(--color-text-secondary);
font-weight: 400; font-weight: 400;
line-height: 1.5; line-height: 1.5;
max-width: 400px; max-width: 400px;
@@ -149,19 +149,19 @@
gap: 0.5rem; gap: 0.5rem;
font-size: 0.95rem; font-size: 0.95rem;
font-weight: 600; font-weight: 600;
color: rgb(255 255 255 / 90%); color: var(--color-text);
i { i {
color: var(--primary-color); color: var(--color-primary);
font-size: 0.875rem; font-size: 0.875rem;
} }
} }
@mixin form-input { @mixin form-input {
transition: all 0.3s ease; transition: box-shadow 0.3s ease;
&:focus { &:focus {
box-shadow: 0 0 0 3px rgb(59 130 246 / 20%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
} }
} }
@@ -169,7 +169,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0.375rem; gap: 0.375rem;
color: #ef4444; color: var(--color-danger);
font-size: 0.8rem; font-size: 0.8rem;
margin-top: -0.25rem; margin-top: -0.25rem;
animation: fade-in 0.3s ease-out; animation: fade-in 0.3s ease-out;
@@ -186,13 +186,13 @@
height: 3rem; height: 3rem;
font-size: 1rem; font-size: 1rem;
font-weight: 600; font-weight: 600;
transition: all 0.3s ease; transition: box-shadow 0.3s ease, transform 0.3s ease;
background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%); background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
border: none; border: none;
&:hover:not(:disabled) { &:hover:not(:disabled) {
transform: translateY(-2px); transform: translateY(-2px);
box-shadow: 0 8px 24px rgb(59 130 246 / 40%); box-shadow: 0 8px 24px rgb(0 0 0 / 30%);
} }
&:active:not(:disabled) { &:active:not(:disabled) {
@@ -65,11 +65,11 @@ $settings-item-border-left-width: 3px;
gap: 0.5rem; gap: 0.5rem;
font-size: $settings-page-title-size; font-size: $settings-page-title-size;
font-weight: $settings-page-title-weight; font-weight: $settings-page-title-weight;
color: var(--text-color); color: var(--color-text);
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
.pi { .pi {
color: var(--primary-color); color: var(--color-primary);
font-size: 1.25rem; font-size: 1.25rem;
} }
} }
@@ -89,7 +89,7 @@ $settings-item-border-left-width: 3px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: $settings-card-gap; gap: $settings-card-gap;
background: var(--card-background); background: var(--color-card);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: $settings-card-border-radius; border-radius: $settings-card-border-radius;
padding: $settings-card-padding; padding: $settings-card-padding;
@@ -114,11 +114,11 @@ $settings-item-border-left-width: 3px;
gap: 0.5rem; gap: 0.5rem;
font-size: $settings-section-title-size; font-size: $settings-section-title-size;
font-weight: $settings-section-title-weight; font-weight: $settings-section-title-weight;
color: var(--text-color); color: var(--color-text);
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
.pi { .pi {
color: var(--primary-color); color: var(--color-primary);
font-size: $settings-section-title-icon-size; font-size: $settings-section-title-icon-size;
} }
} }
@@ -152,12 +152,12 @@ $settings-item-border-left-width: 3px;
@mixin settings-item { @mixin settings-item {
padding: $settings-item-padding; padding: $settings-item-padding;
border-radius: $settings-item-border-radius; border-radius: $settings-item-border-radius;
border-left: $settings-item-border-left-width solid var(--primary-color); border-left: $settings-item-border-left-width solid var(--color-primary);
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); background: color-mix(in srgb, var(--color-card) 35%, var(--color-page));
transition: border-color 0.2s ease, background 0.2s ease; transition: border-color 0.2s ease, background 0.2s ease;
&:hover { &:hover {
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); background: color-mix(in srgb, var(--color-card) 20%, var(--color-page));
} }
@media (width <= 768px) { @media (width <= 768px) {
@@ -176,7 +176,7 @@ $settings-item-border-left-width: 3px;
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
.pi { .pi {
color: var(--primary-color); color: var(--color-primary);
font-size: 1rem; font-size: 1rem;
} }
} }
@@ -190,7 +190,7 @@ $settings-item-border-left-width: 3px;
// ============================================================================ // ============================================================================
@mixin settings-label { @mixin settings-label {
font-weight: $settings-label-weight; font-weight: $settings-label-weight;
color: var(--text-color); color: var(--color-text);
font-size: $settings-label-size; font-size: $settings-label-size;
} }
@@ -236,7 +236,7 @@ $settings-item-border-left-width: 3px;
line-height: 1.5; line-height: 1.5;
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
border-radius: 6px; border-radius: 6px;
color: var(--text-color); color: var(--color-text);
strong { strong {
font-weight: 600; font-weight: 600;
@@ -251,24 +251,20 @@ $settings-item-border-left-width: 3px;
@mixin settings-warning-notice { @mixin settings-warning-notice {
@include settings-notice-base; @include settings-notice-base;
background: color-mix(in srgb, var(--ground-background) 85%, var(--p-red-600) 15%); background: color-mix(in srgb, var(--color-card) 85%, var(--color-red-600) 15%);
border-left: 3px solid var(--p-red-500); border-left-width: 3px;
border-left-style: solid;
.pi-exclamation-triangle { .pi-exclamation-triangle {
color: var(--p-red-400);
margin-top: 0.125rem; margin-top: 0.125rem;
flex-shrink: 0; flex-shrink: 0;
} }
strong {
color: var(--p-red-300);
}
} }
@mixin settings-info-notice { @mixin settings-info-notice {
@include settings-notice-base; @include settings-notice-base;
background: color-mix(in srgb, var(--ground-background) 90%, var(--p-blue-600) 10%); background: color-mix(in srgb, var(--color-card) 90%, var(--p-blue-600) 10%);
border-left: 3px solid var(--p-blue-400); border-left: 3px solid var(--p-blue-400);
.pi-info-circle { .pi-info-circle {
@@ -335,19 +331,19 @@ $settings-item-border-left-width: 3px;
padding: 0.375rem 0.5rem; padding: 0.375rem 0.5rem;
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-radius: 4px; border-radius: 4px;
background: var(--ground-background); background: var(--color-card);
color: var(--text-color); color: var(--color-text);
font-size: $settings-section-description-size; font-size: $settings-section-description-size;
text-align: center; text-align: center;
transition: border-color 0.2s ease; transition: border-color 0.2s ease;
&:hover { &:hover {
border-color: var(--primary-color); border-color: var(--color-primary);
} }
&:focus { &:focus {
outline: none; outline: none;
border-color: var(--primary-color); border-color: var(--color-primary);
} }
} }
@@ -407,14 +403,14 @@ $settings-item-border-left-width: 3px;
.p-datatable-thead > tr > th { .p-datatable-thead > tr > th {
font-weight: 600; font-weight: 600;
padding: 0.75rem; padding: 0.75rem;
background: color-mix(in srgb, var(--text-color) 3%, transparent); background: color-mix(in srgb, var(--color-text) 3%, transparent);
border-bottom: 1px solid var(--p-content-border-color); border-bottom: 1px solid var(--p-content-border-color);
font-size: $settings-description-size; font-size: $settings-description-size;
} }
.p-datatable-tbody > tr { .p-datatable-tbody > tr {
&:hover { &:hover {
background: color-mix(in srgb, var(--text-color) 3%, transparent); background: color-mix(in srgb, var(--color-text) 3%, transparent);
} }
> td { > td {
@@ -448,7 +444,7 @@ $settings-item-border-left-width: 3px;
gap: 1rem; gap: 1rem;
padding: 1.5rem; padding: 1.5rem;
border-radius: $settings-card-border-radius; border-radius: $settings-card-border-radius;
background: color-mix(in srgb, var(--ground-background) 85%, var(--p-red-600) 15%); background: color-mix(in srgb, var(--color-card) 85%, var(--p-red-600) 15%);
border: 1px solid var(--p-content-border-color); border: 1px solid var(--p-content-border-color);
border-left: 3px solid var(--p-red-500); border-left: 3px solid var(--p-red-500);
max-width: 500px; max-width: 500px;
@@ -492,9 +488,9 @@ $settings-item-border-left-width: 3px;
gap: 0.375rem; gap: 0.375rem;
padding: 0.5rem 0.75rem; padding: 0.5rem 0.75rem;
border-radius: 0.375rem; border-radius: 0.375rem;
border: 1.5px solid color-mix(in srgb, var(--text-color) 20%, transparent); border: 1.5px solid color-mix(in srgb, var(--color-text) 20%, transparent);
background: color-mix(in srgb, var(--text-color) 5%, transparent); background: color-mix(in srgb, var(--color-text) 5%, transparent);
color: var(--text-color); color: var(--color-text);
cursor: pointer; cursor: pointer;
transition: all 0.2s ease; transition: all 0.2s ease;
font-size: $settings-description-size; font-size: $settings-description-size;
@@ -512,14 +508,14 @@ $settings-item-border-left-width: 3px;
&:hover { &:hover {
transform: translateY(-2px); transform: translateY(-2px);
box-shadow: 0 4px 12px rgb(0 0 0 / 10%); box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
border-color: color-mix(in srgb, var(--primary-color) 40%, transparent); border-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
} }
&.selected { &.selected {
border-color: var(--primary-color); border-color: var(--color-primary);
background: color-mix(in srgb, var(--primary-color) 10%, transparent); background: color-mix(in srgb, var(--color-primary) 10%, transparent);
color: var(--primary-color); color: var(--color-primary);
box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 15%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 15%, transparent);
&:hover { &:hover {
transform: translateY(-2px); transform: translateY(-2px);
@@ -30,7 +30,7 @@
--sidebar-section-inline-end: var(--space-3); --sidebar-section-inline-end: var(--space-3);
--sidebar-section-font-size: var(--text-xs); --sidebar-section-font-size: var(--text-xs);
--sidebar-section-font-weight: 500; --sidebar-section-font-weight: 500;
--sidebar-focus-ring: inset 0 0 0 1px color-mix(in srgb, var(--primary-color) 50%, transparent); --sidebar-focus-ring: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 50%, transparent);
position: relative; position: relative;
grid-area: sidebar; grid-area: sidebar;
@@ -41,8 +41,9 @@
user-select: none; user-select: none;
transition: transform var(--transition-base), transition: transform var(--transition-base),
width var(--transition-base); width var(--transition-base);
background-color: var(--surface-app); background-color: var(--color-app);
border-right: 1px solid var(--border-color); color: var(--color-text);
border-right: 1px solid var(--color-border);
padding: var(--space-3) var(--sidebar-shell-padding-inline-end) var(--space-3) var(--sidebar-shell-padding-inline-start); padding: var(--space-3) var(--sidebar-shell-padding-inline-end) var(--space-3) var(--sidebar-shell-padding-inline-start);
} }
@@ -96,12 +97,12 @@ body.layout-resizing-cursor {
gap: var(--space-2); gap: var(--space-2);
padding: var(--space-2) var(--space-3); padding: var(--space-2) var(--space-3);
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
color: var(--text-color); color: var(--color-text);
font-size: var(--text-base); font-size: var(--text-base);
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
} }
app-icon-display { app-icon-display {
@@ -157,7 +158,7 @@ body.layout-resizing-cursor {
width: 100%; width: 100%;
height: 1px; height: 1px;
margin: 0 0.4rem; margin: 0 0.4rem;
background-color: var(--border-color); background-color: var(--color-border);
} }
/* Library/Shelf/Magic Shelf children always visible (no toggle heading to drive collapse). */ /* Library/Shelf/Magic Shelf children always visible (no toggle heading to drive collapse). */
@@ -250,7 +251,7 @@ body.layout-resizing-cursor {
box-sizing: border-box; box-sizing: border-box;
font-size: var(--sidebar-section-font-size); font-size: var(--sidebar-section-font-size);
font-weight: var(--sidebar-section-font-weight); font-weight: var(--sidebar-section-font-weight);
color: var(--text-color-secondary); color: var(--color-text-secondary);
height: var(--sidebar-section-min-height); height: var(--sidebar-section-min-height);
min-height: var(--sidebar-section-min-height); min-height: var(--sidebar-section-min-height);
margin: var(--sidebar-section-spacing-before) 0 var(--sidebar-section-spacing-after); margin: var(--sidebar-section-spacing-before) 0 var(--sidebar-section-spacing-after);
+8 -8
View File
@@ -17,8 +17,8 @@ html {
} }
body { body {
background-color: var(--surface-app); background-color: var(--color-app);
color: var(--text-color); color: var(--color-text);
font-family: var(--font-family), serif; font-family: var(--font-family), serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
@@ -42,12 +42,12 @@ picture {
html, html,
body { body {
background-color: var(--surface-page); background-color: var(--color-page);
} }
} }
a { a {
color: var(--primary-color); color: var(--color-primary);
text-decoration: none; text-decoration: none;
} }
@@ -63,7 +63,7 @@ h4,
h5, h5,
h6 { h6 {
margin: 1.5rem 0 1rem; margin: 1.5rem 0 1rem;
color: var(--high-contrast-text-color); color: var(--color-text-strong);
font-weight: 500; font-weight: 500;
line-height: 1.2; line-height: 1.2;
overflow-wrap: break-word; overflow-wrap: break-word;
@@ -99,7 +99,7 @@ h6 {
p { p {
margin: 0 0 1rem; margin: 0 0 1rem;
color: var(--text-color); color: var(--color-text);
line-height: 1.5; line-height: 1.5;
overflow-wrap: break-word; overflow-wrap: break-word;
@@ -109,7 +109,7 @@ p {
} }
p.p-secondary { p.p-secondary {
color: var(--text-secondary-color); color: var(--color-text-secondary);
} }
mark { mark {
@@ -127,7 +127,7 @@ blockquote {
hr { hr {
margin: 1rem 0; margin: 1rem 0;
border-top: solid var(--border-color); border-top: solid var(--color-border);
border-width: 1px 0 0; border-width: 1px 0 0;
} }
+270 -1
View File
@@ -1 +1,270 @@
$compat-layer-initialized: true; @use "../layout/styles/layout/variables";
/*
* Compatibility tokens.
*
* Used for existing UI for the time being.
* As UI work is done to use Tailwind, this file should gradually shrink until it can be removed.
*/
:root {
--surface-app: var(--color-app);
--surface-page: var(--color-page);
--surface-card: var(--color-card);
--primary-color: var(--color-primary);
--primary-contrast-color: var(--color-primary-contrast);
--primary-hover-color: var(--color-primary-hover);
--primary-text-color: var(--color-primary-text);
--text-color: var(--color-text);
--text-color-secondary: var(--color-text-secondary);
--text-secondary-color: var(--color-text-secondary);
--ground-background: var(--color-card);
--overlay-background: var(--color-page);
--card-background: var(--color-card);
--border-color: var(--color-border);
--surface-hover: var(--color-surface-hover);
--control-bg: color-mix(in srgb, var(--color-surface-0) 6%, var(--surface-card));
--control-primary-bg: color-mix(in srgb, var(--primary-color) 15%, var(--surface-card));
--control-bg-hover: color-mix(in srgb, var(--color-surface-0) 6%, var(--control-bg));
--control-border: color-mix(in srgb, var(--color-surface-0) 12%, var(--control-bg));
--control-border-hover: color-mix(in srgb, var(--color-surface-0) 18%, var(--control-bg));
--control-primary-bg-hover: color-mix(in srgb, var(--primary-color) 12%, var(--control-primary-bg));
--control-primary-border: color-mix(in srgb, var(--primary-color) 25%, var(--control-primary-bg));
--control-primary-border-hover: color-mix(in srgb, var(--primary-color) 45%, var(--control-primary-bg));
--control-focus-border: color-mix(in srgb, var(--primary-color) 50%, var(--control-bg));
--control-focus-ring-color: color-mix(in srgb, var(--primary-color) 50%, transparent);
--control-height: 2.625rem;
--control-height-sm: 2.25rem;
--control-padding-x: 0.75rem;
--control-padding-x-sm: 0.875rem;
--control-icon-size: 1rem;
--control-icon-size-sm: 0.875rem;
--control-gap: 0.5rem;
--control-radius: var(--radius-md);
--control-disabled-opacity: 0.5;
--danger-color: var(--color-danger);
--danger-hover-color: var(--color-danger-hover);
--warning-color: var(--color-warning);
--info-color: var(--color-info);
--focus-ring: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 40%, transparent);
--font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
--font-size-root: 14px;
--page-content-gap: var(--space-4);
--page-gutter-block: var(--space-5);
--page-gutter-inline: var(--space-5);
--page-header-gap: var(--space-4);
--radius-lg: 12px;
--radius-md: 8px;
--radius-pill: 999px;
--radius-sm: 4px;
--shadow-overlay: 0 30px 80px -20px rgb(0 0 0 / 70%), 0 10px 30px -10px rgb(0 0 0 / 50%);
--shadow-sm: 0 2px 4px rgb(0 0 0 / 25%);
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-sm: 0.875rem;
--text-xs: 0.75rem;
--transition-base: 0.2s ease;
--transition-fast: 0.15s ease;
--book-type-pdf-color: var(--color-red-600);
--book-type-epub-color: var(--color-green-600);
--book-type-cbx-color: var(--color-blue-500);
--book-type-cbz-color: var(--color-cyan-500);
--book-type-cbr-color: var(--color-orange-500);
--book-type-cb7-color: var(--color-violet-500);
--book-type-fb2-color: var(--color-pink-500);
--book-type-mobi-color: var(--color-indigo-500);
--book-type-azw3-color: var(--color-teal-500);
--book-type-audiobook-color: var(--color-yellow-500);
--book-type-m4b-color: var(--color-yellow-500);
--book-type-mp3-color: var(--color-lime-500);
--book-type-m4a-color: var(--color-rose-500);
--book-type-opus-color: var(--color-cyan-500);
--book-type-physical-color: var(--color-violet-500);
}
/*
* PrimeNG compatibility layer.
*/
@mixin sidebar-fixed-overlay {
position: fixed !important;
top: var(--sidebar-popover-top, 0.75rem) !important;
bottom: auto !important;
left: var(--sidebar-popover-left, calc(var(--sidebar-width, 225px) + 0.5rem)) !important;
max-height: var(--sidebar-popover-max-height, calc(100vh - 1rem)) !important;
margin: 0 !important;
overflow: auto !important;
transform: none !important;
}
.p-dialog {
--card-background: var(--color-page);
@media (width <= 768px) {
width: 95vw !important;
max-width: 95vw !important;
max-height: 95dvh !important;
}
}
.dialog-xs.p-dialog {
width: 90vw;
max-width: 400px;
}
.dialog-sm.p-dialog {
width: 90vw;
max-width: 550px;
}
.dialog-md.p-dialog {
width: 90vw;
max-width: 700px;
}
.dialog-lg.p-dialog {
width: 90vw;
max-width: 900px;
}
.dialog-xl.p-dialog {
width: 95vw;
max-width: 1200px;
}
.dialog-full.p-dialog {
width: 95vw;
max-width: 95vw;
height: 95dvh;
max-height: 95dvh;
.p-dialog-content {
display: flex;
flex-direction: column;
height: 100%;
}
}
.dialog-minimal.p-dialog {
border: none;
.p-dialog-content {
padding: 0;
}
}
.p-confirmdialog {
width: 90vw;
max-width: 500px;
.p-confirmdialog-message {
overflow-wrap: break-word;
white-space: pre-line;
}
}
.p-toast {
top: 4rem !important;
}
.p-inputchips,
.p-inputchips .p-inputchips-input,
.p-inputchips input.p-inputtext {
width: 100% !important;
}
.footer-menu .p-tieredmenu-submenu {
top: auto !important;
bottom: 0;
}
.chart-info-tooltip.p-tooltip {
--p-tooltip-max-width: 25rem;
}
.progress-incomplete .p-progressbar-value {
background-color: var(--color-blue-500);
}
.progress-complete .p-progressbar-value {
background-color: var(--color-green-500);
}
.progress-incomplete-ko .p-progressbar-value {
background-color: var(--color-amber-400);
}
.progress-complete-ko .p-progressbar-value {
background-color: var(--color-violet-500);
}
.progress-incomplete-kobo .p-progressbar-value {
background-color: var(--color-red-700);
}
.progress-complete-kobo .p-progressbar-value {
background-color: var(--color-pink-400);
}
.cover-progress-bar {
--p-progressbar-border-radius: 0 !important;
}
.custom-button-padding .p-button {
padding-block: 0.25rem !important;
}
.book-details-dialog .p-dialog-header {
padding: 1rem 1.25rem !important;
}
.sidebar-flyout-popover.p-popover {
@include sidebar-fixed-overlay;
&::before,
&::after {
display: none !important;
}
}
@media (width <= 991px) {
.sidebar-flyout-popover.p-popover {
max-width: calc(100vw - 1rem) !important;
}
}
@media #{variables.$mobile-shell-media-query} {
.sidebar-entity-menu.p-menu {
@include sidebar-fixed-overlay;
.p-menu-submenu-label {
display: none !important;
}
}
.sidebar-entity-menu.p-menu,
.sidebar-flyout-popover.p-popover .p-menu,
.sidebar-flyout-popover.p-popover .p-tieredmenu {
> .p-menu-list,
.p-menu-list,
> .p-tieredmenu-root-list,
.p-tieredmenu-root-list,
.p-tieredmenu-submenu {
padding-block: var(--space-2) !important;
}
.p-menu-item-content > .p-menu-item-link,
.p-menu-item-link,
.p-tieredmenu-item-content > .p-tieredmenu-item-link,
.p-tieredmenu-item-link {
min-height: 3rem !important;
padding: var(--space-3) var(--space-4) !important;
gap: var(--space-3) !important;
}
}
}
+13 -13
View File
@@ -51,17 +51,17 @@
} }
.user-account-popover .menu-item:hover { .user-account-popover .menu-item:hover {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
} }
.user-account-popover .menu-item:focus-visible { .user-account-popover .menu-item:focus-visible {
background-color: var(--surface-hover); background-color: var(--color-surface-hover);
box-shadow: inset 0 0 0 1px var(--menu-item-focus-ring); box-shadow: inset 0 0 0 1px var(--menu-item-focus-ring);
outline: none; outline: none;
} }
.user-account-popover .menu-item[aria-disabled="true"] { .user-account-popover .menu-item[aria-disabled="true"] {
color: var(--text-color-secondary); color: var(--color-text-secondary);
cursor: not-allowed; cursor: not-allowed;
pointer-events: none; pointer-events: none;
} }
@@ -74,7 +74,7 @@
width: var(--control-icon-size); width: var(--control-icon-size);
height: var(--control-icon-size); height: var(--control-icon-size);
font-size: var(--text-base); font-size: var(--text-base);
color: var(--surface-500); color: var(--color-surface-500);
} }
@media #{variables.$mobile-shell-media-query} { @media #{variables.$mobile-shell-media-query} {
@@ -98,12 +98,12 @@
.user-account-popover { .user-account-popover {
max-width: calc(100vw - 1rem); max-width: calc(100vw - 1rem);
overflow: hidden; overflow: hidden;
border: 1px solid var(--border-color); border: 1px solid var(--color-border);
border-radius: var(--control-radius); border-radius: var(--control-radius);
box-shadow: box-shadow:
0 18px 48px rgb(0 0 0 / 28%), 0 18px 48px rgb(0 0 0 / 28%),
0 4px 16px rgb(0 0 0 / 18%); 0 4px 16px rgb(0 0 0 / 18%);
color: var(--text-color); color: var(--color-text);
font: inherit; font: inherit;
} }
@@ -124,7 +124,7 @@
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
padding: 0.75rem; padding: 0.75rem;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--color-border);
} }
.user-account-popover-title-row { .user-account-popover-title-row {
@@ -148,7 +148,7 @@
} }
.user-account-popover-header h2 span { .user-account-popover-header h2 span {
color: var(--text-color-secondary); color: var(--color-text-secondary);
font-size: var(--text-xs); font-size: var(--text-xs);
font-weight: 500; font-weight: 500;
} }
@@ -164,7 +164,7 @@
border: 0; border: 0;
border-radius: 8px; border-radius: 8px;
background: transparent; background: transparent;
color: var(--surface-500); color: var(--color-surface-500);
font-size: var(--text-base); font-size: var(--text-base);
cursor: pointer; cursor: pointer;
transition: transition:
@@ -174,8 +174,8 @@
.user-account-popover-icon-button:hover, .user-account-popover-icon-button:hover,
.user-account-popover-icon-button:focus-visible { .user-account-popover-icon-button:focus-visible {
background: var(--surface-hover); background: var(--color-surface-hover);
color: var(--text-color); color: var(--color-text);
outline: none; outline: none;
} }
@@ -195,12 +195,12 @@
.user-account-popover .user-account-popover-action { .user-account-popover .user-account-popover-action {
background: transparent; background: transparent;
color: var(--text-color); color: var(--color-text);
} }
.user-account-popover-footer { .user-account-popover-footer {
padding: 0.375rem; padding: 0.375rem;
border-top: 1px solid var(--border-color); border-top: 1px solid var(--color-border);
} }
.user-account-popover .user-account-popover-logout { .user-account-popover .user-account-popover-logout {

Some files were not shown because too many files have changed in this diff Show More