@mt-gloss/tokens 0.1.150 → 0.1.152

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mt-gloss/tokens",
3
- "version": "0.1.150",
3
+ "version": "0.1.152",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/src/index.d.ts CHANGED
@@ -41,3 +41,31 @@ export declare const rangeColors: Record<'A' | 'B' | 'C', RangeColor>;
41
41
  * rangeEmphasisColors.A.base // '#1D4ED8'
42
42
  */
43
43
  export declare const rangeEmphasisColors: Record<'A' | 'B' | 'C', RangeEmphasisColor>;
44
+
45
+ /**
46
+ * Standard animation durations in milliseconds (design-timing tokens).
47
+ * @example
48
+ * import { durations } from '@mt-gloss/tokens';
49
+ * durations.normal // 200
50
+ */
51
+ export declare const durations: {
52
+ readonly instant: number;
53
+ readonly fast: number;
54
+ readonly normal: number;
55
+ readonly slow: number;
56
+ readonly slower: number;
57
+ };
58
+
59
+ /**
60
+ * Standard CSS easing functions (design-timing tokens).
61
+ * @example
62
+ * import { easings } from '@mt-gloss/tokens';
63
+ * easings.easeOut // 'cubic-bezier(0, 0, 0.2, 1)'
64
+ */
65
+ export declare const easings: {
66
+ readonly linear: string;
67
+ readonly easeIn: string;
68
+ readonly easeOut: string;
69
+ readonly easeInOut: string;
70
+ readonly spring: string;
71
+ };
package/src/index.js CHANGED
@@ -85,3 +85,19 @@ export const rangeEmphasisColors = {
85
85
  "light": "#FBBF24"
86
86
  }
87
87
  };
88
+
89
+ export const durations = {
90
+ "instant": 0,
91
+ "fast": 100,
92
+ "normal": 200,
93
+ "slow": 300,
94
+ "slower": 400
95
+ };
96
+
97
+ export const easings = {
98
+ "linear": "linear",
99
+ "easeIn": "cubic-bezier(0.4, 0, 1, 1)",
100
+ "easeOut": "cubic-bezier(0, 0, 0.2, 1)",
101
+ "easeInOut": "cubic-bezier(0.4, 0, 0.2, 1)",
102
+ "spring": "cubic-bezier(0.175, 0.885, 0.32, 1.275)"
103
+ };