@leanix/components 0.2.228 → 0.2.229
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/leanix-components.umd.js +17 -5
- package/bundles/leanix-components.umd.js.map +1 -1
- package/esm2015/lib/core-ui/functions/core-css.helpers.js +17 -5
- package/esm2015/lib/core-ui/functions/core-css.helpers.js.map +1 -1
- package/fesm2015/leanix-components.js +17 -5
- package/fesm2015/leanix-components.js.map +1 -1
- package/lib/core-ui/functions/core-css.helpers.d.ts +7 -0
- package/package.json +1 -1
@@ -1,3 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Compute the most eligible text color for a given background color (black or white), depending on the luminance of the
|
3
|
+
* background color. In case the provided color is undefined or invalid, white (#FFFFFF) is returned.
|
4
|
+
*
|
5
|
+
* @param colorHex Color string in hexadecimal encoding.
|
6
|
+
* @returns Equivalent contrast color in hexadecimal encoding.
|
7
|
+
*/
|
1
8
|
export declare function getContrastColor(colorHex?: string): string;
|
2
9
|
export declare function shorthandHexHandle(hex: string): string;
|
3
10
|
export declare function isValidHexColor(color: string): boolean;
|