Switch from custom fonts to system fonts and remove unused styles

Replace DM Sans with system font stack, convert DM Serif Display to woff2 format, and remove unused animations, button styles, pill variants, and mock data file.
This commit is contained in:
grove5_admin committed 2026-04-27 18:39:38 -07:00
1 parent d074322826
commit 093d5b2a11
22 files changed
+241 -204

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@
</div>
<button class="details-btn" onclick={onOpenDetails}>
See full history
See details
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">
<path d="M5 3L9 7L5 11" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
+7 -7
View File
@@ -9,15 +9,15 @@
const { onBagClick }: Props = $props();
const chambers = $derived(cultivar.state.chambers);
const colonization = $derived(chambers.find(c => c.type === 'colonization') ?? chambers[0]);
const fruiting = $derived(chambers.find(c => c.type === 'fruiting') ?? chambers[1]);
const colonization = $derived(chambers.find(c => c.type === 'colonization') ?? chambers[0] ?? { slots: [] });
const fruiting = $derived(chambers.find(c => c.type === 'fruiting') ?? chambers[1] ?? { slots: [] });
const hw = $derived(cultivar.state.hardware);
const humidOn = $derived(hw.humidifier.active);
// Two fans — one per compartment, used for fresh-air exchange
const colFan = $derived(hw.fans.find(f => f.chamber_id === 'main') ?? hw.fans[0]);
const fruitFan = $derived(hw.fans.find(f => f.chamber_id === 'second') ?? hw.fans[1]);
const colFan = $derived(hw.fans.find(f => f.chamber_id === 'main') ?? hw.fans[0] ?? { speed_pct: 0 });
const fruitFan = $derived(hw.fans.find(f => f.chamber_id === 'second') ?? hw.fans[1] ?? { speed_pct: 0 });
function spinDur(speed: number): string {
return speed > 0 ? `${(0.5 + (1 - speed / 100) * 2.4).toFixed(2)}s` : '4s';
@@ -29,8 +29,8 @@
// Lights per compartment — colonization has utility lights (usually off),
// fruiting has a grow/display light
const colWorkLight = $derived(hw.lights.find(l => l.chamber_id === 'main' && l.purpose === 'work'));
const fruitGrowLight = $derived(hw.lights.find(l => l.chamber_id === 'second' && l.purpose === 'grow'));
const colWorkLight = $derived(hw.lights.find(l => l.chamber_id === 'main' && l.purpose === 'work') ?? { on: false, brightness: 0, color_hex: '#f4ecd8' });
const fruitGrowLight = $derived(hw.lights.find(l => l.chamber_id === 'second' && l.purpose === 'grow') ?? { on: false, brightness: 0, color_hex: '#f7f0dc' });
// Door state
const colDoorOpen = $derived(hw.doors.find(d => d.chamber_id === 'main')?.open ?? false);
@@ -132,7 +132,7 @@
// Humidity readout (live) — shown inside the fruiting compartment
// so users instantly associate the fog with humidity.
const fruitRh = $derived(fruiting.environment.rh_pct);
const fruitRh = $derived(fruiting.environment?.rh_pct ?? 0);
// Reservoir water level. The bottle's usable interior runs from y=4.4
// to y=20.9 in local coords (height 16.5). Water surface sits at