LIC-04: Retrofit auf SHL-01 (ThemeProvider/I18nProvider/ToastProvider, Design-Tokens statt hartkodierter Werte)

This commit is contained in:
sysops
2026-08-28 21:46:59 +02:00
parent 25168a18db
commit 7c53a099c7
2 changed files with 16 additions and 2 deletions
+15 -2
View File
@@ -1,3 +1,5 @@
import { ThemeProvider, I18nProvider, ToastProvider, typography } from "@nexarch/shl";
export const metadata = { export const metadata = {
title: "NEXARCH Lizenz- und Modulverwaltung", title: "NEXARCH Lizenz- und Modulverwaltung",
}; };
@@ -9,8 +11,19 @@ export default function RootLayout({
}) { }) {
return ( return (
<html lang="de"> <html lang="de">
<body style={{ fontFamily: "system-ui, sans-serif", margin: 0, background: "#f5f6f8" }}> <body
{children} style={{
fontFamily: typography.fontFamily,
margin: 0,
background: "var(--shl-color-background, #ffffff)",
color: "var(--shl-color-text-primary, #14181f)",
}}
>
<ThemeProvider>
<I18nProvider initialLocale="de">
<ToastProvider>{children}</ToastProvider>
</I18nProvider>
</ThemeProvider>
</body> </body>
</html> </html>
); );
+1
View File
@@ -8,6 +8,7 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@nexarch/shl": "file:../shl",
"next": "14.2.35", "next": "14.2.35",
"react": "18.3.1", "react": "18.3.1",
"react-dom": "18.3.1" "react-dom": "18.3.1"