File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 6969body {
7070 color : var (--foreground );
7171 background : var (--background );
72- font-family : "DanaVariableFont" ;
7372}
7473
7574@layer base {
Original file line number Diff line number Diff line change 1- import "../../public/fonts/dana/dana.css" ;
21import "./globals.css" ;
32import { ThemeProvider } from "@/components/contexts/theme-provider" ;
43import type { Metadata } from "next" ;
4+ import localFont from "next/font/local" ;
55
66export const metadata : Metadata = {
77 title : "فرانت چپتر | محلی صمیمی برای گفت و گو" ,
88 description : "Generated by create next app" ,
99} ;
1010
11+ const danaVF = localFont ( {
12+ src : [
13+ {
14+ path : "../../public/fonts/dana/DanaVF.woff2" ,
15+ weight : "100 900" ,
16+ style : "normal" ,
17+ } ,
18+ ] ,
19+ variable : "--font-dana" ,
20+ display : "swap" ,
21+ fallback : [ "Tahoma" , "sans-serif" ] ,
22+ } ) ;
23+
1124export default function RootLayout ( {
1225 children,
1326} : Readonly < {
@@ -18,7 +31,7 @@ export default function RootLayout({
1831 lang = "fa-IR"
1932 dir = "rtl"
2033 style = { { colorScheme : "dark" } }
21- className = " dark"
34+ className = { ` dark ${ danaVF . variable } ` }
2235 >
2336 < body className = "bg-background antialiased" >
2437 < ThemeProvider > { children } </ ThemeProvider >
You can’t perform that action at this time.
0 commit comments