Skip to content

Commit 5c0d5ae

Browse files
Fix yoinked typography plugin, adjust styles
1 parent 66df23c commit 5c0d5ae

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/lib/components/MarkdownRenderer.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
};
2020
2121
let {
22-
markdown,
22+
markdown: md,
2323
inline = false,
2424
parseRawHtml = false,
2525
additionalPlugins = [],
@@ -38,7 +38,7 @@
3838
)}
3939
>
4040
<Markdown
41-
md={markdown}
41+
{md}
4242
plugins={[
4343
gfmPlugin(),
4444
...(parseRawHtml ? [{ rehypePlugin: rehypeRaw }] : []),

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@
727727
<Button
728728
href={release.html_url}
729729
target="_blank"
730-
class="group mb-4 ml-auto mr-8 font-semibold dark:text-black sm:ml-4 sm:mt-auto"
730+
class="group mb-4 ml-auto mr-8 gap-0 font-semibold dark:text-black sm:ml-4 sm:mt-auto"
731731
>
732732
Open on <img src="/github.svg" alt="GitHub" class="ml-1.5 size-5" />
733733
<ArrowUpRight

tailwind.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Config } from "tailwindcss";
22
import defaultTheme from "tailwindcss/defaultTheme";
3+
import typography from "@tailwindcss/typography";
34
import tailwindcssAnimate from "tailwindcss-animate";
45

56
const config: Config = {
@@ -73,6 +74,15 @@ const config: Config = {
7374
fontFamily: {
7475
sans: [...defaultTheme.fontFamily.sans]
7576
},
77+
typography: {
78+
DEFAULT: {
79+
css: {
80+
a: {
81+
color: 'theme("colors.primary.DEFAULT")'
82+
}
83+
}
84+
}
85+
},
7686
keyframes: {
7787
"accordion-down": {
7888
from: { height: "0" },
@@ -94,7 +104,7 @@ const config: Config = {
94104
}
95105
}
96106
},
97-
plugins: [tailwindcssAnimate]
107+
plugins: [typography, tailwindcssAnimate]
98108
};
99109

100110
export default config;

0 commit comments

Comments
 (0)