@trackunit/ui-design-tokens 0.0.67 → 0.0.68
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/index.cjs +20 -20
- package/index.js +20 -20
- package/package.json +1 -1
- package/src/tokens/elevation.d.ts +6 -6
- package/src/tokens/size.d.ts +8 -8
- package/src/tokens/typography.d.ts +6 -6
package/index.cjs
CHANGED
|
@@ -593,12 +593,12 @@ const themeBoxShadow = {
|
|
|
593
593
|
* are for active versions(e.g. hover).
|
|
594
594
|
*/
|
|
595
595
|
const elevation = {
|
|
596
|
-
E05:
|
|
597
|
-
E10:
|
|
598
|
-
E10A:
|
|
599
|
-
E20:
|
|
600
|
-
E30:
|
|
601
|
-
E40:
|
|
596
|
+
E05: themeBoxShadow.sm,
|
|
597
|
+
E10: themeBoxShadow.DEFAULT,
|
|
598
|
+
E10A: themeBoxShadow.md,
|
|
599
|
+
E20: themeBoxShadow.lg,
|
|
600
|
+
E30: themeBoxShadow.xl,
|
|
601
|
+
E40: themeBoxShadow["2xl"],
|
|
602
602
|
};
|
|
603
603
|
|
|
604
604
|
/**
|
|
@@ -655,14 +655,14 @@ const themeSpacing = {
|
|
|
655
655
|
"96": "24rem",
|
|
656
656
|
};
|
|
657
657
|
const size = {
|
|
658
|
-
none:
|
|
659
|
-
tiny:
|
|
660
|
-
mini:
|
|
661
|
-
small:
|
|
662
|
-
medium:
|
|
663
|
-
large:
|
|
664
|
-
giant:
|
|
665
|
-
enormous:
|
|
658
|
+
none: themeSpacing[0],
|
|
659
|
+
tiny: themeSpacing[1],
|
|
660
|
+
mini: themeSpacing[2],
|
|
661
|
+
small: themeSpacing[3],
|
|
662
|
+
medium: themeSpacing[4],
|
|
663
|
+
large: themeSpacing[6],
|
|
664
|
+
giant: themeSpacing[8],
|
|
665
|
+
enormous: themeSpacing[10],
|
|
666
666
|
};
|
|
667
667
|
|
|
668
668
|
/**
|
|
@@ -712,12 +712,12 @@ const themeFontWeight = {
|
|
|
712
712
|
* Based on a root size of 16px.
|
|
713
713
|
*/
|
|
714
714
|
const fontSize = {
|
|
715
|
-
primary:
|
|
716
|
-
secondary:
|
|
717
|
-
tertiary:
|
|
718
|
-
subtitle:
|
|
719
|
-
body:
|
|
720
|
-
small:
|
|
715
|
+
primary: themeFontSize["3xl"],
|
|
716
|
+
secondary: themeFontSize.lg,
|
|
717
|
+
tertiary: themeFontSize.base,
|
|
718
|
+
subtitle: themeFontSize.base,
|
|
719
|
+
body: themeFontSize.sm,
|
|
720
|
+
small: themeFontSize.xs, // 12px
|
|
721
721
|
};
|
|
722
722
|
/**
|
|
723
723
|
* Primary font weights.
|
package/index.js
CHANGED
|
@@ -589,12 +589,12 @@ const themeBoxShadow = {
|
|
|
589
589
|
* are for active versions(e.g. hover).
|
|
590
590
|
*/
|
|
591
591
|
const elevation = {
|
|
592
|
-
E05:
|
|
593
|
-
E10:
|
|
594
|
-
E10A:
|
|
595
|
-
E20:
|
|
596
|
-
E30:
|
|
597
|
-
E40:
|
|
592
|
+
E05: themeBoxShadow.sm,
|
|
593
|
+
E10: themeBoxShadow.DEFAULT,
|
|
594
|
+
E10A: themeBoxShadow.md,
|
|
595
|
+
E20: themeBoxShadow.lg,
|
|
596
|
+
E30: themeBoxShadow.xl,
|
|
597
|
+
E40: themeBoxShadow["2xl"],
|
|
598
598
|
};
|
|
599
599
|
|
|
600
600
|
/**
|
|
@@ -651,14 +651,14 @@ const themeSpacing = {
|
|
|
651
651
|
"96": "24rem",
|
|
652
652
|
};
|
|
653
653
|
const size = {
|
|
654
|
-
none:
|
|
655
|
-
tiny:
|
|
656
|
-
mini:
|
|
657
|
-
small:
|
|
658
|
-
medium:
|
|
659
|
-
large:
|
|
660
|
-
giant:
|
|
661
|
-
enormous:
|
|
654
|
+
none: themeSpacing[0],
|
|
655
|
+
tiny: themeSpacing[1],
|
|
656
|
+
mini: themeSpacing[2],
|
|
657
|
+
small: themeSpacing[3],
|
|
658
|
+
medium: themeSpacing[4],
|
|
659
|
+
large: themeSpacing[6],
|
|
660
|
+
giant: themeSpacing[8],
|
|
661
|
+
enormous: themeSpacing[10],
|
|
662
662
|
};
|
|
663
663
|
|
|
664
664
|
/**
|
|
@@ -708,12 +708,12 @@ const themeFontWeight = {
|
|
|
708
708
|
* Based on a root size of 16px.
|
|
709
709
|
*/
|
|
710
710
|
const fontSize = {
|
|
711
|
-
primary:
|
|
712
|
-
secondary:
|
|
713
|
-
tertiary:
|
|
714
|
-
subtitle:
|
|
715
|
-
body:
|
|
716
|
-
small:
|
|
711
|
+
primary: themeFontSize["3xl"],
|
|
712
|
+
secondary: themeFontSize.lg,
|
|
713
|
+
tertiary: themeFontSize.base,
|
|
714
|
+
subtitle: themeFontSize.base,
|
|
715
|
+
body: themeFontSize.sm,
|
|
716
|
+
small: themeFontSize.xs, // 12px
|
|
717
717
|
};
|
|
718
718
|
/**
|
|
719
719
|
* Primary font weights.
|
package/package.json
CHANGED
|
@@ -17,11 +17,11 @@ export declare const themeBoxShadow: {
|
|
|
17
17
|
* are for active versions(e.g. hover).
|
|
18
18
|
*/
|
|
19
19
|
export declare const elevation: {
|
|
20
|
-
readonly E05: "
|
|
21
|
-
readonly E10: "
|
|
22
|
-
readonly E10A: "
|
|
23
|
-
readonly E20: "
|
|
24
|
-
readonly E30: "
|
|
25
|
-
readonly E40: "
|
|
20
|
+
readonly E05: "0 1px 2px 0 rgb(0 0 0 / 0.05)";
|
|
21
|
+
readonly E10: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
|
|
22
|
+
readonly E10A: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)";
|
|
23
|
+
readonly E20: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
|
|
24
|
+
readonly E30: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)";
|
|
25
|
+
readonly E40: "0 25px 50px -12px rgb(0 0 0 / 0.25)";
|
|
26
26
|
};
|
|
27
27
|
export type Elevation = typeof elevation;
|
package/src/tokens/size.d.ts
CHANGED
|
@@ -39,13 +39,13 @@ export declare const themeSpacing: {
|
|
|
39
39
|
readonly "96": "24rem";
|
|
40
40
|
};
|
|
41
41
|
export declare const size: {
|
|
42
|
-
readonly none: "
|
|
43
|
-
readonly tiny: "
|
|
44
|
-
readonly mini: "
|
|
45
|
-
readonly small: "
|
|
46
|
-
readonly medium: "
|
|
47
|
-
readonly large: "
|
|
48
|
-
readonly giant: "
|
|
49
|
-
readonly enormous: "
|
|
42
|
+
readonly none: "0px";
|
|
43
|
+
readonly tiny: "0.25rem";
|
|
44
|
+
readonly mini: "0.5rem";
|
|
45
|
+
readonly small: "0.75rem";
|
|
46
|
+
readonly medium: "1rem";
|
|
47
|
+
readonly large: "1.5rem";
|
|
48
|
+
readonly giant: "2rem";
|
|
49
|
+
readonly enormous: "2.5rem";
|
|
50
50
|
};
|
|
51
51
|
export type Size = typeof size;
|
|
@@ -35,12 +35,12 @@ export declare const themeFontWeight: {
|
|
|
35
35
|
* Based on a root size of 16px.
|
|
36
36
|
*/
|
|
37
37
|
export declare const fontSize: {
|
|
38
|
-
readonly primary: "
|
|
39
|
-
readonly secondary: "
|
|
40
|
-
readonly tertiary: "
|
|
41
|
-
readonly subtitle: "
|
|
42
|
-
readonly body: "
|
|
43
|
-
readonly small: "
|
|
38
|
+
readonly primary: "1.875rem";
|
|
39
|
+
readonly secondary: "1.125rem";
|
|
40
|
+
readonly tertiary: "1rem";
|
|
41
|
+
readonly subtitle: "1rem";
|
|
42
|
+
readonly body: "0.875rem";
|
|
43
|
+
readonly small: "0.75rem";
|
|
44
44
|
};
|
|
45
45
|
export type FontSize = typeof fontSize;
|
|
46
46
|
/**
|