Skip to content

feat(theme): add Catppuccin colour scheme support with live toggle#19

Merged
flexiondotorg merged 3 commits intomainfrom
catppuccin
Mar 22, 2026
Merged

feat(theme): add Catppuccin colour scheme support with live toggle#19
flexiondotorg merged 3 commits intomainfrom
catppuccin

Conversation

@flexiondotorg
Copy link
Copy Markdown
Member

  • Add Catppuccin CSS stylesheet with complete colour palette
  • Implement getCatppuccinEnabled() and setCatppuccinEnabled() config functions
  • Wire Catppuccin CSS injection on window load
  • Create applyCatppuccinCSS function for live enable/disable/variant changes
  • Add nativeTheme import for potential dark mode integration
  • Add i18n strings for Catppuccin theme labels
  • Update package.json with theme dependencies

Checklist

  • I have performed a self-review of my code
  • I have tested my changes and confirmed there are no regressions

- Add Catppuccin CSS stylesheet with complete colour palette
- Implement getCatppuccinEnabled() and setCatppuccinEnabled() config
  functions
- Wire Catppuccin CSS injection on window load
- Create applyCatppuccinCSS function for live enable/disable/variant
  changes
- Add nativeTheme import for potential dark mode integration
- Add i18n strings for Catppuccin theme labels
- Update package.json with theme dependencies

Signed-off-by: Martin Wimpress <code@wimpress.io>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 8 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/main.ts">

<violation number="1" location="src/main.ts:252">
P2: Serialize `applyCatppuccinCSS` calls; concurrent fire-and-forget updates can race and leave Catppuccin CSS in the wrong final state.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

…ining

- Wrap CSS injection/removal in sequential Promise chain
- Prevents concurrent CSS operations from interfering with each other

Signed-off-by: Martin Wimpress <code@wimpress.io>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/main.ts">

<violation number="1" location="src/main.ts:254">
P1: A rejected CSS operation poisons the serialized promise chain, so all later Catppuccin toggles are skipped.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

- Add catch handler to log CSS operation failures
- Ensure promise chain continues despite errors

Signed-off-by: Martin Wimpress <code@wimpress.io>
@flexiondotorg flexiondotorg merged commit 294e1cb into main Mar 22, 2026
10 checks passed
@flexiondotorg flexiondotorg deleted the catppuccin branch March 22, 2026 17:11
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.

1 participant