Skip to content

Commit df4743c

Browse files
Merge pull request #4 from Ditectrev/feature/ditectrev-fonts
Feature/ditectrev fonts
2 parents 2e3b03b + c5de338 commit df4743c

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

app/layout.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'css/tailwind.css'
22
import 'pliny/search/algolia.css'
33
import 'remark-github-blockquote-alert/alert.css'
44

5-
import { Space_Grotesk } from 'next/font/google'
5+
import { Philosopher, Lora } from 'next/font/google'
66
import { Analytics, AnalyticsConfig } from 'pliny/analytics'
77
import { SearchProvider, SearchConfig } from 'pliny/search'
88
import Header from '@/components/Header'
@@ -12,10 +12,17 @@ import siteMetadata from '@/data/siteMetadata'
1212
import { ThemeProviders } from './theme-providers'
1313
import { Metadata } from 'next'
1414

15-
const space_grotesk = Space_Grotesk({
15+
const philosopher = Philosopher({
1616
subsets: ['latin'],
1717
display: 'swap',
18-
variable: '--font-space-grotesk',
18+
weight: ['400', '700'],
19+
variable: '--font-philosopher',
20+
})
21+
22+
const lora = Lora({
23+
subsets: ['latin'],
24+
display: 'swap',
25+
variable: '--font-lora',
1926
})
2027

2128
export const metadata: Metadata = {
@@ -64,7 +71,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
6471
return (
6572
<html
6673
lang={siteMetadata.language}
67-
className={`${space_grotesk.variable} scroll-smooth`}
74+
className={`${philosopher.variable} ${lora.variable} scroll-smooth`}
6875
suppressHydrationWarning
6976
>
7077
<link

css/tailwind.css

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
/* Core theme configuration */
88
@theme {
99
/* Font families */
10-
--font-sans:
11-
var(--font-space-grotesk), ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
12-
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
10+
--font-sans: var(--font-lora), ui-serif, Georgia, serif;
11+
12+
--font-heading: var(--font-philosopher), ui-sans-serif, system-ui, sans-serif;
1313

1414
/* Colors */
1515
/* Brand color #3f51b5 converted to OKLCH and scaled for accessibility */
@@ -77,6 +77,20 @@
7777
border-radius: var(--radius-sm);
7878
outline-color: var(--color-primary-500);
7979
}
80+
81+
/* Apply Philosopher font to headings and buttons */
82+
h1,
83+
h2,
84+
h3,
85+
h4,
86+
h5,
87+
h6 {
88+
font-family: var(--font-heading);
89+
}
90+
91+
button {
92+
font-family: var(--font-heading);
93+
}
8094
}
8195

8296
@layer utilities {

0 commit comments

Comments
 (0)