Skip to content

Commit 81cad27

Browse files
author
gptkong
committed
Add @tailwindcss/typography plugin and update package-lock.json
1 parent f238463 commit 81cad27

File tree

4 files changed

+61
-29
lines changed

4 files changed

+61
-29
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"tailwindcss": "^4.1.8"
3131
},
3232
"devDependencies": {
33+
"@tailwindcss/typography": "^0.5.16",
3334
"tw-animate-css": "^1.3.4"
3435
}
3536
}

src/layouts/BlogPost.astro

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -91,32 +91,3 @@ const { title, description, pubDate, updatedDate, heroImage, tags } =
9191
<Footer />
9292
</body>
9393
</html>
94-
95-
<style>
96-
.prose {
97-
max-width: 65ch;
98-
margin: 0 auto;
99-
}
100-
.prose img {
101-
margin: 2rem auto;
102-
border-radius: 0.5rem;
103-
}
104-
.prose pre {
105-
background-color: #1a1a1a;
106-
border-radius: 0.5rem;
107-
padding: 1rem;
108-
overflow-x: auto;
109-
}
110-
.prose code {
111-
background-color: #f3f4f6;
112-
padding: 0.2rem 0.4rem;
113-
border-radius: 0.25rem;
114-
font-size: 0.875em;
115-
}
116-
.prose pre code {
117-
background-color: transparent;
118-
padding: 0;
119-
border-radius: 0;
120-
font-size: 0.9em;
121-
}
122-
</style>

src/styles/global.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

0 commit comments

Comments
 (0)