Skip to content

A local-first personal finance app

Update custom tag CSS so all themes use the dark color scheme (#6245)

Juulz2e42903ba7f3
diff --git a/packages/desktop-client/src/hooks/useTagCSS.ts b/packages/desktop-client/src/hooks/useTagCSS.ts
index 056ea1441e..cc75d263e5 100644
--- a/packages/desktop-client/src/hooks/useTagCSS.ts
+++ b/packages/desktop-client/src/hooks/useTagCSS.ts
@@ -63,23 +63,9 @@ function getTagCSSColors(theme: Theme, color?: string | null) {
];
}
- if (theme === 'auto') {
- theme = window.matchMedia('(prefers-color-scheme: light)').matches
- ? 'light'
- : 'dark';
- }
-
- if (theme === 'light') {
- return [
- `${color} !important`,
- `color-mix(in srgb, ${color} 15%, white)`,
- `color-mix(in srgb, ${color} 25%, white)`,
- ];
- } else {
- return [
- getContrastedColor(color),
- color,
- `color-mix(in srgb, ${color} 85%, white)`,
- ];
- }
+ return [
+ getContrastedColor(color),
+ color,
+ `color-mix(in srgb, ${color} 85%, white)`,
+ ];
}
diff --git a/upcoming-release-notes/6245.md b/upcoming-release-notes/6245.md
new file mode 100644
index 0000000000..ad81d663b4
--- /dev/null
+++ b/upcoming-release-notes/6245.md
@@ -0,0 +1,6 @@
+---
+category: Enhancements
+authors: [Juulz]
+---
+
+Improve tag readability in light theme. All themes now use same custom color schema.