-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(design): add W3C DTCG 2025.10 compliant design tokens system #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add design-tokens.tokens.json following W3C specification - Add component-tokens.ts with MD3 and Liquid Glass patterns - Add tokens.css with full CSS Variables implementation - Add 006_design_modernization_spec.md with ASCII layouts Token categories: - Color: primitives + semantic + accent variants - Spacing: 4px base unit scale (0-24) - Typography: font families, sizes, presets - Radius: sm to full scale - Shadow: sm to 2xl + glass-glow - Glass: blur, opacity, border, surface presets - Motion: duration + easing - Navigation: MD3 compliant sizes Responsive layouts designed for: - Mobile: Bottom Tab Bar (56px, 3-5 items) - Tablet: Nav Rail (80px) + Split View - Desktop: Sidebar (256px) + Multi-column References: - W3C Design Tokens 2025.10 - Apple Liquid Glass iOS 26 - Material Design 3 Navigation
Add comprehensive UI/UX specifications: Grid System (Section 7): - 4px base unit (iOS 8pt, Android 4dp compatible) - Mobile 4-col, Tablet 8-col, Desktop 12-col grids - Margins 16-24px, Gutters 16-24px - Android Window Size Classes Card Design (Section 9.4): - Shadow elevation system (sm/md/lg/xl) - Hover animation specs (200ms, translateY) - Border radius consistency rules Form Design (Section 10): - Input height 44-52px - Validation: Reward Early, Punish Late - Currency input 56px with embedded selector Micro-interactions (Section 11): - 3-second rule for animations - Button 100-150ms, Modal 300-400ms - Ripple effect for mobile - prefers-reduced-motion support Skeleton Loading (Section 12): - Shimmer effect 1.5s cycle - Layout matching principle - Cross-fade transitions Empty/Error States (Section 13): - 5 empty state types - Ratewise-specific templates - CTA requirement Gestures (Section 14): - Touch targets 44x44px min - Pull-to-refresh 60px threshold - Swipe actions with fallbacks Financial Visualization (Section 15): - Green/Red for trends - Multi-currency chart colors - Number formatting standards Sources: - Android Developers, Material Design 3 - NN/g, LogRocket UX Design - Mobbin, UXPin
|
✅ SEO 審計通過!所有 2025 標準驗證項目都符合要求。
|
🔦 Lighthouse CI 報告
📊 查看完整報告 門檻:所有類別 ≥ 85 分(軟性警告,不阻擋 PR) |
… Tailwind - Add spacingTokens mapping to CSS Variables (--spacing-*) - Add borderRadiusTokens mapping to CSS Variables (--radius-*) - Add boxShadowTokens with glass-specific shadows (--shadow-*, --glass-shadow-*) - Add fontSizeTokens with line-height configuration - Add transitionDurationTokens and transitionTimingTokens - Add zIndexTokens with semantic levels (dropdown, modal, toast, etc.) - Update generateTailwindThemeExtension() to include all token categories
|
✅ SEO 審計通過!所有 2025 標準驗證項目都符合要求。
|
📊 PR 檢查結果✅ 品質檢查
📦 建置資訊
🤖 Automated by GitHub Actions |
🔦 Lighthouse CI 報告
📊 查看完整報告 門檻:所有類別 ≥ 85 分(軟性警告,不阻擋 PR) |
P0 - Accessibility Compliance: - Increase --button-height-sm from 32px to 44px (WCAG 2.2) - Increase --input-height-sm from 36px to 44px (WCAG 2.2) - Increase --font-size-xs from 12px to 14px (readability) P1 - 2025 Standards: - Add fluid typography with clamp() (--font-size-fluid-*) - Add responsive breakpoint tokens (--breakpoint-xs/sm/md/lg/xl/2xl) - Add mobile-optimized body text (18px default on mobile) P2 - Enhanced Experience: - Add Container Query support (.container-responsive, @container) - Add density tokens ([data-density='compact/comfortable']) - Add M3 Expressive shape system (--shape-*) References: - WCAG 2.2 Target Size Minimum (2.5.8) - Apple HIG 44pt touch targets - Material Design 3 Expressive
|
✅ SEO 審計通過!所有 2025 標準驗證項目都符合要求。
|
📊 PR 檢查結果✅ 品質檢查
📦 建置資訊
🤖 Automated by GitHub Actions |
🔦 Lighthouse CI 報告
📊 查看完整報告 門檻:所有類別 ≥ 85 分(軟性警告,不阻擋 PR) |
Navigation Components: - BottomTabBar.tsx: Mobile navigation bar (56px, MD3 spec) - NavRail.tsx: Tablet navigation rail (80px, MD3 spec) - Sidebar.tsx: Desktop sidebar (256px/72px collapsed) - All use glass effect tokens and CSS Variables Layout System: - ResponsiveLayout.tsx: Integrates all navigation variants - ContentSection: Glass card wrapper component - PageHeader: Unified page header component Chart Optimization: - ChartContainer.tsx: Controlled width/height ratios - inline: max-height 120px, aspect-ratio 3:1 - card: max-width 480px, max-height 180px, aspect-ratio 2.5:1 - full: max-width 600px, max-height 240px, aspect-ratio 2:1 - MiniChart: 80x40px for list items - TrendIndicator: Trend display with arrow Breakpoint Strategy: - Mobile (<768px): BottomTabBar + bottom padding - Tablet (768-1023px): NavRail + left padding 80px - Desktop (≥1024px): Sidebar + left padding 256px
|
✅ SEO 審計通過!所有 2025 標準驗證項目都符合要求。
|
📊 PR 檢查結果✅ 品質檢查
📦 建置資訊
🤖 Automated by GitHub Actions |
🔦 Lighthouse CI 報告
📊 查看完整報告 門檻:所有類別 ≥ 85 分(軟性警告,不阻擋 PR) |
- Add GlassCard component with variant styles (base/elevated/overlay/subtle) - Add CurrencyInput with embedded currency selector and calculator button - Add RateDisplayCard with integrated 80px mini trend chart slot - Add CompactRateCard for list views (64px height) - Refactor SingleConverter to use new modular UI components - Update tests to match new component structure - All comments converted to English for open-source standards - WCAG 2.2 compliant touch targets (≥44px) - Design tokens integration for consistent theming
|
✅ SEO 審計通過!所有 2025 標準驗證項目都符合要求。
|
📊 PR 檢查結果✅ 品質檢查
📦 建置資訊
🤖 Automated by GitHub Actions |
🔦 Lighthouse CI 報告
📊 查看完整報告 門檻:所有類別 ≥ 85 分(軟性警告,不阻擋 PR) |
- Add JSDoc module documentation header - Replace all Chinese inline comments with English equivalents - Replace temporary fix markers ([fix:YYYY-MM-DD]) with clean comments - Update hover tooltip text from Chinese to English - Maintain all functionality unchanged
|
✅ SEO 審計通過!所有 2025 標準驗證項目都符合要求。
|
📊 PR 檢查結果✅ 品質檢查
📦 建置資訊
🤖 Automated by GitHub Actions |
🔦 Lighthouse CI 報告
📊 查看完整報告 門檻:所有類別 ≥ 85 分(軟性警告,不阻擋 PR) |
🔍 PR #103 開發環境檢查報告頁面渲染檢查結果
發現事項1. ✅ 所有頁面正常載入
2.
|
Token categories:
Responsive layouts designed for:
References: