@skip-go/widget 1.3.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -56,9 +56,6 @@ The `SwapWidget` component accepts the following props:
56
56
 
57
57
  ````tsx
58
58
  interface SwapWidgetProps {
59
- colors?: {
60
- primary?: string; // Custom primary color for the widget. Defaults to `#FF486E`.
61
- };
62
59
  defaultRoute?: {
63
60
  // Default route for the widget.
64
61
  amountIn?: number;
@@ -129,6 +126,13 @@ interface SwapWidgetProps {
129
126
  getRestEndpointForChain?: (chainID: string) => Promise<string>;
130
127
  };
131
128
  apiURL?: string; // Custom API URL to override Skip API endpoint. Defaults to Skip proxied endpoints. Please reach out to us first if you want to be whitelisted.
129
+ theme?: {
130
+ backgroundColor: string; // background color
131
+ textColor: string; // text color
132
+ borderColor: string; // border color
133
+ brandColor: string; // color used for confirmation buttons
134
+ highlightColor: string; // color used when hovering over buttons, and in select chain/asset dropdown
135
+ };
132
136
  }
133
137
  ````
134
138