Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: improve homepage dark mode contrast#91

Draft
Bortlesboat wants to merge 1 commit into
datawhalechina:mainfrom
Bortlesboat:fix/81-home-dark-contrast
Draft

fix: improve homepage dark mode contrast#91
Bortlesboat wants to merge 1 commit into
datawhalechina:mainfrom
Bortlesboat:fix/81-home-dark-contrast

Conversation

@Bortlesboat
Copy link
Copy Markdown

Fixes #81.

Summary

  • switch custom homepage dark-mode text to VitePress theme text variables
  • give the Stage 2/3/footer cards dark backgrounds and borders in dark mode
  • replace the undefined --vp-c-bg-mute feature-card background with --vp-c-bg-soft

Verification

  • npm run build
  • npm run lint (0 errors; existing warnings only)
  • git diff --check -- docs/.vitepress/theme/components/HomeFeatures.vue
  • Browser check at http://127.0.0.1:5173/easy-vibe/zh-cn/ in dark mode; sampled homepage text contrast ranged from 5.6:1 to 15.77:1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

datawhalechina.github.io/easy-vibe/zh-cn 打开深色模式时文字对比度下降

1 participant