mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-09-17 11:02:06 +00:00
refactor(#48): Address PR comments
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user