@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
15 lines • 1.15 kB
TypeScript
import { CanvasTheme, PartialCanvasTheme } from './types';
/**
* @deprecated ⚠️ `shiftColor` is deprecated and will be removed in a future major version. While we work on an algorithm for color shifting, you can use [oklch from or with calc](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklch) to calculate colors.
*/
export declare const shiftColor: (hexColor: string, amount?: any) => string;
declare function calculateCanvasTheme(partialTheme: PartialCanvasTheme): CanvasTheme;
/**
* Creates a full {@link CanvasTheme} from any partial theme by deeply merging with the
* `defaultCanvasTheme` object. The function is memoized, but it is best to run this function
* only once and save the result.
* @deprecated ⚠️ `createCanvasTheme` is deprecated and will be removed in a future major version. Please use our CSS Branding tokens to create a theme. For more information, please use our [theming docs](https://workday.github.io/canvas-kit/?path=/docs/features-theming-overview--docs).
*/
export declare const createCanvasTheme: typeof calculateCanvasTheme;
export {};
//# sourceMappingURL=createCanvasTheme.d.ts.map