vscode icon indicating copy to clipboard operation
vscode copied to clipboard

feat: Allow custom hex accent color

Open Malusnow opened this issue 1 year ago • 0 comments

This PR allows users to specify a custom hex code for the accent color, resolving issue #411.

Changes

  • Added custom to the catppuccin.accentColor enum in package.json.
  • Introduced a new catppuccin.customAccentColors configuration object to accept hex codes for all or per-flavor (latte, mocha, etc.).
  • Updated TypeScript types to support the new configuration.
  • Implemented the logic in compileTheme to use the custom color when accentColor is set to custom.

Testing

  • Verified that existing accent colors work as before.
  • Tested setting a custom color via customAccentColors.all.
  • Tested setting different custom colors for mocha and latte and confirmed they apply correctly when switching themes.

Fixes #411

Malusnow avatar Nov 16 '25 09:11 Malusnow