Repository navigation
chore(create-docusaurus): remove the now-default respectPrefersColorScheme from the init templates (AI-assisted) - #12776
Conversation
…Scheme` from the init templates (AI-assisted) `themeConfig.colorMode.respectPrefersColorScheme` defaults to `true`, so the init templates don't need to set it anymore. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Size Change: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
The first deploy failed before building: Netlify fetched the pull/12776/head ref before GitHub created it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Size Change: 0 B Total Size: 12.1 MB ℹ️ View Unchanged
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
⚡️ Lighthouse report for the deploy preview of this PR
|
Motivation
Stacked on #12775, which makes
themeConfig.colorMode.respectPrefersColorSchemedefault totrue.The init templates have set
respectPrefersColorScheme: trueexplicitly since #11293, to opt new sites into the system color mode before it became the default. It's now redundant, so this removes it. New sites keep the same behavior.Test Plan
Test links
Deploy preview: https://deploy-preview-12776--docusaurus-2.netlify.app/
Related issues/PRs
respectPrefersColorSchemeby default (AI-assisted) #12775 (makesrespectPrefersColorScheme: truethe default)respectPrefersColorScheme: trueto the init templates)(AI-assisted)
🤖 Generated with Claude Code
Summary by CodeRabbit