Skip to content

Commit

Permalink
Hanah tomas/fontstyle (#48)
Browse files Browse the repository at this point in the history
* attempted to change fonts

* small fix

* small changes

* smaller change

---------

Co-authored-by: wkim10 <[email protected]>
  • Loading branch information
tomasmaranga and wkim10 authored Dec 11, 2024
1 parent 43e3c9c commit be0a093
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
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

0 comments on commit be0a093

Please sign in to comment.