@smart-react-components/ui
Version:
SRC UI includes React and Styled components.
13 lines (12 loc) • 718 B
TypeScript
import { PaletteProp } from '@smart-react-components/core/types';
/**
* If waveEffectPalette is given, returns it however if not, generates a default palette for the wave effect.
*
* If the background is transparent, consideres the body element uses the general background color in the color attributes.
* That's why the wave effect palette is the opposite of the general background color.
*
* If palette is light, defaults the wave palette to dark or vice-versa.
*
* If none of the above conditions are met, defaults to light since most of the default palette main colors are harmonious with the light effect color.
*/
export declare const getWaveEffectPalette: (props: any, isDark: boolean) => PaletteProp;