@loadsmart/miranda-wc 1.124.0-alpha.3 → 1.124.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Token } from '@loadsmart/miranda-tokens';
|
|
2
|
+
export declare function toDesignToken(token: Token): string;
|
|
3
|
+
export declare function getHexColor(token: Token): string;
|
|
4
|
+
/**
|
|
5
|
+
* Convert the provided value from `rem` to `px`.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```js
|
|
9
|
+
* // Considering 1rem = 16px
|
|
10
|
+
* toPx('0.625rem'); // returns '10px'
|
|
11
|
+
* toPx('1rem'); // returns '16px'
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @param {number|string} value - value, in rem, to convert.
|
|
15
|
+
* @param {number} base - value, in pixels, to be considered for `1rem`.
|
|
16
|
+
* @returns {string} value converted to `px`.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare function toPx(value: number | string, base?: number): string;
|