svrjs-nextjs-website/pages/_app.tsx
2024-08-01 20:47:45 +05:30

24 lines
500 B
TypeScript

import { Poppins } from "next/font/google";
import "./globals.css";
import { AppProps } from "next/app";
const poppins = Poppins({
weight: ["400", "600", "700", "900"],
subsets: ["latin"],
});
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<style jsx global>{`
html {
font-family: ${poppins.style.fontFamily};
}
`}</style>
<div className={`antialiased ${poppins.className}`}>
<Component {...pageProps} />
</div>
</>
);
}
export default MyApp;