From adef3aff6550b92634c4eec464186c8424d2b3bd Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Tue, 2 Jun 2026 23:33:17 +0200 Subject: [PATCH] fix(ui): restore pre-v9 light variant colors with v8CssVariablesResolver Mantine v9 changed the light variant to use solid colors instead of transparent ones, altering the visual appearance of the primary red across NavLinks, badges, and other light-variant components. Apply v8CssVariablesResolver to both MantineProvider instances to restore the original Homarr color rendering. --- apps/nextjs/src/app/[locale]/_client-providers/mantine.tsx | 4 ++-- apps/nextjs/src/app/[locale]/boards/(content)/_theme.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/nextjs/src/app/[locale]/_client-providers/mantine.tsx b/apps/nextjs/src/app/[locale]/_client-providers/mantine.tsx index 508074ead..d451625e8 100644 --- a/apps/nextjs/src/app/[locale]/_client-providers/mantine.tsx +++ b/apps/nextjs/src/app/[locale]/_client-providers/mantine.tsx @@ -2,7 +2,7 @@ import type { PropsWithChildren } from "react"; import type { MantineColorScheme, MantineColorSchemeManager } from "@mantine/core"; -import { DirectionProvider, MantineProvider } from "@mantine/core"; +import { DirectionProvider, MantineProvider, v8CssVariablesResolver } from "@mantine/core"; import dayjs from "dayjs"; import { clientApi } from "@homarr/api/client"; @@ -18,7 +18,7 @@ export const CustomMantineProvider = ({ const manager = useColorSchemeManager(); return ( - + {children} diff --git a/apps/nextjs/src/app/[locale]/boards/(content)/_theme.tsx b/apps/nextjs/src/app/[locale]/boards/(content)/_theme.tsx index 8fa031ad0..d7bfec176 100644 --- a/apps/nextjs/src/app/[locale]/boards/(content)/_theme.tsx +++ b/apps/nextjs/src/app/[locale]/boards/(content)/_theme.tsx @@ -2,7 +2,7 @@ import type { PropsWithChildren } from "react"; import type { MantineColorsTuple } from "@mantine/core"; -import { colorsTuple, createTheme, darken, lighten, MantineProvider, rem } from "@mantine/core"; +import { colorsTuple, createTheme, darken, lighten, MantineProvider, rem, v8CssVariablesResolver } from "@mantine/core"; import { useRequiredBoard } from "@homarr/boards/context"; import type { ColorScheme } from "@homarr/definitions"; @@ -33,7 +33,7 @@ export const BoardMantineProvider = ({ }); return ( - + {children} );