Skip to content

Commit badfd3f

Browse files
committed
add tailwind typography plugin
1 parent a65ccd9 commit badfd3f

4 files changed

Lines changed: 54 additions & 1 deletion

File tree

app/globals.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import "tailwindcss";
22
@import "tw-animate-css";
3+
@plugin "@tailwindcss/typography";
34

45
@custom-variant dark (&:is(.dark *));
56

app/layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Metadata } from "next";
22
import { Geist, Geist_Mono } from "next/font/google";
33
import "./globals.css";
4+
import { cn } from "@/lib/utils";
45

56
const geistSans = Geist({
67
variable: "--font-geist-sans",
@@ -25,7 +26,10 @@ export default function RootLayout({
2526
return (
2627
<html lang="en">
2728
<body
28-
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
29+
className={cn(
30+
`${geistSans.variable} ${geistMono.variable} antialiased`,
31+
'prose prose-headings:mt-8 prose-headings:font-semibold prose-headings:text-black prose-h1:text-5xl prose-h2:text-4xl prose-h3:text-3xl prose-h4:text-2xl prose-h5:text-xl prose-h6:text-lg dark:prose-headings:text-white'
32+
)}
2933
>
3034
{children}
3135
</body>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"devDependencies": {
3131
"@eslint/eslintrc": "^3",
3232
"@tailwindcss/postcss": "^4",
33+
"@tailwindcss/typography": "^0.5.16",
3334
"@types/node": "^20",
3435
"@types/react": "^19",
3536
"@types/react-dom": "^19",

pnpm-lock.yaml

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)