@privy-io/react-auth 1.19.0-beta.1 → 1.19.0-beta.2

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/dist/index.d.ts CHANGED
@@ -188,19 +188,22 @@ type PrivyServerConfig = {
188
188
  logoUrl?: string;
189
189
  accentColor?: string;
190
190
  };
191
+ type HexColor = `#${string}`;
191
192
  type PrivyClientConfig = {
192
193
  /** All UI and theme related configuration */
193
194
  appearance?: {
194
- /** Primary background color for the privy UI.
195
- * This will generate the remainder of the foreground and background colors within the theme.
196
- * This value should be _either_ dark or light (<20% or >80% luminance), for accessibility.
197
- * Recommended light theme: '#FFFFFF' (default)
198
- * Recommended dark theme: '#1E1E1D' */
199
- backgroundColor?: string;
195
+ /** Primary theme for the privy UI. This dictates the foreground and background colors within the UI.
196
+ *
197
+ * 'light' (default): The privy default light UI.
198
+ * 'dark': The privy default dark UI.
199
+ * custom hex code (i.e. '#13152F'): A custom background. This will generate the remainder of the foreground and
200
+ * background colors for the UI by modulating the luminance of the passed color. This value should be _either_ dark
201
+ * or light (<20% or >80% luminance), for accessibility. */
202
+ theme?: 'light' | 'dark' | HexColor;
200
203
  /** Accent color for the privy UI.
201
204
  * Used for buttons, active borders, etc. This will generate light and dark variants.
202
205
  * This overrides the server setting `accent_color`. */
203
- accentColor?: string;
206
+ accentColor?: HexColor;
204
207
  /** Logo url for the main privy modal screen.
205
208
  * This overrides the server setting `logo_url` */
206
209
  logo?: string;