feat: remove dark mode support

Remove ThemeToggle component, theme store, dark: Tailwind variants,
and dark color values from NOTE_COLORS. Simplify color logic to use
a single bg property. Delete dark mode e2e tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Frederic Cabassut
2026-03-05 23:07:18 +01:00
co-authored by Claude Opus 4.6
parent 510d15e548
commit 33a8cd6afc
22 changed files with 95 additions and 200 deletions
+13 -13
View File
@@ -1,18 +1,18 @@
import type { NoteColor } from '$lib/types/index.js';
export const NOTE_COLORS: Record<NoteColor, { light: string; dark: string; label: string }> = {
default: { light: '#ffffff', dark: '#202124', label: 'Default' },
coral: { light: '#faafa8', dark: '#77172e', label: 'Coral' },
peach: { light: '#f39f76', dark: '#692b17', label: 'Peach' },
sand: { light: '#fff8b8', dark: '#7c4a03', label: 'Sand' },
mint: { light: '#e2f6d3', dark: '#264d3b', label: 'Mint' },
sage: { light: '#b4ddd3', dark: '#0c625d', label: 'Sage' },
fog: { light: '#d4e4ed', dark: '#256377', label: 'Fog' },
storm: { light: '#aeccdc', dark: '#284255', label: 'Storm' },
dusk: { light: '#d3bfdb', dark: '#472e5b', label: 'Dusk' },
blossom: { light: '#f6e2dd', dark: '#6c394f', label: 'Blossom' },
clay: { light: '#e9e3d4', dark: '#4b443a', label: 'Clay' },
chalk: { light: '#efeff1', dark: '#232427', label: 'Chalk' }
export const NOTE_COLORS: Record<NoteColor, { bg: string; label: string }> = {
default: { bg: '#ffffff', label: 'Default' },
coral: { bg: '#faafa8', label: 'Coral' },
peach: { bg: '#f39f76', label: 'Peach' },
sand: { bg: '#fff8b8', label: 'Sand' },
mint: { bg: '#e2f6d3', label: 'Mint' },
sage: { bg: '#b4ddd3', label: 'Sage' },
fog: { bg: '#d4e4ed', label: 'Fog' },
storm: { bg: '#aeccdc', label: 'Storm' },
dusk: { bg: '#d3bfdb', label: 'Dusk' },
blossom: { bg: '#f6e2dd', label: 'Blossom' },
clay: { bg: '#e9e3d4', label: 'Clay' },
chalk: { bg: '#efeff1', label: 'Chalk' }
};
export const COLOR_OPTIONS = Object.entries(NOTE_COLORS).map(([value, { label }]) => ({