Skip to content

Commit

Permalink
style: roboto font
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyshlyaev177 committed Jul 17, 2024
1 parent fcf9746 commit 55289ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
19 changes: 8 additions & 11 deletions packages/example-nextjs/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import './globals.css';
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import { Analytics } from '@vercel/analytics/react';
const inter = Inter({ subsets: ['latin'] });
import { Roboto } from 'next/font/google';

export const metadata: Metadata = {
title: 'state-in-url',
description:
// eslint-disable-next-line max-len
'Demo page that demostrates communication between client components in Next.js',
};
import './globals.css';
const roboto = Roboto({
subsets: ['latin'],
weight: '400',
variable: '--font-roboto',
});

const isDev = process.env.NODE_ENV === 'development';

Expand All @@ -20,7 +17,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
<body className={roboto.className}>{children}</body>
{isDev ? null : <Analytics />}
</html>
);
Expand Down
8 changes: 7 additions & 1 deletion packages/example-nextjs/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ const config: Config = {
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
],
// theme: { colors: { ...colors } },
theme: {
extend: {
fontFamily: {
sans: ['var(--font-roboto)'],
},
},
},
plugins: [],
};
export default config;

0 comments on commit 55289ba

Please sign in to comment.