vscode
vscode copied to clipboard
feat: Allow custom hex accent color
This PR allows users to specify a custom hex code for the accent color, resolving issue #411.
Changes
- Added
customto thecatppuccin.accentColorenum inpackage.json. - Introduced a new
catppuccin.customAccentColorsconfiguration object to accept hex codes forallor per-flavor (latte,mocha, etc.). - Updated TypeScript types to support the new configuration.
- Implemented the logic in
compileThemeto use the custom color whenaccentColoris set tocustom.
Testing
- Verified that existing accent colors work as before.
- Tested setting a custom color via
customAccentColors.all. - Tested setting different custom colors for
mochaandlatteand confirmed they apply correctly when switching themes.
Fixes #411