@trackunit/css-tailwind 1.7.114 → 1.7.118
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.
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import "@trackunit/css-core";
|
|
2
|
+
type OpacityValueParams = {
|
|
3
|
+
opacityValue?: string;
|
|
4
|
+
};
|
|
5
|
+
type OpacityValueResolver = (params: OpacityValueParams) => string;
|
|
2
6
|
/**
|
|
3
7
|
* Gets the value of a color from the css custom properties TailwindCSS theme.
|
|
4
8
|
*
|
|
@@ -13,9 +17,7 @@ export declare function getColorValueFromCSSVariable(customProperty: string): st
|
|
|
13
17
|
* @param {string} variable - The name of the css custom property.
|
|
14
18
|
* @returns {string} RGB color value and a comment with the actual value for the TailwindCSS Extension.
|
|
15
19
|
*/
|
|
16
|
-
export declare function withOpacityValue(variable: string):
|
|
17
|
-
opacityValue?: string;
|
|
18
|
-
}) => string;
|
|
20
|
+
export declare function withOpacityValue(variable: string): OpacityValueResolver;
|
|
19
21
|
/**
|
|
20
22
|
* Returns an object with the color values for the TailwindCSS configuration.
|
|
21
23
|
*
|
|
@@ -23,9 +25,7 @@ export declare function withOpacityValue(variable: string): ({ opacityValue }: {
|
|
|
23
25
|
* @param {string} keys Default: ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]
|
|
24
26
|
* @returns {*} An object with each of the keys and the corresponding color css custom property.
|
|
25
27
|
*/
|
|
26
|
-
export declare function fullColorSchemeFromColorName(colorName: string, keys?: string[]): Record<string,
|
|
27
|
-
opacityValue?: string | undefined;
|
|
28
|
-
}) => string>;
|
|
28
|
+
export declare function fullColorSchemeFromColorName(colorName: string, keys?: string[]): Record<string, OpacityValueResolver>;
|
|
29
29
|
/**
|
|
30
30
|
* Get the value of a custom property from a css file.
|
|
31
31
|
*
|
|
@@ -43,3 +43,4 @@ export declare function getValueOfCSSCustomProperty(customProperty: string, file
|
|
|
43
43
|
* @returns {string} A string representing the css custom property with a comment containing the actual value of the custom property.
|
|
44
44
|
*/
|
|
45
45
|
export declare function withCustomPropertyValueAsComment(customProperty: string, append?: string, file?: string): string;
|
|
46
|
+
export {};
|