Skip to content

Commit 0343f60

Browse files
committed
feat(style): theme cleanup and style refine (#142)
## ✨ Features Updates && 🐛 Bug Fix && 🛠 Code Refactor && 📦 Dependency Update ### 📌 Description This PR mainly served to utilize most of the TailwindCSS v4 features. And extract re-usable styles and utilities outside `global.css`. Improve maintainability and usability of the whole theme. ### 🔍 Feature Changes - [x] New component or page - [x] Add support for checkbox `[x] [ ]` inside markdown file. - [ ] API update - [x] UI/UX improvement: - [x] The Custom scrollbar background was removed for the code block and TOC. Also border radius is consistent now. - [x] Code block shadow decreased from `lg` to `md`. - [x] Table boarder radius and overlay on corner issues fixed. - [ ] Other ### 🔄 Refactor Changes - [ ] Code optimization - [x] Improve maintainability: - [x] Remove unnecessary code: - [x] `Suspense` for `CategoriesTagsList.tsx`. - [x] Remove `Overlay` prop for `MetaInfo` inside `ArticlePage.tsx`. - [ ] Other ### 🛠 Bug Fixes - [ ] Fixed issue - [x] Improved error handling: inside root `layout.tsx`, add more error handling for `RSS` option from config. - [ ] Performance fix - [x] Other: switch links with `prefetch={false}` to barebone `<a>` tag. ### ✅ Checklist 1. Feature Updates: - [x] Code follows project coding style. - [x] Tested in a Next.js environment. - [ ] Relevant documentation is updated. 2. Bug Fixes: - [x] Bug has been reproduced and verified. - [x] Fix does not introduce new issues. - [ ] Added necessary tests. 3. Code Refactor: - [x] No breaking changes introduced. - [x] Performance improvement validated. - [x] Documentation updated if necessary. 4. Dependency Updates: - [x] Verified functionality after update. - [x] Checked for security vulnerabilities using `npm audit` / `pnpm audit`. ### 📜 Dependency Changes | Dependency Name | Old Version | New Version | Reason | | --------------- | ----------- | ----------- | ---------------------------------- | | Tailwind CSS | 4.0.13 | 4.0.14 | Patch Update | ### 💬 Additional Notes - We need to improve the img logic inside the markdown. - `LoadingIndicator.tsx` is not used now, consider to remove. - Maximum width of contents could be changed from `max-w-3xl` to `max-w-5xl` or even larger.
2 parents 48cdb1d + 418b458 commit 0343f60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+941
-670
lines changed

CHANGELOG.md

+29
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# SuzuBlog Changelog
22

3+
## 1.5.1
4+
5+
### Patch Changes
6+
7+
- Fix anime page styling issue
8+
9+
- Forget to update anime page.
10+
- Also update dark mode styling to improve contrast.
11+
12+
## 1.5.0
13+
14+
### Minor Changes
15+
16+
- Theme cleanup and style refine
17+
18+
- feat(makrdown): add style for checkbox related
19+
20+
- 7daad73: style(global): styles clean up and re-structure
21+
22+
- Move reusable styles into `styles` folder.
23+
- Fix custom scroll bar consistence.
24+
- Fix minor styling issue and contract issue.
25+
- Improve A11Y overall experience.
26+
- Remove img min-h limit in markdown. Remember to refine this in the future.
27+
- Remove Suspense for `CategoriesTagsList.tsx`. LoadingIndicator is non-used component now.
28+
29+
- 2548e85: chore: clean up some code
30+
- 215b4eb: feat(darkTheme): theme setting only store for 7 days
31+
332
## 1.4.3
433

534
### Patch Changes

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
[![Eslint][eslint-badge]][eslint-link]
1515
[![Prettier][prettier-badge]][prettier-link]
1616

17+
- [**Demo**](https://www.zla.pub) 🚀
18+
Check out the live demo of Suzu Blog.
1719
- [**Documentation**](https://suzu.zla.app) 📚
1820
Learn how to start, configure and customize your Suzu Blog with detailed instructions.
1921

README_JA.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
[![Eslint][eslint-badge]][eslint-link]
1515
[![Prettier][prettier-badge]][prettier-link]
1616

17+
- [**デモ**](https://www.zla.pub) 🚀
18+
Suzu Blog のライブデモをチェック。
1719
- [**ドキュメント**](https://suzu.zla.app) 📚
1820
Suzu Blog の開始、設定、カスタマイズ方法を詳細に説明。
1921

README_ZH.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
[![Eslint][eslint-badge]][eslint-link]
1515
[![Prettier][prettier-badge]][prettier-link]
1616

17+
- [**演示**](https://www.zla.pub) 🚀
18+
查看 Suzu Blog 的实时演示。
1719
- [**文档**](https://suzu.zla.app) 📚
1820
学习如何使用详细说明开始、配置和自定义 Suzu Blog。
1921

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "suzu-blog",
3-
"version": "1.4.3",
3+
"version": "1.5.1",
44
"private": true,
5-
"packageManager": "[email protected].2",
5+
"packageManager": "[email protected].3",
66
"author": {
77
"name": "ZL Asica",
88
"email": "[email protected]",
@@ -29,12 +29,12 @@
2929
"dependencies": {
3030
"@vercel/analytics": "^1.5.0",
3131
"@vercel/speed-insights": "^1.2.0",
32-
"@zl-asica/react": "^0.3.17",
32+
"@zl-asica/react": "^0.4.1",
3333
"clsx": "^2.1.1",
3434
"es-toolkit": "^1.33.0",
3535
"gray-matter": "^4.0.3",
3636
"katex": "^0.16.21",
37-
"lucide-react": "^0.479.0",
37+
"lucide-react": "^0.482.0",
3838
"next": "15.2.2",
3939
"react": "19.0.0",
4040
"react-dom": "19.0.0",
@@ -51,11 +51,11 @@
5151
"zod": "^3.24.2"
5252
},
5353
"devDependencies": {
54-
"@antfu/eslint-config": "^4.10.0",
54+
"@antfu/eslint-config": "^4.10.1",
5555
"@changesets/cli": "^2.28.1",
56-
"@eslint-react/eslint-plugin": "^1.32.0",
56+
"@eslint-react/eslint-plugin": "^1.34.0",
5757
"@next/eslint-plugin-next": "^15.2.2",
58-
"@tailwindcss/postcss": "^4.0.13",
58+
"@tailwindcss/postcss": "^4.0.14",
5959
"@types/node": "^22.13.10",
6060
"@types/react": "^19.0.10",
6161
"@types/react-dom": "^19.0.4",
@@ -66,13 +66,13 @@
6666
"eslint-plugin-react-refresh": "^0.4.19",
6767
"eslint-plugin-tailwindcss": "^3.18.0",
6868
"husky": "^9.1.7",
69-
"lint-staged": "^15.4.3",
69+
"lint-staged": "^15.5.0",
7070
"postcss": "^8.5.3",
7171
"postcss-flexbugs-fixes": "^5.0.2",
7272
"postcss-preset-env": "^10.1.5",
7373
"prettier": "^3.5.3",
7474
"rss": "^1.2.2",
75-
"tailwindcss": "^4.0.13",
75+
"tailwindcss": "^4.0.14",
7676
"typescript": "^5.8.2"
7777
},
7878
"lint-staged": {

0 commit comments

Comments
 (0)