Repository navigation
Migrate from daisyUI to Material Design 3 components - #3
Merged
Merged
Conversation
- 移除 daisyUI,改用 Tailwind v4 + 自建 M3 设计令牌(色彩角色、字阶、 形状、阴影层级、缓动),颜色用 light-dark() 一次声明亮/暗两套 - 手写 M3 组件:顶栏(含服务端渲染的面包屑)、Filled/Tonal/Outlined 按钮、图标按钮、卡片、Filter chip、列表项、搜索栏与搜索视图 - 搜索改为手机全屏、桌面悬浮的 M3 搜索视图,新增清除按钮与点击遮罩关闭 - 主题切换改为顶栏图标开关并带 aria-pressed - 代码块改用 Shiki 亮/暗双主题,跟随页面主题 - Waline 评论区按 M3 角色换肤 - 自托管 Roboto / Roboto Mono 字体 - 更新 README,调整并补充 Playwright 测试 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kp1FWSg2KNQv7CgwopXfVs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR replaces the daisyUI-based design system with a custom Material Design 3 implementation, including design tokens, component styles, and updated layouts.
Summary
The project has been migrated from daisyUI to a Material Design 3 (M3) design system. This includes:
Key Changes
Design System & Tokens
tokens.csswith M3 design tokens (colors, typography, shadows, radii)base.cssfor foundational styles (color-scheme, focus indicators, scroll behavior)data-themeattribute withlight-dark()CSS functionComponent Library
components.csswith M3 interactive components:Typography & Content
prose.cssfor markdown article styling with M3 typography scaleComponents & Pages
NavBar.astrowith M3 breadcrumb and icon buttonsSearchModal.astrowith new interaction patternsThemeController.astroto use button instead of checkboxPostCard.astroandCard.astrofor M3 stylingAccessibility & UX
Styling Cleanup
Placeholder.astrocomponentNotable Implementation Details
::beforepseudo-element withcurrentColorfor flexible theming@starting-stylefor smooth open/close animationslight-dark()function for automatic color scheme switchinghttps://claude.ai/code/session_01Kp1FWSg2KNQv7CgwopXfVs