BLOG-87 fix: enhance typography and color consistency in PostPreview and PostContentPage & feat: add tailwind configuration for custom typography styles
Some checks failed
Frontend CI / build (push) Has been cancelled
Some checks failed
Frontend CI / build (push) Has been cancelled
This commit is contained in:
parent
0896afe819
commit
9ae85b0c6e
@ -1,5 +1,6 @@
|
||||
@import 'tailwindcss';
|
||||
@plugin '@tailwindcss/typography';
|
||||
@config "../tailwind.config.js";
|
||||
|
||||
@font-face {
|
||||
font-family: 'HackNerdMono';
|
||||
|
@ -16,7 +16,7 @@
|
||||
onMount(() => postBloc.dispatch({ event: PostEventType.PostLoadedEvent, id: id }));
|
||||
</script>
|
||||
|
||||
<article class="container prose pb-10">
|
||||
<article class="container prose pb-10 prose-gray">
|
||||
{#if state.data}
|
||||
<PostContentHeader postInfo={state.data.info} />
|
||||
<div class="max-w-3xl">
|
||||
|
@ -34,7 +34,7 @@
|
||||
</div>
|
||||
<div class="flex flex-col gap-y-2.5">
|
||||
<PostPreviewLabels labels={postInfo.labels} />
|
||||
<span class="line-clamp-1 text-lg font-bold">{postInfo.title}</span>
|
||||
<span class="line-clamp-1 text-lg font-bold text-gray-800">{postInfo.title}</span>
|
||||
<span class="line-clamp-3 text-justify text-sm">{postInfo.description}</span>
|
||||
<span class="text-sm text-gray-500">{postInfo.formattedPublishedTime}</span>
|
||||
</div>
|
||||
|
18
frontend/tailwind.config.js
Normal file
18
frontend/tailwind.config.js
Normal file
@ -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)'
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
@ -12,9 +12,9 @@ export default defineConfig({
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:8080',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, '')
|
||||
target: 'https://squidspirit.com',
|
||||
changeOrigin: true
|
||||
// rewrite: (path) => path.replace(/^\/api/, '')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user