Skip to content

Commit

Permalink
fix: custom theme validation added (#3246)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia authored Dec 26, 2023
1 parent 37d88cc commit 542b18a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/helpers/theme.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const calculateShades = (hexValue: string): TShades => {
};

export const applyTheme = (palette: string, isDarkPalette: boolean) => {
if (!palette) return;
const dom = document?.querySelector<HTMLElement>("[data-theme='custom']");
// palette: [bg, text, primary, sidebarBg, sidebarText]
const values: string[] = palette.split(",");
Expand Down

0 comments on commit 542b18a

Please sign in to comment.