NO-ISSUE Merged from release/0.2 #114

Merged
squid merged 3 commits from NO-ISSUE_merge_v0.2.2 into main 2025-08-04 07:35:46 +08:00
5 changed files with 22 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{
"name": "squidspirit-blog",
"private": true,
"version": "0.2.1",
"version": "0.2.2",
"type": "module",
"scripts": {
"dev": "vite dev",

View File

@ -1,5 +1,6 @@
@import 'tailwindcss';
@plugin '@tailwindcss/typography';
@config "../tailwind.config.js";
@font-face {
font-family: 'HackNerdMono';

View File

@ -20,7 +20,7 @@
<svelte:head>
<title>{generateTitle(state.data?.info.title)}</title>
</svelte:head>
<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">

View File

@ -34,7 +34,7 @@
</div>
<div class="flex flex-col gap-y-2.5">
<PostPreviewLabels labels={postInfo.labels} />
<h2 class="line-clamp-1 text-lg font-bold">{postInfo.title}</h2>
<h2 class="line-clamp-1 text-lg font-bold text-gray-800">{postInfo.title}</h2>
<p class="line-clamp-3 text-justify text-sm">{postInfo.description}</p>
<span class="text-sm text-gray-500">{postInfo.formattedPublishedTime}</span>
</div>

View 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)'
}
}
})
}
}
};