Skip to content

Commit 8b7773e

Browse files
committed
feat: Toaster 컴포넌트 스타일 및 옵션 추가
1 parent 8f7f2bf commit 8b7773e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/app/layout.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ import "slick-carousel/slick/slick-theme.css";
55
import { GoogleAnalytics } from "@next/third-parties/google";
66
import type { Metadata, Viewport } from "next";
77
import Script from "next/script";
8+
import { type CSSProperties } from "react";
89
import { Toaster } from "sonner";
910

1011
import { RegisterServiceWorkerClient } from "@/lib/pwa";
1112
import { MSWProvider, OverlayProvider, QueryProvider } from "@/providers";
13+
import { semantic } from "@/styles";
1214
import { pretendard } from "@/styles/pretendard";
1315

1416
import * as styles from "./layout.css";
@@ -61,7 +63,21 @@ export default function RootLayout({
6163
</MSWProvider>
6264
</OverlayProvider>
6365
</QueryProvider>
64-
<Toaster position='bottom-center' richColors />
66+
<Toaster
67+
position='bottom-center'
68+
toastOptions={{
69+
style: {
70+
backdropFilter: "blur(26px)",
71+
},
72+
}}
73+
style={
74+
{
75+
"--normal-bg": "rgba(42, 42, 42, 0.52)",
76+
"--normal-text": semantic.text.white,
77+
"--normal-border": "transparent",
78+
} as CSSProperties
79+
}
80+
/>
6581
</div>
6682
</body>
6783
</html>

0 commit comments

Comments
 (0)