wip: design refactor

This commit is contained in:
Fredrik Burmester
2024-08-28 22:00:50 +02:00
parent 309345c834
commit 4641ff726c
16 changed files with 580 additions and 334 deletions

View File

@@ -62,8 +62,8 @@ export const itemThemeColorAtom = atom(
const newColors = { ...currentColors, ...update };
// Recalculate text color if primary color changes
if (update.primary) {
newColors.text = calculateTextColor(update.primary);
if (update.average) {
newColors.text = calculateTextColor(update.average);
}
set(baseThemeColorAtom, newColors);