Skip to content

Add user-selectable theme palette#2531

Draft
t3dotgg wants to merge 1 commit intomainfrom
cursor/user-theme-palette-51f1
Draft

Add user-selectable theme palette#2531
t3dotgg wants to merge 1 commit intomainfrom
cursor/user-theme-palette-51f1

Conversation

@t3dotgg
Copy link
Copy Markdown
Member

@t3dotgg t3dotgg commented May 5, 2026

What Changed

  • Added client settings for a user theme palette with primary and neutral seed colors.
  • Added a theme palette runtime that applies persisted CSS custom properties at boot and on settings updates.
  • Updated semantic CSS tokens and General settings UI to generate and preview a palette from selected colors.
  • Added focused tests for palette normalization, persistence, and settings schema defaults.

Why

This gives users a predictable way to customize T3 Code colors while keeping the existing light/dark mode and semantic token system intact.

UI Changes

theme_palette_settings_persist.mp4

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

Note

Add user-selectable theme palette to client settings

  • Adds ThemePaletteSettings (primary and neutral hex colors) to ClientSettingsSchema in settings.ts, with validation and defaults.
  • Rewires CSS color tokens in index.css to derive from two seed CSS variables (--theme-primary-seed, --theme-neutral-seed), affecting all light/dark mode colors.
  • Adds a 'Theme colors' row to the General Settings panel with a color picker, preset swatches, and a live preview component.
  • Applies the stored palette at boot (before app mount) via main.tsx and the inline script in index.html to avoid a flash of default colors.
  • Behavioral Change: all computed colors (background, card, primary, muted, etc.) now derive from seed colors via color-mix, so existing users will see slightly different shades until they set a custom palette.

Macroscope summarized 8a815ad.

Co-authored-by: Theo Browne <t3dotgg@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 5, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 58c10075-476a-4fcc-a0a8-668b647a19d5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/user-theme-palette-51f1

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants