55aa8933af492cc9f328136ab8ee5677b919cbb3
The app painted white until <ThemeProvider> mounted and set data-theme, then snapped to the dark theme. Two fixes: - Inline head script (rsbuild html.tags) sets data-theme before first paint, mirroring modern-sk's exact logic (localStorage 'modern-sk-theme' || 'dark') so there's no second flip when the provider mounts. Inline = zero round-trips. - body now paints var(--color-bg) so the themed background shows before React mounts #root and layers the felt grain on top. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Rsbuild project
Setup
Install the dependencies:
npm install
Get started
Start the dev server, and the app will be available at http://localhost:3000.
npm run dev
Build the app for production:
npm run build
Preview the production build locally:
npm run preview
Learn more
To learn more about Rsbuild, check out the following resources:
- Rsbuild documentation - explore Rsbuild features and APIs.
- Rsbuild GitHub repository - your feedback and contributions are welcome!
Description
Languages
TypeScript
90.3%
CSS
6.1%
JavaScript
3.3%
Shell
0.3%