feat(web): green, warm-paper theme with a matching dark mode

- New light palette (warm off-white background, white cards, grocery green
  primary) and a green-tinted charcoal dark mode; larger radius.
- Items render as one grouped card; bought items live in a collapsible
  "Comprados · N" card with a muted header.
- Pill-shaped add-item input (shadcn input-group) with a round add button.
- Progress summary ("N pendientes · M comprados" + bar) above the input.
- Active bottom-nav item uses the primary color with a dot.
- theme-color metas and PWA manifest follow the new background.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-10-19 14:55:48 -03:00
parent 123601939c
commit 812d4b7170
13 changed files with 399 additions and 167 deletions

View File

@@ -49,72 +49,74 @@
}
:root {
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.922 0 0);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);
--chart-3: oklch(0.439 0 0);
--chart-4: oklch(0.371 0 0);
--chart-5: oklch(0.269 0 0);
--radius: 0.625rem;
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
/* Warm paper background, white cards and a grocery green as the accent. */
--background: oklch(0.982 0.004 91);
--foreground: oklch(0.17 0.005 90);
--card: oklch(0.997 0.002 91);
--card-foreground: oklch(0.17 0.005 90);
--popover: oklch(0.997 0.002 91);
--popover-foreground: oklch(0.17 0.005 90);
--primary: oklch(0.52 0.13 147);
--primary-foreground: oklch(0.99 0.01 147);
--secondary: oklch(0.95 0.007 91);
--secondary-foreground: oklch(0.24 0.005 90);
--muted: oklch(0.95 0.007 91);
--muted-foreground: oklch(0.52 0.008 90);
--accent: oklch(0.94 0.025 147);
--accent-foreground: oklch(0.36 0.09 147);
--destructive: oklch(0.577 0.215 27.325);
--border: oklch(0.915 0.007 91);
--input: oklch(0.9 0.008 91);
--ring: oklch(0.52 0.13 147);
--chart-1: oklch(0.52 0.13 147);
--chart-2: oklch(0.65 0.13 150);
--chart-3: oklch(0.75 0.12 85);
--chart-4: oklch(0.6 0.12 45);
--chart-5: oklch(0.45 0.05 200);
--radius: 0.875rem;
--sidebar: oklch(0.97 0.005 91);
--sidebar-foreground: oklch(0.17 0.005 90);
--sidebar-primary: oklch(0.52 0.13 147);
--sidebar-primary-foreground: oklch(0.99 0.01 147);
--sidebar-accent: oklch(0.94 0.025 147);
--sidebar-accent-foreground: oklch(0.36 0.09 147);
--sidebar-border: oklch(0.915 0.007 91);
--sidebar-ring: oklch(0.52 0.13 147);
}
.dark {
--background: oklch(0.145 0 0);
--foreground: oklch(0.985 0 0);
--card: oklch(0.205 0 0);
--card-foreground: oklch(0.985 0 0);
--popover: oklch(0.205 0 0);
--popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.922 0 0);
--primary-foreground: oklch(0.205 0 0);
--secondary: oklch(0.269 0 0);
--secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.269 0 0);
--muted-foreground: oklch(0.708 0 0);
--accent: oklch(0.269 0 0);
--accent-foreground: oklch(0.985 0 0);
/* Deep green-tinted charcoal; the green is lifted so it reads on dark. */
--background: oklch(0.165 0.008 155);
--foreground: oklch(0.95 0.006 95);
--card: oklch(0.21 0.01 155);
--card-foreground: oklch(0.95 0.006 95);
--popover: oklch(0.23 0.01 155);
--popover-foreground: oklch(0.95 0.006 95);
--primary: oklch(0.72 0.16 148);
--primary-foreground: oklch(0.2 0.04 150);
--secondary: oklch(0.26 0.01 155);
--secondary-foreground: oklch(0.95 0.006 95);
--muted: oklch(0.255 0.01 155);
--muted-foreground: oklch(0.7 0.012 120);
--accent: oklch(0.3 0.045 150);
--accent-foreground: oklch(0.88 0.08 148);
--destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%);
--ring: oklch(0.556 0 0);
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);
--chart-3: oklch(0.439 0 0);
--chart-4: oklch(0.371 0 0);
--chart-5: oklch(0.269 0 0);
--sidebar: oklch(0.205 0 0);
--sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.269 0 0);
--sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.556 0 0);
--border: oklch(1 0 0 / 9%);
--input: oklch(1 0 0 / 14%);
--ring: oklch(0.72 0.16 148);
--chart-1: oklch(0.72 0.16 148);
--chart-2: oklch(0.62 0.13 150);
--chart-3: oklch(0.8 0.12 85);
--chart-4: oklch(0.7 0.12 45);
--chart-5: oklch(0.65 0.06 200);
--sidebar: oklch(0.19 0.009 155);
--sidebar-foreground: oklch(0.95 0.006 95);
--sidebar-primary: oklch(0.72 0.16 148);
--sidebar-primary-foreground: oklch(0.2 0.04 150);
--sidebar-accent: oklch(0.3 0.045 150);
--sidebar-accent-foreground: oklch(0.88 0.08 148);
--sidebar-border: oklch(1 0 0 / 9%);
--sidebar-ring: oklch(0.72 0.16 148);
}
@layer base {