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

Hanah tomas/fontstyle #48

Merged
merged 4 commits into from
Dec 11, 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
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added src/app/fonts/sofia-pro.woff2
Binary file not shown.
6 changes: 5 additions & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@
:root {
--background: #ffffff;
--foreground: #171717;
--font-sofia-pro: "Sofia Pro", sans-serif;
}

body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
font-family: var(--font-sofia-pro);
}

@layer utilities {
.text-balance {
text-wrap: balance;
}
.font-primary {
font-family: var(--font-sofia-pro);
}
}
17 changes: 5 additions & 12 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@ import localFont from "next/font/local";
import "./globals.css";
import AuthProvider from "./context/AuthProvider";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
const sofiaPro = localFont({
src: "./fonts/sofia-pro.woff2",
variable: "--font-sofia-pro",
weight: "400",
});

export const metadata: Metadata = {
Expand All @@ -26,9 +21,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
<body className={`${sofiaPro.variable} antialiased`}>
<AuthProvider>{children}</AuthProvider>
</body>
</html>
Expand Down
11 changes: 7 additions & 4 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ const config: Config = {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
'darkrose': "#9A0F28",
'rose': "#FFF0F1",
'gray/500': '#667085',
'icon-color': "#667085",
darkrose: "#9A0F28",
rose: "#FFF0F1",
"gray/500": "#667085",
"icon-color": "#667085",
},
},
fontFamily: {
sofiaPro: ["var(--Sofia Pro)", "sans-serif"],
},
},
plugins: [],
};
Expand Down
Loading