From 4126275c4d6aac17c559f321d1965a31c4214312 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Mon, 25 May 2026 11:09:26 +0300 Subject: [PATCH] refactor(SliderArea): extract grid overlay into bg-grid utilities The decorative dotted-grid background on the paper surface was a 6-line $derived gridStyle string applied via inline style="" plus four extra utility classes for color and opacity. Replace with two named utilities and let CSS handle the responsive switch. app.css: - New --color-grid-line CSS var (light + dark) so the grid colour and intensity auto-switch without consumers needing a dark: variant or an opacity layer. - @utility bg-grid (20px cells) and @utility bg-grid-sm (10px cells). Both reference --color-grid-line, so the same markup paints correctly in light and dark mode. SliderArea.svelte: - Drop the gridStyle $derived block and the inline style= attribute. - Overlay becomes a single line: