feat: default new visitors to tokyonight theme#62
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 50 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
Comment |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
Updates the app’s initial theme selection so first-time visitors (no localStorage theme saved) default to the tokyonight theme instead of dark, aligning both the React state seed and the pre-hydration anti-flash <html> class initializer.
Changes:
- Default React
themestate inpage.tsxfrom"dark"→"tokyonight". - Default
themeInitScriptfallback inlayout.tsxfrom"dark"→"tokyonight"(including invalid-theme fallback).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/app/page.tsx | Seeds initial client theme state to tokyonight for users without a saved preference. |
| src/app/layout.tsx | Updates the pre-hydration theme init script to apply tokyonight on first paint for new visitors. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
New visitors with no saved theme now default to tokyonight (was dark). Updates the two spots that seed the default: the React state seed in
page.tsxand the anti-flash init script inlayout.tsx.Verified locally: a fresh visitor gets
html.dark.tokyonight(bg #1a1b26); a returning user's saved theme still wins.