From 38263ac9ddcfd1deba36a00bda5c17fcc3a12702 Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Sat, 2 Dec 2023 12:54:08 +0100 Subject: [PATCH] Theme --- apps/dashboard/src/app/layout.tsx | 16 ++++++++++++++-- apps/website/src/app/layout.tsx | 17 +++++++++++++++-- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/apps/dashboard/src/app/layout.tsx b/apps/dashboard/src/app/layout.tsx index 2999cc3e85..e42af062ac 100644 --- a/apps/dashboard/src/app/layout.tsx +++ b/apps/dashboard/src/app/layout.tsx @@ -3,6 +3,7 @@ import { ThemeProvider } from "@/components/theme-provider"; import "@/styles/globals.css"; import "@midday/ui/globals.css"; import { Toaster } from "@midday/ui/toaster"; +import { cn } from "@midday/ui/utils"; import type { Metadata } from "next"; import { Instrument_Sans } from "next/font/google"; import { type ReactElement, Suspense } from "react"; @@ -19,13 +20,24 @@ export const metadata: Metadata = { title: "Midday | The financial OS for your business", description: "Automate financial tasks, stay organized, and make informed decisions effortlessly.", + themeColor: [ + { media: "(prefers-color-scheme: light)", color: "white" }, + { media: "(prefers-color-scheme: dark)", color: "black" }, + ], }; export default function Layout({ children }: { children: ReactElement }) { return ( - - + + {children} diff --git a/apps/website/src/app/layout.tsx b/apps/website/src/app/layout.tsx index 2a07e31011..f8e65de3c3 100644 --- a/apps/website/src/app/layout.tsx +++ b/apps/website/src/app/layout.tsx @@ -19,13 +19,26 @@ export const metadata: Metadata = { title: "Midday | The financial OS for your business", description: "Automate financial tasks, stay organized, and make informed decisions effortlessly.", + themeColor: [ + { media: "(prefers-color-scheme: light)", color: "white" }, + { media: "(prefers-color-scheme: dark)", color: "black" }, + ], }; export default function Layout({ children }: { children: ReactElement }) { return ( - - {children} + + + {children} +