Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rowdies Font production fix #26

Merged
merged 2 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import url("https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Rowdies:wght@300;400;700&display=swap");

:root {
--foreground-rgb: 0, 0, 255;
--background-start-rgb: 214, 219, 220;
Expand Down
11 changes: 8 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { Inter, Rowdies } from "next/font/google";
import "./globals.css";
import { SpeedInsights } from "@vercel/speed-insights/next";
import NavBar from "./_components/Navbar";

const inter = Inter({ subsets: ["latin"] });
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
const rowdies = Rowdies({
subsets: ["latin"],
weight: "400",
variable: "--font-rowdies",
});

export const metadata: Metadata = {
title: "Pomoparty",
Expand All @@ -18,7 +23,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body className={inter.className}>
<body className={`${inter.variable} ${rowdies.variable}`}>
<NavBar />
{children}
<SpeedInsights />
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config: Config = {
neutral: colors.neutral,
},
fontFamily: {
title: "Rowdies",
title: ["var(--font-rowdies)"],
},
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
Expand Down
Loading