diff --git a/frontend/package.json b/frontend/package.json index 3f8fb84..17a15b7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "squidspirit-blog", "private": true, - "version": "0.2.1", + "version": "0.2.2", "type": "module", "scripts": { "dev": "vite dev", diff --git a/frontend/src/app.css b/frontend/src/app.css index 224a8cb..bc37462 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -1,5 +1,6 @@ @import 'tailwindcss'; @plugin '@tailwindcss/typography'; +@config "../tailwind.config.js"; @font-face { font-family: 'HackNerdMono'; diff --git a/frontend/src/lib/post/framework/ui/PostContentPage.svelte b/frontend/src/lib/post/framework/ui/PostContentPage.svelte index eb3f4ca..4137496 100644 --- a/frontend/src/lib/post/framework/ui/PostContentPage.svelte +++ b/frontend/src/lib/post/framework/ui/PostContentPage.svelte @@ -20,7 +20,7 @@ {generateTitle(state.data?.info.title)} -
+
{#if state.data}
diff --git a/frontend/src/lib/post/framework/ui/PostPreview.svelte b/frontend/src/lib/post/framework/ui/PostPreview.svelte index 5814bed..7a22e4b 100644 --- a/frontend/src/lib/post/framework/ui/PostPreview.svelte +++ b/frontend/src/lib/post/framework/ui/PostPreview.svelte @@ -34,7 +34,7 @@
-

{postInfo.title}

+

{postInfo.title}

{postInfo.description}

{postInfo.formattedPublishedTime}
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js new file mode 100644 index 0000000..caa8dde --- /dev/null +++ b/frontend/tailwind.config.js @@ -0,0 +1,18 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + theme: { + extend: { + typography: () => ({ + gray: { + css: { + '--tw-prose-body': 'var(--color-gray-700)', + '--tw-prose-headings': 'var(--color-gray-800)', + '--tw-prose-links': 'var(--color-gray-800)', + '--tw-prose-bold': 'var(--color-gray-800)', + '--tw-prose-quotes': 'var(--color-gray-800)' + } + } + }) + } + } +};