svrjs-nextjs-website/pages/_app.tsx
2024-06-26 00:17:24 +05:30

23 lines
458 B
TypeScript

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