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 d8093b8..1a0d015 100644 --- a/frontend/src/lib/post/framework/ui/PostContentPage.svelte +++ b/frontend/src/lib/post/framework/ui/PostContentPage.svelte @@ -16,7 +16,7 @@ onMount(() => postBloc.dispatch({ event: PostEventType.PostLoadedEvent, id: id })); -
+
{#if state.data}
diff --git a/frontend/src/lib/post/framework/ui/PostPreview.svelte b/frontend/src/lib/post/framework/ui/PostPreview.svelte index b4a4d0f..1a1b67d 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)' + } + } + }) + } + } +};