Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Commit d47986b

Browse files
committed
chore: add demonstration of changing the A2UI theme
Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
1 parent d047287 commit d47986b

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

apps/app/src/app/layout.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
"use client";
22

33
import "./globals.css";
4+
import "@copilotkit/react-core/v2/styles.css";
45

56
import { CopilotKit } from "@copilotkit/react-core";
6-
import "@copilotkit/react-core/v2/styles.css";
77
import { ThemeProvider } from "@/hooks/use-theme";
88

9-
export default function RootLayout({
10-
children,
11-
}: Readonly<{
12-
children: React.ReactNode;
13-
}>) {
9+
export default function RootLayout({children}: Readonly<{ children: React.ReactNode }>) {
1410
return (
1511
<html lang="en">
1612
<body className={`antialiased`}>
1713
<ThemeProvider>
18-
<CopilotKit runtimeUrl="/api/copilotkit">
14+
<CopilotKit
15+
runtimeUrl="/api/copilotkit"
16+
// a2ui={ theme } // Custom theme for A2UI, check @/lib/a2ui-theme.css
17+
>
1918
{children}
2019
</CopilotKit>
2120
</ThemeProvider>

0 commit comments

Comments
 (0)