Extract colors
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m10s
All checks were successful
Build and Deploy / build-and-push (push) Successful in 1m10s
This commit is contained in:
@@ -3,15 +3,15 @@ import { MEAL_SLOTS } from '../planner/mealSlots.js';
|
||||
import { applyFilters, getFilterState } from './RecipeList.js';
|
||||
|
||||
const FILTER_PANEL_TRANSITION = 'opacity 180ms ease, transform 180ms ease';
|
||||
const FILTER_SURFACE = '#23221e';
|
||||
const FILTER_SURFACE_SOFT = '#2d2e2b';
|
||||
const FILTER_BORDER = '#787876';
|
||||
const FILTER_CHIP_ACTIVE_BG = '#393937';
|
||||
const FILTER_TEXT_SECONDARY = '#d7d2c8';
|
||||
const FILTER_TEXT_MUTED = '#b5afa5';
|
||||
const FILTER_TEXT_ACTIVE = '#f2efe8';
|
||||
const FILTER_TRACK = '#393937';
|
||||
const FILTER_TRACK_FILL = '#56534f';
|
||||
const FILTER_SURFACE = 'rgb(var(--sunken-rgb))';
|
||||
const FILTER_SURFACE_SOFT = 'rgb(var(--app-bg-rgb))';
|
||||
const FILTER_BORDER = 'rgb(var(--border-input-rgb))';
|
||||
const FILTER_CHIP_ACTIVE_BG = 'rgb(var(--card-rgb))';
|
||||
const FILTER_TEXT_SECONDARY = 'rgb(var(--text-body-soft-rgb))';
|
||||
const FILTER_TEXT_MUTED = 'rgb(var(--text-muted-rgb))';
|
||||
const FILTER_TEXT_ACTIVE = 'rgb(var(--text-emphasis-rgb))';
|
||||
const FILTER_TRACK = 'rgb(var(--card-rgb))';
|
||||
const FILTER_TRACK_FILL = 'rgba(var(--border-input-rgb), 0.58)';
|
||||
const FILTER_SHADOW = '0 5px 10px rgba(0,0,0,0.16), 0 14px 22px rgba(0,0,0,0.24), 0 22px 34px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04)';
|
||||
const PREP_TIME_MIN = 5;
|
||||
const PREP_TIME_MAX = 120;
|
||||
@@ -72,7 +72,7 @@ export function getFilterHTML() {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
border-radius: 9999px;
|
||||
border: 1px solid rgba(242,239,232,0.16);
|
||||
border: 1px solid rgba(var(--text-emphasis-rgb),0.16);
|
||||
background: ${FILTER_TRACK_FILL};
|
||||
box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
|
||||
touch-action: none;
|
||||
@@ -374,9 +374,9 @@ function syncPanelCount() {
|
||||
|
||||
if (button) {
|
||||
const highlight = isFilterPanelOpen() || count > 0;
|
||||
button.style.setProperty('background', highlight ? '#23221e' : '#393937', 'important');
|
||||
button.style.setProperty('border-color', highlight ? '#787876' : '#41423f', 'important');
|
||||
button.style.setProperty('color', highlight ? '#f2efe8' : '#ddd6ca', 'important');
|
||||
button.style.setProperty('background', highlight ? 'rgb(var(--sunken-rgb))' : 'rgb(var(--card-rgb))', 'important');
|
||||
button.style.setProperty('border-color', highlight ? 'rgb(var(--border-input-rgb))' : 'rgb(var(--border-card-rgb))', 'important');
|
||||
button.style.setProperty('color', highlight ? 'rgb(var(--text-emphasis-rgb))' : 'rgb(var(--text-body-rgb))', 'important');
|
||||
}
|
||||
|
||||
const badge = button?.querySelector('[id$="-filter-count"]');
|
||||
|
||||
Reference in New Issue
Block a user