From 587c4f7f64bfc0d8583273db4876a3e57e50b2f0 Mon Sep 17 00:00:00 2001 From: kennethcheng Date: Mon, 27 Apr 2026 13:06:01 +0800 Subject: [PATCH] feat: config tailwind typography plugin --- DEV_LOG.md | 1 + package-lock.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + tailwind.config.mjs | 7 +++++++ 4 files changed, 53 insertions(+) create mode 100644 tailwind.config.mjs diff --git a/DEV_LOG.md b/DEV_LOG.md index 578e37b..62e8c5a 100644 --- a/DEV_LOG.md +++ b/DEV_LOG.md @@ -1,2 +1,3 @@ Task 1: Astro 基础脚手架已生成 Task 2: Tailwind 官方集成安装完毕 +Task 3: Typography 插件配置完成 diff --git a/package-lock.json b/package-lock.json index 7487f05..1c09f95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "llm_log_frontend", "version": "0.0.1", "dependencies": { + "@tailwindcss/typography": "^0.5.19", "@tailwindcss/vite": "^4.2.4", "astro": "^6.1.9", "tailwindcss": "^4.2.4" @@ -1802,6 +1803,18 @@ "node": ">= 20" } }, + "node_modules/@tailwindcss/typography": { + "version": "0.5.19", + "resolved": "https://registry.npmmirror.com/@tailwindcss/typography/-/typography-0.5.19.tgz", + "integrity": "sha512-w31dd8HOx3k9vPtcQh5QHP9GwKcgbMp87j58qi6xgiBnFFtKEAgCWnDw4qUT8aHwkCp8bKvb/KGKWWHedP0AAg==", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "6.0.10" + }, + "peerDependencies": { + "tailwindcss": ">=3.0.0 || insiders || >=4.0.0-alpha.20 || >=4.0.0-beta.1" + } + }, "node_modules/@tailwindcss/vite": { "version": "4.2.4", "resolved": "https://registry.npmmirror.com/@tailwindcss/vite/-/vite-4.2.4.tgz", @@ -2204,6 +2217,18 @@ "url": "https://github.com/sponsors/fb55" } }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/csso": { "version": "5.0.5", "resolved": "https://registry.npmmirror.com/csso/-/csso-5.0.5.tgz", @@ -4282,6 +4307,19 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/postcss-selector-parser": { + "version": "6.0.10", + "resolved": "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", + "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/prismjs": { "version": "1.30.0", "resolved": "https://registry.npmmirror.com/prismjs/-/prismjs-1.30.0.tgz", @@ -5125,6 +5163,12 @@ } } }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, "node_modules/vfile": { "version": "6.0.3", "resolved": "https://registry.npmmirror.com/vfile/-/vfile-6.0.3.tgz", diff --git a/package.json b/package.json index 2f641e0..ac65538 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "astro": "astro" }, "dependencies": { + "@tailwindcss/typography": "^0.5.19", "@tailwindcss/vite": "^4.2.4", "astro": "^6.1.9", "tailwindcss": "^4.2.4" diff --git a/tailwind.config.mjs b/tailwind.config.mjs new file mode 100644 index 0000000..7000d94 --- /dev/null +++ b/tailwind.config.mjs @@ -0,0 +1,7 @@ +import typography from '@tailwindcss/typography'; + +export default { + plugins: [ + typography, + ], +};