refactor(#48): Address PR comments

This commit is contained in:
Josh Creek
2026-01-10 21:44:19 +00:00
parent ad8c8a847d
commit 9d14b2d2f1
4 changed files with 63 additions and 20 deletions
+2 -5
View File
@@ -2,13 +2,10 @@
import { theme, applyTheme } from '$lib/stores/theme.js';
import { onMount } from 'svelte';
let currentTheme: 'pokeball' | 'dark';
let currentTheme: 'pokeball' | 'dark' = 'pokeball';
// Subscribe to theme changes
$: if ($theme) {
currentTheme = $theme;
applyTheme($theme);
}
$: (currentTheme = $theme), applyTheme($theme);
onMount(() => {
// Initialize theme from localStorage
@@ -602,7 +602,7 @@
*/
:global(:root) {
--ld-box-bg-even: var(--fallback-b1, oklch(var(--b1) / 1));
--ld-box-bg-odd: var(--fallback-b2, oklch(var(--b3) / 1));
--ld-box-bg-odd: var(--fallback-b3, oklch(var(--b3) / 1));
}
:global([data-theme='pokeball']) {
@@ -610,11 +610,6 @@
--ld-box-bg-odd: #f9f9f9;
}
:global([data-theme='dark']) {
--ld-box-bg-even: var(--fallback-b1, oklch(var(--b1) / 1));
--ld-box-bg-odd: var(--fallback-b2, oklch(var(--b3) / 1));
}
.boxes-grid {
display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr));