TEBEX-1212 - Allow more colour options to be configured#24
Merged
Chilledson merged 2 commits intotebexio:mainfrom Dec 1, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request expands the checkout customization capabilities by adding 10 new color configuration options to the COLOR_NAMES array, allowing developers to customize additional UI elements beyond just primary and secondary colors. The changes also include updates to example files demonstrating the use of the defaultPaymentMethod option with a hardcoded "paypal" value for demonstration purposes.
Key changes:
- Extended
COLOR_NAMESarray with 10 new color options for more granular UI customization - Updated example files to demonstrate
defaultPaymentMethodconfiguration - Updated compiled distribution files to reflect source changes
Reviewed changes
Copilot reviewed 2 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/checkout.ts | Added 10 new color names to COLOR_NAMES array: background, surface, surface-variant, success, warning, error, green, red, fields, field-border |
| example/index.js | Added defaultPaymentMethod: "paypal" to configuration object for demonstration |
| example/dist/index.js | Added defaultPaymentMethod: "paypal" and updated endpoint to production URL |
| dist/types/checkout.d.ts | Updated TypeScript declaration to include new color names in COLOR_NAMES type |
| dist/tebex.mjs | Updated ESM bundle with new color names |
| dist/tebex.cjs | Updated CommonJS bundle with new color names |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tebexjaames
approved these changes
Nov 24, 2025
tebexjaames
approved these changes
Nov 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces updates to the payment method configuration and expands the supported color options for checkout customization. The most notable changes are the addition of a default payment method and an extended set of color names.
Checkout customization:
COLOR_NAMESarray insrc/checkout.tsto include new color options (background,surface,surface-variant,success,warning,error,green,red,fields,field-border).