Skip to content

Commit

Permalink
feat: add geist
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljcafonso committed May 21, 2024
1 parent 61e18d8 commit 298ec27
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { Hero } from "~/components/sections/hero";
import { MetaFramework } from "~/components/sections/meta-framework";
import { RockSolidDX } from "~/components/sections/rock-solid-dx";
import { TopNav } from "~/components/sections/top-nav";
import "./fonts.css";
import "./root.css";

function getServerCookies() {
Expand Down
60 changes: 60 additions & 0 deletions docs/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@font-face {
font-family: "Geist";
src: url("/fonts/Geist-Light.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "Geist";
src: url("/fonts/Geist-SemiBold.woff2") format("woff2");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "Geist";
src: url("/fonts/Geist-Bold.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "GeistMono";
src: url("/fonts/GeistMono-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "GeistMono";
src: url("/fonts/GeistMono-Medium.woff2") format("woff2");
font-weight: 500;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "GeistMono";
src: url("/fonts/GeistMono-SemiBold.woff2") format("woff2");
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face {
font-family: "GeistMono";
src: url("/fonts/GeistMono-Bold.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}

:root {
--font-geist: "Geist", sans-serif;
--font-geist-mono: "GeistMono", monospace;
}
Binary file added public/fonts/Geist-Bold.woff2
Binary file not shown.
Binary file added public/fonts/Geist-Light.woff2
Binary file not shown.
Binary file added public/fonts/Geist-Medium.woff2
Binary file not shown.
Binary file added public/fonts/Geist-Regular.woff2
Binary file not shown.
Binary file added public/fonts/Geist-SemiBold.woff2
Binary file not shown.
Binary file added public/fonts/GeistMono-Bold.woff2
Binary file not shown.
Binary file added public/fonts/GeistMono-Medium.woff2
Binary file not shown.
Binary file added public/fonts/GeistMono-Regular.woff2
Binary file not shown.
Binary file added public/fonts/GeistMono-SemiBold.woff2
Binary file not shown.
Binary file added public/fonts/Inter-Regular.woff2
Binary file not shown.
5 changes: 5 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default {
presets: [solidUi],
theme: {
extend: {
fontFamily: {
sans: "var(--font-geist)",
display: ["var(--font-geist)", { fontFeatureSettings: '"ss01"' }],
mono: "var(--font-geist-mono)"
},
keyframes: {
"accordion-down": {
from: { height: "0" },
Expand Down

0 comments on commit 298ec27

Please sign in to comment.