Skip to content

Commit 2810e93

Browse files
committed
fix(theme): fix wrong nesting for theme config
1 parent adcf471 commit 2810e93

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

frontend/src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function RootLayout({
1515
children: React.ReactNode;
1616
}) {
1717
return (
18-
<html lang="en">
18+
<html lang="en" data-theme="myTheme">
1919
<body className={montserrat.className}>{children}</body>
2020
</html>
2121
);

frontend/tailwind.config.ts

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,25 @@ const config: Config = {
88
],
99
theme: {
1010
extend: {},
11-
daisyui: {
12-
base: false,
13-
themes: [
14-
{
15-
myTheme: {
16-
primary: "#383D4B",
17-
secondary: "#22242D",
18-
accent: "#5ecce0",
19-
neutral: "#404559",
20-
"base-100": "#1A1C2C",
21-
info: "#3abff8",
22-
success: "#36d399",
23-
warning: "#fbbd23",
24-
error: "#f87272",
25-
},
11+
},
12+
daisyui: {
13+
base: true,
14+
themes: [
15+
{
16+
myTheme: {
17+
primary: "#383D4B",
18+
secondary: "#22242D",
19+
accent: "#5ecce0",
20+
neutral: "#404559",
21+
"base-100": "#1A1C2C",
22+
info: "#3abff8",
23+
success: "#36d399",
24+
warning: "#fbbd23",
25+
error: "#f87272",
2626
},
27-
],
28-
},
29-
plugins: [require("daisyui")],
27+
},
28+
],
3029
},
31-
plugins: [],
30+
plugins: [require("daisyui")],
3231
};
3332
export default config;

0 commit comments

Comments
 (0)