@momentum-design/tokens 0.14.0 → 0.15.0

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.
@@ -8,6 +8,8 @@
8
8
  --mds-motion-duration-normal: 300ms;
9
9
  --mds-motion-duration-relaxed: 450ms;
10
10
  --mds-motion-duration-slow: 600ms;
11
+ --mds-motion-duration-sustained: 1200ms;
12
+ --mds-motion-duration-extended: 2400ms;
11
13
  --mds-motion-easing-standard: cubic-bezier(0.44, 0, 0, 1);
12
14
  --mds-motion-easing-entrance: cubic-bezier(0, 0, 0.2, 1);
13
15
  --mds-motion-easing-exit: cubic-bezier(0.5, 0, 1, 1);
@@ -13,11 +13,13 @@ public class {
13
13
  public static let mdsMotionDelayMedium = 400ms
14
14
  public static let mdsMotionDelayNone = 0ms
15
15
  public static let mdsMotionDelayShort = 200ms
16
+ public static let mdsMotionDurationExtended = 2400ms
16
17
  public static let mdsMotionDurationFast = 200ms
17
18
  public static let mdsMotionDurationInstant = 100ms
18
19
  public static let mdsMotionDurationNormal = 300ms
19
20
  public static let mdsMotionDurationRelaxed = 450ms
20
21
  public static let mdsMotionDurationSlow = 600ms
22
+ public static let mdsMotionDurationSustained = 1200ms
21
23
  public static let mdsMotionEasingEntrance = cubic-bezier(0, 0, 0.2, 1)
22
24
  public static let mdsMotionEasingExit = cubic-bezier(0.5, 0, 1, 1)
23
25
  public static let mdsMotionEasingLinear = cubic-bezier(0, 0, 1, 1)
@@ -4,13 +4,13 @@
4
4
  "instant": {
5
5
  "value": "100ms",
6
6
  "type": "duration",
7
- "description": "Direct user feedback — press scale, toggle, focus ring",
7
+ "description": "Direct user feedback: press, toggle, focus, color shift. So fast it feels simultaneous with the action.",
8
8
  "filePath": "src/core/motion.json",
9
9
  "isSource": true,
10
10
  "original": {
11
11
  "value": "100ms",
12
12
  "type": "duration",
13
- "description": "Direct user feedback — press scale, toggle, focus ring"
13
+ "description": "Direct user feedback: press, toggle, focus, color shift. So fast it feels simultaneous with the action."
14
14
  },
15
15
  "name": "mds-motion-duration-instant",
16
16
  "attributes": {
@@ -27,13 +27,13 @@
27
27
  "fast": {
28
28
  "value": "200ms",
29
29
  "type": "duration",
30
- "description": "Immediate response — dropdown open, hover, button background",
30
+ "description": "Immediate response: dropdown open, hover lift. Fast enough to not feel like waiting, slow enough to register direction.",
31
31
  "filePath": "src/core/motion.json",
32
32
  "isSource": true,
33
33
  "original": {
34
34
  "value": "200ms",
35
35
  "type": "duration",
36
- "description": "Immediate response — dropdown open, hover, button background"
36
+ "description": "Immediate response: dropdown open, hover lift. Fast enough to not feel like waiting, slow enough to register direction."
37
37
  },
38
38
  "name": "mds-motion-duration-fast",
39
39
  "attributes": {
@@ -50,13 +50,13 @@
50
50
  "normal": {
51
51
  "value": "300ms",
52
52
  "type": "duration",
53
- "description": "System choreography — accordion expand, stagger, carousel",
53
+ "description": "State changes: accordion expand, tab indicator slide, entrance sweep, checkmark draw. Motion becomes visible here — the eye tracks it.",
54
54
  "filePath": "src/core/motion.json",
55
55
  "isSource": true,
56
56
  "original": {
57
57
  "value": "300ms",
58
58
  "type": "duration",
59
- "description": "System choreography — accordion expand, stagger, carousel"
59
+ "description": "State changes: accordion expand, tab indicator slide, entrance sweep, checkmark draw. Motion becomes visible here — the eye tracks it."
60
60
  },
61
61
  "name": "mds-motion-duration-normal",
62
62
  "attributes": {
@@ -73,13 +73,13 @@
73
73
  "relaxed": {
74
74
  "value": "450ms",
75
75
  "type": "duration",
76
- "description": "Dramatic entrances — dialog pop, sheet reveal, page transitions",
76
+ "description": "System events: dialog entrance, notifications. The motion takes its time because the change is significant and the user needs to orient.",
77
77
  "filePath": "src/core/motion.json",
78
78
  "isSource": true,
79
79
  "original": {
80
80
  "value": "450ms",
81
81
  "type": "duration",
82
- "description": "Dramatic entrances — dialog pop, sheet reveal, page transitions"
82
+ "description": "System events: dialog entrance, notifications. The motion takes its time because the change is significant and the user needs to orient."
83
83
  },
84
84
  "name": "mds-motion-duration-relaxed",
85
85
  "attributes": {
@@ -96,13 +96,13 @@
96
96
  "slow": {
97
97
  "value": "600ms",
98
98
  "type": "duration",
99
- "description": "Deliberate slow reveals — onboarding sequences, hero sections",
99
+ "description": "Major layout restructuring: app frame collapse/expand, full-view transitions. Long enough to follow the whole environment reorganizing without losing track.",
100
100
  "filePath": "src/core/motion.json",
101
101
  "isSource": true,
102
102
  "original": {
103
103
  "value": "600ms",
104
104
  "type": "duration",
105
- "description": "Deliberate slow reveals — onboarding sequences, hero sections"
105
+ "description": "Major layout restructuring: app frame collapse/expand, full-view transitions. Long enough to follow the whole environment reorganizing without losing track."
106
106
  },
107
107
  "name": "mds-motion-duration-slow",
108
108
  "attributes": {
@@ -115,6 +115,52 @@
115
115
  "duration",
116
116
  "slow"
117
117
  ]
118
+ },
119
+ "sustained": {
120
+ "value": "1200ms",
121
+ "type": "duration",
122
+ "description": "Ambient presence: the assistant glow rising or setting, background atmosphere shifts. Long enough to feel like an environmental change rather than a UI event.",
123
+ "filePath": "src/core/motion.json",
124
+ "isSource": true,
125
+ "original": {
126
+ "value": "1200ms",
127
+ "type": "duration",
128
+ "description": "Ambient presence: the assistant glow rising or setting, background atmosphere shifts. Long enough to feel like an environmental change rather than a UI event."
129
+ },
130
+ "name": "mds-motion-duration-sustained",
131
+ "attributes": {
132
+ "category": "motion",
133
+ "type": "duration",
134
+ "item": "sustained"
135
+ },
136
+ "path": [
137
+ "motion",
138
+ "duration",
139
+ "sustained"
140
+ ]
141
+ },
142
+ "extended": {
143
+ "value": "2400ms",
144
+ "type": "duration",
145
+ "description": "Ambient travel: the glow repositioning across the viewport. Twice the duration of sustained motion because the distance is roughly twice as far.",
146
+ "filePath": "src/core/motion.json",
147
+ "isSource": true,
148
+ "original": {
149
+ "value": "2400ms",
150
+ "type": "duration",
151
+ "description": "Ambient travel: the glow repositioning across the viewport. Twice the duration of sustained motion because the distance is roughly twice as far."
152
+ },
153
+ "name": "mds-motion-duration-extended",
154
+ "attributes": {
155
+ "category": "motion",
156
+ "type": "duration",
157
+ "item": "extended"
158
+ },
159
+ "path": [
160
+ "motion",
161
+ "duration",
162
+ "extended"
163
+ ]
118
164
  }
119
165
  },
120
166
  "easing": {
@@ -4,13 +4,13 @@
4
4
  "instant": {
5
5
  "value": "100ms",
6
6
  "type": "duration",
7
- "description": "Direct user feedback — press scale, toggle, focus ring",
7
+ "description": "Direct user feedback: press, toggle, focus, color shift. So fast it feels simultaneous with the action.",
8
8
  "filePath": "src/core/motion.json",
9
9
  "isSource": true,
10
10
  "original": {
11
11
  "value": "100ms",
12
12
  "type": "duration",
13
- "description": "Direct user feedback — press scale, toggle, focus ring"
13
+ "description": "Direct user feedback: press, toggle, focus, color shift. So fast it feels simultaneous with the action."
14
14
  },
15
15
  "name": "mds-motion-duration-instant",
16
16
  "attributes": {
@@ -27,13 +27,13 @@
27
27
  "fast": {
28
28
  "value": "200ms",
29
29
  "type": "duration",
30
- "description": "Immediate response — dropdown open, hover, button background",
30
+ "description": "Immediate response: dropdown open, hover lift. Fast enough to not feel like waiting, slow enough to register direction.",
31
31
  "filePath": "src/core/motion.json",
32
32
  "isSource": true,
33
33
  "original": {
34
34
  "value": "200ms",
35
35
  "type": "duration",
36
- "description": "Immediate response — dropdown open, hover, button background"
36
+ "description": "Immediate response: dropdown open, hover lift. Fast enough to not feel like waiting, slow enough to register direction."
37
37
  },
38
38
  "name": "mds-motion-duration-fast",
39
39
  "attributes": {
@@ -50,13 +50,13 @@
50
50
  "normal": {
51
51
  "value": "300ms",
52
52
  "type": "duration",
53
- "description": "System choreography — accordion expand, stagger, carousel",
53
+ "description": "State changes: accordion expand, tab indicator slide, entrance sweep, checkmark draw. Motion becomes visible here — the eye tracks it.",
54
54
  "filePath": "src/core/motion.json",
55
55
  "isSource": true,
56
56
  "original": {
57
57
  "value": "300ms",
58
58
  "type": "duration",
59
- "description": "System choreography — accordion expand, stagger, carousel"
59
+ "description": "State changes: accordion expand, tab indicator slide, entrance sweep, checkmark draw. Motion becomes visible here — the eye tracks it."
60
60
  },
61
61
  "name": "mds-motion-duration-normal",
62
62
  "attributes": {
@@ -73,13 +73,13 @@
73
73
  "relaxed": {
74
74
  "value": "450ms",
75
75
  "type": "duration",
76
- "description": "Dramatic entrances — dialog pop, sheet reveal, page transitions",
76
+ "description": "System events: dialog entrance, notifications. The motion takes its time because the change is significant and the user needs to orient.",
77
77
  "filePath": "src/core/motion.json",
78
78
  "isSource": true,
79
79
  "original": {
80
80
  "value": "450ms",
81
81
  "type": "duration",
82
- "description": "Dramatic entrances — dialog pop, sheet reveal, page transitions"
82
+ "description": "System events: dialog entrance, notifications. The motion takes its time because the change is significant and the user needs to orient."
83
83
  },
84
84
  "name": "mds-motion-duration-relaxed",
85
85
  "attributes": {
@@ -96,13 +96,13 @@
96
96
  "slow": {
97
97
  "value": "600ms",
98
98
  "type": "duration",
99
- "description": "Deliberate slow reveals — onboarding sequences, hero sections",
99
+ "description": "Major layout restructuring: app frame collapse/expand, full-view transitions. Long enough to follow the whole environment reorganizing without losing track.",
100
100
  "filePath": "src/core/motion.json",
101
101
  "isSource": true,
102
102
  "original": {
103
103
  "value": "600ms",
104
104
  "type": "duration",
105
- "description": "Deliberate slow reveals — onboarding sequences, hero sections"
105
+ "description": "Major layout restructuring: app frame collapse/expand, full-view transitions. Long enough to follow the whole environment reorganizing without losing track."
106
106
  },
107
107
  "name": "mds-motion-duration-slow",
108
108
  "attributes": {
@@ -115,6 +115,52 @@
115
115
  "duration",
116
116
  "slow"
117
117
  ]
118
+ },
119
+ "sustained": {
120
+ "value": "1200ms",
121
+ "type": "duration",
122
+ "description": "Ambient presence: the assistant glow rising or setting, background atmosphere shifts. Long enough to feel like an environmental change rather than a UI event.",
123
+ "filePath": "src/core/motion.json",
124
+ "isSource": true,
125
+ "original": {
126
+ "value": "1200ms",
127
+ "type": "duration",
128
+ "description": "Ambient presence: the assistant glow rising or setting, background atmosphere shifts. Long enough to feel like an environmental change rather than a UI event."
129
+ },
130
+ "name": "mds-motion-duration-sustained",
131
+ "attributes": {
132
+ "category": "motion",
133
+ "type": "duration",
134
+ "item": "sustained"
135
+ },
136
+ "path": [
137
+ "motion",
138
+ "duration",
139
+ "sustained"
140
+ ]
141
+ },
142
+ "extended": {
143
+ "value": "2400ms",
144
+ "type": "duration",
145
+ "description": "Ambient travel: the glow repositioning across the viewport. Twice the duration of sustained motion because the distance is roughly twice as far.",
146
+ "filePath": "src/core/motion.json",
147
+ "isSource": true,
148
+ "original": {
149
+ "value": "2400ms",
150
+ "type": "duration",
151
+ "description": "Ambient travel: the glow repositioning across the viewport. Twice the duration of sustained motion because the distance is roughly twice as far."
152
+ },
153
+ "name": "mds-motion-duration-extended",
154
+ "attributes": {
155
+ "category": "motion",
156
+ "type": "duration",
157
+ "item": "extended"
158
+ },
159
+ "path": [
160
+ "motion",
161
+ "duration",
162
+ "extended"
163
+ ]
118
164
  }
119
165
  },
120
166
  "easing": {
@@ -5,7 +5,9 @@
5
5
  "fast": "200ms",
6
6
  "normal": "300ms",
7
7
  "relaxed": "450ms",
8
- "slow": "600ms"
8
+ "slow": "600ms",
9
+ "sustained": "1200ms",
10
+ "extended": "2400ms"
9
11
  },
10
12
  "easing": {
11
13
  "standard": "cubic-bezier(0.44, 0, 0, 1)",
@@ -5,7 +5,9 @@
5
5
  "fast": "200ms",
6
6
  "normal": "300ms",
7
7
  "relaxed": "450ms",
8
- "slow": "600ms"
8
+ "slow": "600ms",
9
+ "sustained": "1200ms",
10
+ "extended": "2400ms"
9
11
  },
10
12
  "easing": {
11
13
  "standard": "cubic-bezier(0.44, 0, 0, 1)",
@@ -9,6 +9,8 @@
9
9
  <string name="mds-motion-duration-normal">300ms</string>
10
10
  <string name="mds-motion-duration-relaxed">450ms</string>
11
11
  <string name="mds-motion-duration-slow">600ms</string>
12
+ <string name="mds-motion-duration-sustained">1200ms</string>
13
+ <string name="mds-motion-duration-extended">2400ms</string>
12
14
  <string name="mds-motion-easing-standard">cubic-bezier(0.44, 0, 0, 1)</string>
13
15
  <string name="mds-motion-easing-entrance">cubic-bezier(0, 0, 0.2, 1)</string>
14
16
  <string name="mds-motion-easing-exit">cubic-bezier(0.5, 0, 1, 1)</string>
@@ -6,6 +6,8 @@ $mds-motion-duration-fast: 200ms;
6
6
  $mds-motion-duration-normal: 300ms;
7
7
  $mds-motion-duration-relaxed: 450ms;
8
8
  $mds-motion-duration-slow: 600ms;
9
+ $mds-motion-duration-sustained: 1200ms;
10
+ $mds-motion-duration-extended: 2400ms;
9
11
  $mds-motion-easing-standard: cubic-bezier(0.44, 0, 0, 1);
10
12
  $mds-motion-easing-entrance: cubic-bezier(0, 0, 0.2, 1);
11
13
  $mds-motion-easing-exit: cubic-bezier(0.5, 0, 1, 1);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/tokens",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.14.0",
4
+ "version": "0.15.0",
5
5
  "files": [
6
6
  "./dist/"
7
7
  ],