Skip to content

Commit

Permalink
feat(sdk): actualize list of palette keys
Browse files Browse the repository at this point in the history
  • Loading branch information
heyqbnk committed Nov 10, 2023
1 parent 1717eaa commit 9e85485
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions packages/sdk/src/components/ThemeParams/ThemeParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,35 @@ import type { ThemeParamsEvents, ThemeParamsState } from './types.js';

function prepareThemeParams(value: ThemeParamsType): ThemeParamsState {
const {
accentTextColor = null,
backgroundColor = null,
buttonTextColor = null,
buttonColor = null,
buttonTextColor = null,
destructiveTextColor = null,
headerBackgroundColor = null,
hintColor = null,
linkColor = null,
textColor = null,
secondaryBackgroundColor = null,
sectionBackgroundColor = null,
sectionHeaderTextColor = null,
subtitleTextColor = null,
textColor = null,
} = value;

return {
accentTextColor,
backgroundColor,
buttonTextColor,
buttonColor,
buttonTextColor,
destructiveTextColor,
headerBackgroundColor,
hintColor,
linkColor,
textColor,
secondaryBackgroundColor,
sectionBackgroundColor,
sectionHeaderTextColor,
subtitleTextColor,
textColor,
};
}

Expand Down

0 comments on commit 9e85485

Please sign in to comment.