fix: Regression - invert SVGs in Dark Mode (#10695)

* initial implementation

* lint

* removed separate getThemeFilterValue function from renderElement

* removed BinaryFileData changes

* filter instead of css filter
This commit is contained in:
zsviczian
2026-01-24 13:00:14 +01:00
committed by GitHub
parent d5e37cda81
commit 60759d314d
3 changed files with 27 additions and 1 deletions
+2
View File
@@ -190,6 +190,8 @@ export const THEME = {
DARK: "dark",
} as const;
export const DARK_THEME_FILTER = "invert(93%) hue-rotate(180deg)";
export const FRAME_STYLE = {
strokeColor: "#bbb" as ExcalidrawElement["strokeColor"],
strokeWidth: 2 as ExcalidrawElement["strokeWidth"],