@projectwallace/css-design-tokens 0.3.0 → 0.3.2
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.
- package/dist/colors.d.ts +2 -2
- package/dist/css-design-tokens.js +4827 -7702
- package/dist/destructure-box-shadow.d.ts +2 -2
- package/dist/group-colors.d.ts +3 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ColorToken } from './types.js';
|
|
1
|
+
import { ColorToken, UnparsedToken } from './types.js';
|
|
2
2
|
type CssLength = {
|
|
3
3
|
value: number;
|
|
4
4
|
unit: string;
|
|
5
5
|
};
|
|
6
6
|
export type DestructuredShadow = {
|
|
7
|
-
color: ColorToken | undefined;
|
|
7
|
+
color: ColorToken | UnparsedToken | undefined;
|
|
8
8
|
offsetX: CssLength | undefined;
|
|
9
9
|
offsetY: CssLength | undefined;
|
|
10
10
|
blur: CssLength | undefined;
|
package/dist/group-colors.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { NormalizedColorWithAuthored } from 'color-sorter';
|
|
2
1
|
export declare const color_dict: Map<number, string>;
|
|
3
|
-
|
|
2
|
+
type AuthoredColor = string;
|
|
3
|
+
export declare function group_colors(colors: Record<AuthoredColor, unknown>): [number, string[]][];
|
|
4
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DestructuredShadow } from './destructure-box-shadow.js';
|
|
2
2
|
import { ColorToken, CssAnalysis, CubicBezierToken, DimensionToken, DurationToken, FontFamilyToken, NumberToken, BaseToken, UnparsedToken } from './types.js';
|
|
3
3
|
export declare function css_to_tokens(css: string): {
|
|
4
|
-
color: Record<string, ColorToken>;
|
|
4
|
+
color: Record<string, UnparsedToken | ColorToken>;
|
|
5
5
|
font_size: Record<string, UnparsedToken | DimensionToken>;
|
|
6
6
|
font_family: Record<string, FontFamilyToken>;
|
|
7
7
|
line_height: Record<string, UnparsedToken | DimensionToken | NumberToken>;
|
|
@@ -15,7 +15,7 @@ export declare function css_to_tokens(css: string): {
|
|
|
15
15
|
easing: Record<string, UnparsedToken | CubicBezierToken>;
|
|
16
16
|
};
|
|
17
17
|
export declare function analysis_to_tokens(analysis: CssAnalysis): {
|
|
18
|
-
color: Record<string, ColorToken>;
|
|
18
|
+
color: Record<string, UnparsedToken | ColorToken>;
|
|
19
19
|
font_size: Record<string, UnparsedToken | DimensionToken>;
|
|
20
20
|
font_family: Record<string, FontFamilyToken>;
|
|
21
21
|
line_height: Record<string, UnparsedToken | DimensionToken | NumberToken>;
|
package/package.json
CHANGED