fix: resolve flash of unstyled content in dark mode#766
Conversation
PR SummaryLow Risk Overview Adds Reviewed by Cursor Bugbot for commit ae47eff. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
893ddea to
4ae89b4
Compare
4ae89b4 to
34de276
Compare
|
This seems highly complex |
|
the it is done so that the script is available before rendering the html and there is no latency which could have happened if browser makes request for the |
34de276 to
0b53971
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #766 +/- ##
==========================================
- Coverage 78.43% 77.94% -0.49%
==========================================
Files 157 159 +2
Lines 13962 14058 +96
Branches 1152 1152
==========================================
+ Hits 10951 10958 +7
- Misses 3006 3095 +89
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
0b53971 to
3c1f1be
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 3c1f1be. Configure here.
3c1f1be to
501c20b
Compare
|
@ovflowd |
501c20b to
667b443
Compare
canerakdas
left a comment
There was a problem hiding this comment.
LGTM, I just left one comment 🚀
667b443 to
ae47eff
Compare

Description
This PR resolves the FOUC by resolving
systemtodarkorlightusing matchMedia.Earlier
systemwas directly being applied asset-theme = systemValidation
before :
Screencast.from.2026-04-13.19-26-34.webm
after :
Screencast.from.2026-04-13.19-24-03.webm
Related Issues
n/a
Check List
node --run testand all tests passed.node --run format&node --run lint.