Skip to content

Commit

Permalink
update whitelabelData.theme interface
Browse files Browse the repository at this point in the history
we only support primary and onPrimary now
  • Loading branch information
BboyStatix committed Jan 18, 2024
1 parent 0d4e7aa commit 53c75e6
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions packages/openlogin-utils/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,19 @@ export const THEME_MODES = {

export type THEME_MODE_TYPE = (typeof THEME_MODES)[keyof typeof THEME_MODES];

export type WHITE_LABEL_THEME = {
/**
* `primary` color that represents your brand
* Will be applied to elements such as primary button, nav tab(selected), loader, input focus, etc.
*/
primary?: string;
/**
* `onPrimary` color that is meant to contrast with the primary color
* Applies to elements such as the text in a primary button or nav tab(selected), blocks of text on top of a primary background, etc.
*/
onPrimary?: string;
};

export type WhiteLabelData = {
/**
* App name to display in the UI
Expand Down Expand Up @@ -304,22 +317,10 @@ export type WhiteLabelData = {
* @defaultValue false
*/
useLogoLoader?: boolean;

/**
* Used to customize theme of the login modal with following options
* `'primary'` - To customize primary color of modal's content.
*/
theme?: {
primary?: string;
gray?: string;
red?: string;
green?: string;
success?: string;
warning?: string;
error?: string;
info?: string;
white?: string;
};
* Used to customize your theme
*/
theme?: WHITE_LABEL_THEME;
/**
* Language specific link for terms and conditions on torus-website. See (examples/vue-app) to configure
* e.g.
Expand Down

0 comments on commit 53c75e6

Please sign in to comment.