Skip to content

feat: default new visitors to tokyonight theme#62

Merged
aiedwardyi merged 1 commit into
mainfrom
feat/default-tokyonight
Jul 4, 2026
Merged

feat: default new visitors to tokyonight theme#62
aiedwardyi merged 1 commit into
mainfrom
feat/default-tokyonight

Conversation

@aiedwardyi

Copy link
Copy Markdown
Owner

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.tsx and the anti-flash init script in layout.tsx.

Verified locally: a fresh visitor gets html.dark.tokyonight (bg #1a1b26); a returning user's saved theme still wins.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@aiedwardyi

Copy link
Copy Markdown
Owner Author

@codex review

@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 50 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 517920c9-e355-4922-ad26-057d9ff14c00

📥 Commits

Reviewing files that changed from the base of the PR and between dae7118 and 499eb78.

📒 Files selected for processing (2)
  • src/app/layout.tsx
  • src/app/page.tsx

Comment @coderabbitai help to get the list of available commands.

@aiedwardyi
aiedwardyi requested a review from Copilot July 4, 2026 04:39
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 theme state in page.tsx from "dark""tokyonight".
  • Default themeInitScript fallback in layout.tsx from "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.

@aiedwardyi
aiedwardyi merged commit 9285e2c into main Jul 4, 2026
3 checks passed
@aiedwardyi
aiedwardyi deleted the feat/default-tokyonight branch July 4, 2026 04:46
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.

2 participants