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

feat: add option to use Geist Sans instead of Inter #1821

Merged
merged 11 commits into from
May 7, 2024
Prev Previous commit
Next Next commit
chore: add latest commits from main branch
  • Loading branch information
kakenbutter committed May 2, 2024
commit 289aaece6837636c8b1c7ca3180424216254d3c5
5 changes: 4 additions & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,8 @@
"type-fest": "^3.7.0",
"typescript": "^5.4.2",
"zod": "^3.23.3"
}
},
"trustedDependencies": [
"es5-ext"
kakenbutter marked this conversation as resolved.
Show resolved Hide resolved
]
}
1 change: 1 addition & 0 deletions cli/template/base/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const config = {
locales: ["en"],
defaultLocale: "en",
},
transpilePackages: ["geist"],
kakenbutter marked this conversation as resolved.
Show resolved Hide resolved
};

export default config;
3 changes: 1 addition & 2 deletions cli/template/extras/config/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { type Config } from "tailwindcss";
import { fontFamily } from "tailwindcss/defaultTheme";

export default {
content: ["./src/**/*.tsx"],
theme: {
extend: {
fontFamily: {
sans: ["var(--font-sans)", ...fontFamily.sans],
kakenbutter marked this conversation as resolved.
Show resolved Hide resolved
sans: ["var(--font-geist-sans)"],
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions cli/template/extras/src/app/layout/with-trpc-tw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={`${GeistSans.variable}`}>
<html lang="en" className={`${GeistSans.variable}`}>
<body>
<TRPCReactProvider>{children}</TRPCReactProvider>
</body>
</html>
Expand Down
4 changes: 2 additions & 2 deletions cli/template/extras/src/app/layout/with-tw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={`${GeistSans.variable}`}>{children}</body>
<html lang="en" className={`${GeistSans.variable}`}>
<body>{children}</body>
</html>
);
}
2 changes: 1 addition & 1 deletion cli/template/extras/src/pages/_app/with-auth-trpc-tw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const MyApp: AppType<{ session: Session | null }> = ({
}) => {
return (
<SessionProvider session={session}>
<main className={`${GeistSans.variable}`}>
<main className={GeistSans.className}>
<Component {...pageProps} />
</main>
</SessionProvider>
Expand Down
2 changes: 1 addition & 1 deletion cli/template/extras/src/pages/_app/with-auth-tw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const MyApp: AppType<{ session: Session | null }> = ({
}) => {
return (
<SessionProvider session={session}>
<main className={`${GeistSans.variable}`}>
<main className={GeistSans.className}>
<Component {...pageProps} />
</main>
</SessionProvider>
Expand Down
2 changes: 1 addition & 1 deletion cli/template/extras/src/pages/_app/with-trpc-tw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "~/styles/globals.css";

const MyApp: AppType = ({ Component, pageProps }) => {
return (
<main className={`${GeistSans.variable}`}>
<main className={GeistSans.className}>
<Component {...pageProps} />
</main>
);
Expand Down
2 changes: 1 addition & 1 deletion cli/template/extras/src/pages/_app/with-tw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "~/styles/globals.css";

const MyApp: AppType = ({ Component, pageProps }) => {
return (
<main className={`${GeistSans.variable}`}>
<main className={GeistSans.className}>
<Component {...pageProps} />
</main>
);
Expand Down
Loading