Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

Fix more hardcoded colors in templates and CSS

LearningCircuitdaaa23fbf694
diff --git a/src/local_deep_research/web/templates/pages/benchmark_results.html b/src/local_deep_research/web/templates/pages/benchmark_results.html
index 7f679cd33a..e505ac546d 100644
--- a/src/local_deep_research/web/templates/pages/benchmark_results.html
+++ b/src/local_deep_research/web/templates/pages/benchmark_results.html
@@ -109,7 +109,7 @@
.ldr-summary-label {
font-size: 0.85rem;
- color: #a0a0a0;
+ color: var(--text-muted);
margin-top: 5px;
}
@@ -122,18 +122,18 @@
}
.ldr-accuracy-high {
- background: #1e3a1e;
- color: #4caf50;
+ background: rgba(var(--success-color-rgb), 0.15);
+ color: var(--success-color);
}
.ldr-accuracy-medium {
- background: #3a2a1e;
- color: #ff9800;
+ background: rgba(var(--warning-color-rgb), 0.15);
+ color: var(--warning-color);
}
.ldr-accuracy-low {
- background: #3a1e1e;
- color: #f44336;
+ background: rgba(var(--error-color-rgb), 0.15);
+ color: var(--error-color);
}
.ldr-status-indicator {
@@ -145,23 +145,23 @@
}
.ldr-status-completed {
- background: #1e3a1e;
- color: #4caf50;
+ background: rgba(var(--success-color-rgb), 0.15);
+ color: var(--success-color);
}
.ldr-status-in-progress {
- background: #1e2a3a;
- color: #2196f3;
+ background: rgba(var(--accent-tertiary-rgb), 0.15);
+ color: var(--accent-tertiary);
}
.ldr-status-failed {
- background: #3a1e1e;
- color: #f44336;
+ background: rgba(var(--error-color-rgb), 0.15);
+ color: var(--error-color);
}
.ldr-status-cancelled {
- background: #2a2a2a;
- color: #999;
+ background: var(--bg-tertiary);
+ color: var(--text-muted);
}
.ldr-run-config {
@@ -170,7 +170,7 @@
gap: 10px;
margin-bottom: 15px;
padding: 15px;
- background: #242424;
+ background: var(--bg-tertiary);
border-radius: 6px;
}
@@ -178,16 +178,16 @@
display: flex;
justify-content: space-between;
padding: 5px 0;
- border-bottom: 1px solid #333;
+ border-bottom: 1px solid var(--border-color);
}
.ldr-config-label {
- color: #a0a0a0;
+ color: var(--text-muted);
font-size: 0.9rem;
}
.ldr-config-value {
- color: #e0e0e0;
+ color: var(--text-primary);
font-weight: 500;
}
@@ -207,18 +207,18 @@
}
.ldr-example-card {
- background: #1a1a1a;
- border: 1px solid #333;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-color);
border-radius: 6px;
padding: 15px;
}
.ldr-example-card.ldr-correct {
- border-left: 4px solid #4caf50;
+ border-left: 4px solid var(--success-color);
}
.ldr-example-card.ldr-incorrect {
- border-left: 4px solid #f44336;
+ border-left: 4px solid var(--error-color);
}
.ldr-example-header {
@@ -236,20 +236,20 @@
}
.ldr-example-status.ldr-correct {
- color: #4caf50;
+ color: var(--success-color);
}
.ldr-example-status.ldr-incorrect {
- color: #f44336;
+ color: var(--error-color);
}
.ldr-example-question {
- background: #2a2a2a;
+ background: var(--bg-tertiary);
padding: 12px;
border-radius: 4px;
border-left: 4px solid var(--primary-color);
margin-bottom: 12px;
- color: #e0e0e0;
+ color: var(--text-primary);
}
.ldr-example-answers {
@@ -266,36 +266,36 @@
}
.ldr-model-answer-section {
- background: #1e2a3a;
- border-left: 3px solid #2196f3;
+ background: rgba(var(--accent-tertiary-rgb), 0.1);
+ border-left: 3px solid var(--accent-tertiary);
}
.ldr-correct-answer-section {
- background: #1e3a1e;
- border-left: 3px solid #4caf50;
+ background: rgba(var(--success-color-rgb), 0.1);
+ border-left: 3px solid var(--success-color);
}
.ldr-answer-label {
font-size: 0.75rem;
font-weight: 600;
- color: #a0a0a0;
+ color: var(--text-muted);
text-transform: uppercase;
margin-bottom: 6px;
}
.ldr-answer-text {
- color: #e0e0e0;
+ color: var(--text-primary);
}
.ldr-no-results {
text-align: center;
- color: #a0a0a0;
+ color: var(--text-muted);
padding: 40px;
font-style: italic;
}
.ldr-expand-indicator {
- color: #a0a0a0;
+ color: var(--text-muted);
font-size: 0.9rem;
margin-top: 10px;
text-align: center;
@@ -311,13 +311,13 @@
.ldr-dataset-item {
text-align: center;
padding: 8px;
- background: #2a2a2a;
+ background: var(--bg-tertiary);
border-radius: 4px;
}
.ldr-dataset-name {
font-size: 0.8rem;
- color: #a0a0a0;
+ color: var(--text-muted);
margin-bottom: 4px;
}
@@ -329,7 +329,7 @@
.ldr-loading {
text-align: center;
padding: 40px;
- color: #a0a0a0;
+ color: var(--text-muted);
}
.ldr-card-content {
@@ -346,10 +346,10 @@
.ldr-pagination button {
padding: 8px 12px;
- background: #2a2a2a;
- border: 1px solid #333;
+ background: var(--bg-tertiary);
+ border: 1px solid var(--border-color);
border-radius: 4px;
- color: #e0e0e0;
+ color: var(--text-primary);
cursor: pointer;
}
@@ -363,26 +363,40 @@
}
.ldr-delete-btn {
- background: #3a1e1e !important;
- border-color: #f44336 !important;
- color: #f44336 !important;
+ background: rgba(var(--error-color-rgb), 0.15) !important;
+ border-color: var(--error-color) !important;
+ color: var(--error-color) !important;
font-size: 0.8rem;
padding: 4px 8px;
transition: all 0.2s;
}
.ldr-delete-btn:hover:not(:disabled) {
- background: #f44336 !important;
+ background: var(--error-color) !important;
color: white !important;
}
.ldr-delete-btn:disabled {
- background: #2a2a2a !important;
- border-color: #555 !important;
- color: #888 !important;
+ background: var(--bg-tertiary) !important;
+ border-color: var(--border-color) !important;
+ color: var(--text-muted) !important;
cursor: not-allowed;
}
+.ldr-download-btn {
+ background: rgba(var(--success-color-rgb), 0.15) !important;
+ border-color: var(--success-color) !important;
+ color: var(--success-color) !important;
+ font-size: 0.8rem;
+ padding: 4px 8px;
+ transition: all 0.2s;
+}
+
+.ldr-download-btn:hover {
+ background: var(--success-color) !important;
+ color: white !important;
+}
+
.ldr-filters {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
@@ -420,8 +434,8 @@
}
.ldr-processing-time {
- background: #2a3f2a;
- color: #90ee90;
+ background: rgba(var(--success-color-rgb), 0.15);
+ color: var(--success-color);
padding: 2px 6px;
border-radius: 3px;
font-size: 0.8rem;
@@ -495,8 +509,8 @@
.ldr-search-stats-section {
margin-bottom: 20px;
padding: 15px;
- background: #1e1e1e;
- border: 1px solid #333;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-color);
border-radius: 6px;
}
@@ -505,7 +519,7 @@
align-items: center;
gap: 8px;
margin-bottom: 15px;
- color: #e0e0e0;
+ color: var(--text-primary);
font-size: 1.1rem;
font-weight: 600;
}
@@ -519,7 +533,7 @@
.ldr-stat-item {
text-align: center;
padding: 12px;
- background: #2a2a2a;
+ background: var(--bg-tertiary);
border-radius: 6px;
}
@@ -532,12 +546,12 @@
.ldr-stat-label {
font-size: 0.85rem;
- color: #a0a0a0;
+ color: var(--text-muted);
}
.ldr-results-divider {
height: 1px;
- background: #333;
+ background: var(--border-color);
margin: 20px 0;
}
@@ -552,8 +566,8 @@
}
.ldr-search-results-count {
- background: #2a3a3a;
- color: #81c784;
+ background: rgba(var(--success-color-rgb), 0.15);
+ color: var(--success-color);
padding: 2px 6px;
border-radius: 3px;
font-size: 0.8rem;
@@ -829,12 +843,12 @@ function createRunCard(run) {
<div class="ldr-summary-item">
<div style="display: flex; gap: 8px;">
${status === 'completed' ?
- `<button class="btn ldr-btn-outline btn-sm" onclick="event.stopPropagation(); downloadBenchmarkYAML(${run.id})" style="background: #1e3a1e !important; border-color: #4caf50 !important; color: #4caf50 !important;">
+ `<button class="btn ldr-btn-outline btn-sm ldr-download-btn" onclick="event.stopPropagation(); downloadBenchmarkYAML(${run.id})">
<i class="fas fa-download"></i> YAML
</button>` : ''
}
${status === 'in_progress' ?
- `<button class="btn ldr-btn-outline btn-sm ldr-delete-btn" onclick="event.stopPropagation(); cancelAndDeleteBenchmarkRun(${run.id})" style="background: #3a1e1e !important; border-color: #f44336 !important; color: #f44336 !important;">
+ `<button class="btn ldr-btn-outline btn-sm ldr-delete-btn" onclick="event.stopPropagation(); cancelAndDeleteBenchmarkRun(${run.id})">
<i class="fas fa-stop"></i> Cancel & Delete
</button>` :
`<button class="btn ldr-btn-outline btn-sm ldr-delete-btn" onclick="event.stopPropagation(); deleteBenchmarkRun(${run.id})">