@agorapulse/ui-theme 22.0.3-beta.1 → 22.0.5-beta.1

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.
Files changed (64) hide show
  1. package/agorapulse-ui-theme-22.0.5-beta.1.tgz +0 -0
  2. package/assets/desktop_variables.css +624 -460
  3. package/assets/mobile_variables.css +624 -460
  4. package/assets/style/_button-mixins.scss +33 -92
  5. package/assets/style/_input.scss +4 -0
  6. package/assets/style/_link.scss +31 -35
  7. package/assets/style/_select.scss +67 -44
  8. package/assets/style/_table.scss +52 -20
  9. package/assets/style/_tooltip.scss +6 -7
  10. package/assets/style/components-custom-style/_input.scss +22 -28
  11. package/assets/style/components-custom-style/_ng-select.scss +15 -7
  12. package/assets/style/css-ui/_action-dropdown.scss +39 -27
  13. package/assets/style/css-ui/_badge.scss +2 -5
  14. package/assets/style/css-ui/_button.scss +141 -96
  15. package/assets/style/css-ui/_checkbox.scss +6 -11
  16. package/assets/style/css-ui/_counter.scss +7 -15
  17. package/assets/style/css-ui/_icon-button.scss +24 -68
  18. package/assets/style/css-ui/_infobox.scss +25 -68
  19. package/assets/style/css-ui/_input.scss +31 -38
  20. package/assets/style/css-ui/_label.scss +10 -8
  21. package/assets/style/css-ui/_link.scss +31 -36
  22. package/assets/style/css-ui/_list-panel.scss +33 -15
  23. package/assets/style/css-ui/_radio-card.scss +37 -31
  24. package/assets/style/css-ui/_radio.scss +17 -27
  25. package/assets/style/css-ui/_select.scss +53 -50
  26. package/assets/style/css-ui/_selection-dropdown.scss +25 -35
  27. package/assets/style/css-ui/_snackbar.scss +2 -2
  28. package/assets/style/css-ui/_split-button.scss +4 -14
  29. package/assets/style/css-ui/_status.scss +26 -29
  30. package/assets/style/css-ui/_table.scss +52 -20
  31. package/assets/style/css-ui/_tabs.scss +15 -31
  32. package/assets/style/css-ui/_tag.scss +25 -65
  33. package/assets/style/css-ui/_textarea.scss +25 -30
  34. package/assets/style/css-ui/_toggle.scss +12 -11
  35. package/assets/style/css-ui/_tooltip.scss +10 -7
  36. package/assets/style/css-ui/index.css +525 -638
  37. package/assets/style/css-ui/index.css.map +1 -1
  38. package/package.json +1 -1
  39. package/src/build.js +1 -3
  40. package/src/desktop_config.js +1 -2
  41. package/src/mobile_config.js +1 -2
  42. package/src/tokens/components/button.json +225 -11
  43. package/src/tokens/components/icon-button.json +11 -1
  44. package/src/tokens/components/input.json +64 -145
  45. package/src/tokens/components/link.json +132 -0
  46. package/src/tokens/components/select.json +14 -14
  47. package/src/tokens/components/status.json +129 -0
  48. package/src/tokens/reference/v3.json +242 -0
  49. package/src/tokens/system/color-border.json +50 -43
  50. package/src/tokens/system/color-data.json +58 -0
  51. package/src/tokens/system/color-icon.json +62 -45
  52. package/src/tokens/system/color-link.json +15 -9
  53. package/src/tokens/system/color-surface.json +87 -77
  54. package/src/tokens/system/color-text.json +63 -52
  55. package/src/tokens/system/height.json +12 -3
  56. package/src/tokens/system/motion.json +10 -0
  57. package/src/tokens/system/radius.json +18 -2
  58. package/src/tokens/system/spacing.json +13 -13
  59. package/agorapulse-ui-theme-22.0.3-beta.1.tgz +0 -0
  60. package/src/formats.js +0 -36
  61. package/src/tokens/components/action-dropdown.json +0 -93
  62. package/src/tokens/components/close-button.json +0 -22
  63. package/src/tokens/components/infobox.json +0 -156
  64. package/src/tokens/components/radio.json +0 -11
@@ -105,7 +105,7 @@ form.submitted {
105
105
  .ng-optgroup {
106
106
  padding: vars.$padding-s vars.$padding-m;
107
107
  span {
108
- color: vars.$form-control-selected-font-color;
108
+ color: var(--sys-color-text-interactive-default);
109
109
  display: flex;
110
110
  ap-symbol {
111
111
  padding-right: vars.$padding-s;
@@ -133,11 +133,11 @@ form.submitted {
133
133
  }
134
134
  }
135
135
  &.ng-option-selected {
136
- background-color: unset;
136
+ background-color: var(--sys-color-surface-interactive-active);
137
137
  span {
138
- color: map.get(vars.$colors-electric-blue, 100);
138
+ color: var(--sys-color-text-interactive-active);
139
139
  ap-symbol .svg {
140
- fill: map.get(vars.$colors-electric-blue, 100) !important;
140
+ fill: var(--sys-color-icon-interactive-active) !important;
141
141
  }
142
142
  }
143
143
  span.checkbox {
@@ -148,12 +148,20 @@ form.submitted {
148
148
  }
149
149
  }
150
150
  }
151
+ // The spec leaves text alone on hover; only the surface reacts, and it is
152
+ // neutral now rather than blue.
153
+ &.ng-option-marked:not(.ng-option-selected) {
154
+ background-color: var(--sys-color-surface-interactive-hovered);
155
+ }
156
+
157
+ &.ng-option-marked.ng-option-selected {
158
+ background-color: var(--sys-color-surface-interactive-active-hovered);
159
+ }
160
+
151
161
  &.ng-option-marked {
152
- background-color: map.get(vars.$colors-electric-blue, 10);
153
162
  span {
154
- color: map.get(vars.$colors-electric-blue, 100);
155
163
  ap-symbol .svg {
156
- fill: map.get(vars.$colors-electric-blue, 100) !important;
164
+ fill: currentColor !important;
157
165
  }
158
166
  }
159
167
  span.checkbox {
@@ -1,12 +1,17 @@
1
1
  // Agorapulse Action Dropdown Styles
2
2
  @use 'mixins' as m;
3
3
 
4
+ // The panel chrome — surface, radius, shadow — is shared with the filter, datepicker and
5
+ // selection dropdowns. Figma names the shadow `Shadow/Low (default)` but exposes it as an
6
+ // effect style, not a variable, so it stays a literal here and in the three other panels.
7
+ $panel-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 69, 99, 0.15);
8
+
4
9
  // Container
5
10
  .ap-action-dropdown {
6
11
  background-color: var(--sys-color-surface-default);
7
12
  border-radius: var(--sys-radius-inner);
8
- box-shadow: var(--comp-action-dropdown-box-shadow, 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 69, 99, 0.15));
9
- padding: var(--comp-action-dropdown-padding, var(--ref-spacing-xxs));
13
+ box-shadow: $panel-shadow;
14
+ padding: var(--ref-spacing-xxs) 0;
10
15
  outline: none;
11
16
  overflow: hidden;
12
17
  z-index: 1000;
@@ -17,9 +22,7 @@
17
22
  }
18
23
 
19
24
  &:focus {
20
- // Was reading a surface token (eb-20), which barely showed. Same ring as the
21
- // rest of the DS now.
22
- outline: 2px solid var(--ref-color-electric-blue-100);
25
+ outline: 2px solid var(--sys-color-border-interactive-active);
23
26
  outline-offset: 2px;
24
27
  }
25
28
  }
@@ -30,14 +33,14 @@
30
33
  align-items: center;
31
34
  width: 100%;
32
35
  height: 40px;
33
- padding: var(--comp-action-dropdown-item-padding, var(--ref-spacing-xxs) var(--ref-spacing-xs));
36
+ padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
34
37
  border: none;
35
- background: transparent;
38
+ background: var(--sys-color-surface-interactive-default);
36
39
  color: var(--sys-color-text-interactive-default);
37
40
  cursor: pointer;
38
- font-family: var(--ref-font-family);
39
- font-size: var(--comp-action-dropdown-item-text-size, var(--ref-font-size-sm));
40
- line-height: var(--comp-action-dropdown-item-text-line-height, var(--ref-line-height-sm));
41
+ font-family: var(--sys-text-style-body-font-family);
42
+ font-size: var(--sys-text-style-body-size);
43
+ line-height: var(--sys-text-style-body-line-height);
41
44
  text-align: left;
42
45
  box-sizing: border-box;
43
46
 
@@ -49,20 +52,22 @@
49
52
 
50
53
  // Start icon = first child
51
54
  &:first-child {
52
- margin-right: var(--comp-action-dropdown-item-icon-spacing, var(--ref-spacing-xs));
55
+ margin-right: var(--sys-spacing-inline-icon-default);
53
56
  }
54
57
 
55
58
  // End icon = last child (but not the only child)
56
59
  &:last-child:not(:first-child) {
57
- margin-left: var(--comp-action-dropdown-item-icon-spacing, var(--ref-spacing-xs));
60
+ margin-left: var(--sys-spacing-inline-icon-default);
58
61
  color: var(--sys-color-icon-subtle);
59
62
  }
60
63
  }
61
64
 
65
+ // The spec hovers rows on the neutral ramp, not blue
62
66
  &:hover {
63
67
  background-color: var(--sys-color-surface-interactive-hovered);
64
68
  }
65
69
 
70
+ &:active:not(:disabled),
66
71
  &:focus,
67
72
  &.focused {
68
73
  outline: none;
@@ -71,10 +76,18 @@
71
76
 
72
77
  &:disabled {
73
78
  cursor: not-allowed;
74
- opacity: 0.4;
79
+ color: var(--sys-color-text-interactive-disabled);
80
+
81
+ .ap-action-dropdown-item-description {
82
+ color: var(--sys-color-text-interactive-disabled);
83
+ }
84
+
85
+ > i {
86
+ color: var(--sys-color-icon-interactive-disabled);
87
+ }
75
88
 
76
89
  &:hover {
77
- background-color: transparent;
90
+ background-color: var(--sys-color-surface-interactive-default);
78
91
  }
79
92
  }
80
93
 
@@ -86,22 +99,20 @@
86
99
 
87
100
  // Red mode (destructive action)
88
101
  &.red-mode {
89
- // Text moves to red-150 like every other destructive/error role. The hover and
90
- // pressed surfaces keep their red tints: no frame covers them, and on a
91
- // destructive row the red carries the meaning.
92
- color: var(--sys-color-text-error);
102
+ color: var(--sys-color-text-interactive-error-default);
93
103
 
94
104
  > i {
95
105
  color: inherit;
96
106
  }
97
107
 
98
108
  &:hover {
99
- background-color: var(--ref-color-red-10);
109
+ background-color: var(--sys-color-surface-interactive-error-hovered);
100
110
  }
101
111
 
112
+ &:active:not(:disabled),
102
113
  &:focus,
103
114
  &.focused {
104
- background-color: var(--ref-color-red-20);
115
+ background-color: var(--sys-color-surface-interactive-error-clicked);
105
116
  }
106
117
  }
107
118
 
@@ -115,6 +126,7 @@
115
126
  background-color: var(--sys-color-surface-interactive-featurelock-active-hovered);
116
127
  }
117
128
 
129
+ &:active:not(:disabled),
118
130
  &:focus,
119
131
  &.focused {
120
132
  background-color: var(--sys-color-surface-interactive-featurelock-active-clicked);
@@ -133,14 +145,14 @@
133
145
  flex-direction: column;
134
146
  flex: 1;
135
147
  min-width: 0;
136
- gap: var(--ref-spacing-xxxs);
148
+ gap: var(--sys-spacing-inline-icon-small);
137
149
  }
138
150
 
139
151
  // Label container
140
152
  .ap-action-dropdown-item-label-container {
141
153
  display: flex;
142
154
  align-items: center;
143
- gap: var(--comp-action-dropdown-item-label-spacing, var(--ref-spacing-xs));
155
+ gap: var(--sys-spacing-inline-icon-default);
144
156
  @include m.truncate;
145
157
  }
146
158
 
@@ -149,20 +161,20 @@
149
161
  @include m.truncate;
150
162
 
151
163
  &.bold {
152
- font-weight: var(--ref-font-weight-bold);
164
+ font-weight: var(--sys-text-style-body-bold-weight);
153
165
  }
154
166
  }
155
167
 
156
168
  // Description
157
169
  .ap-action-dropdown-item-description {
158
- color: var(--sys-color-text-secondary);
159
- font-size: var(--comp-action-dropdown-item-description-size, var(--ref-font-size-xs));
160
- line-height: var(--comp-action-dropdown-item-description-line-height, var(--ref-line-height-xs));
170
+ color: var(--sys-color-text-interactive-secondary);
171
+ font-size: var(--sys-text-style-caption-size);
172
+ line-height: var(--sys-text-style-caption-line-height);
161
173
  }
162
174
 
163
175
  // Divider
164
176
  .ap-action-dropdown-divider {
165
177
  height: 1px;
166
178
  background-color: var(--sys-color-border-default);
167
- margin: var(--comp-action-dropdown-divider-margin, var(--ref-spacing-xxs) 0);
179
+ margin: var(--ref-spacing-xxs) 0;
168
180
  }
@@ -1,15 +1,12 @@
1
1
  // Agorapulse Badge Styles
2
+ @use 'mixins' as m;
2
3
 
3
4
  .ap-badge {
4
5
  display: inline-flex;
5
6
  align-items: center;
6
7
  justify-content: center;
7
8
  padding: 0 2px;
8
- // `Caption - Bold` (V2 Style Guide - Tokens, node 1197:10583)
9
- font-family: var(--sys-text-style-caption-bold-font-family);
10
- font-size: var(--sys-text-style-caption-bold-size);
11
- font-weight: var(--sys-text-style-caption-bold-weight);
12
- line-height: var(--sys-text-style-caption-bold-line-height);
9
+ @include m.text-style('caption-bold');
13
10
  height: var(--ref-font-line-height-xs);
14
11
  max-height: var(--ref-font-line-height-xs);
15
12
  border-radius: 2px;
@@ -20,7 +20,7 @@
20
20
  display: flex;
21
21
  justify-content: center;
22
22
  align-items: center;
23
- gap: var(--comp-split-button-spacing);
23
+ gap: var(--comp-button-spacing);
24
24
  font-size: var(--comp-button-text-size);
25
25
  font-family: var(--comp-button-text-font-family);
26
26
  line-height: var(--comp-button-text-line-height);
@@ -48,80 +48,106 @@
48
48
 
49
49
  // Primary variants
50
50
  &.primary {
51
- color: var(--sys-color-text-on-color);
52
-
53
51
  &.orange {
54
- @include btn.btn-primary-color('orange', $loading-shade: 20, $focus-shade: 80);
52
+ background-color: var(--comp-button-primary-orange-surface-default);
53
+ color: var(--comp-button-primary-orange-content);
54
+
55
+ &:hover {
56
+ background-color: var(--comp-button-primary-orange-surface-hovered);
57
+ }
58
+
59
+ &:active:not(:disabled) {
60
+ background-color: var(--comp-button-primary-orange-surface-clicked);
61
+ }
62
+
63
+ &:disabled,
64
+ &.loading {
65
+ background-color: var(--comp-button-primary-orange-surface-disabled);
66
+ }
55
67
  }
56
68
 
57
69
  &.blue {
58
- @include btn.btn-primary-color(
59
- 'electric-blue',
60
- $default-shade: 150,
61
- $hover-shade: 100,
62
- $clicked-shade: 80,
63
- $loading-shade: 20,
64
- $focus-shade: 100
65
- );
70
+ background-color: var(--comp-button-primary-blue-surface-default);
71
+ color: var(--comp-button-primary-blue-content);
72
+
73
+ &:hover {
74
+ background-color: var(--comp-button-primary-blue-surface-hovered);
75
+ }
76
+
77
+ &:active:not(:disabled) {
78
+ background-color: var(--comp-button-primary-blue-surface-clicked);
79
+ }
80
+
81
+ &:disabled,
82
+ &.loading {
83
+ background-color: var(--comp-button-primary-blue-surface-disabled);
84
+ }
66
85
  }
67
86
  }
68
87
 
69
88
  // Secondary variants
70
89
  &.secondary {
71
90
  &.orange {
72
- @include btn.btn-secondary-color('orange', $surface-shade: 20, $content-shade: 150, $hover-shade: 40, $clicked-shade: 60, $focus-shade: 40, $disabled-surface-shade: 20, $disabled-content-shade: 40, $loading-shade: 20);
73
- }
91
+ background-color: var(--comp-button-secondary-orange-surface-default);
92
+ color: var(--comp-button-secondary-orange-content);
74
93
 
75
- &.blue {
76
- @include btn.btn-secondary-color('electric-blue', $surface-shade: 20, $content-shade: 150, $hover-shade: 40, $clicked-shade: 60, $focus-shade: 40, $disabled-surface-shade: 20, $disabled-content-shade: 40, $loading-shade: 20);
77
- }
78
- }
79
-
80
- // Ghost variants
81
- &.ghost {
82
- background: transparent;
94
+ &:hover {
95
+ background-color: var(--comp-button-secondary-orange-surface-hovered);
96
+ }
83
97
 
84
- &.grey {
85
- // Figma binds the hover and pressed surfaces to the sys interactive-surface ramp.
86
- color: var(--ref-color-grey-80);
98
+ &:active:not(:disabled) {
99
+ background-color: var(--comp-button-secondary-orange-surface-clicked);
100
+ }
87
101
 
88
- ap-symbol {
89
- color: var(--ref-color-grey-80);
102
+ &:disabled,
103
+ &.loading {
104
+ background-color: var(--comp-button-secondary-orange-surface-disabled);
105
+ color: var(--comp-button-secondary-orange-content-disabled);
90
106
  }
107
+ }
108
+
109
+ &.blue {
110
+ background-color: var(--comp-button-secondary-blue-surface-default);
111
+ color: var(--comp-button-secondary-blue-content);
91
112
 
92
113
  &:hover {
93
- background-color: var(--sys-color-surface-interactive-hovered);
114
+ background-color: var(--comp-button-secondary-blue-surface-hovered);
94
115
  }
95
116
 
96
117
  &:active:not(:disabled) {
97
- background-color: var(--sys-color-surface-interactive-clicked);
118
+ background-color: var(--comp-button-secondary-blue-surface-clicked);
98
119
  }
99
120
 
100
- &:focus:not(:disabled):not(:active) {
101
- background-color: var(--sys-color-surface-interactive-hovered);
121
+ &:disabled,
122
+ &.loading {
123
+ background-color: var(--comp-button-secondary-blue-surface-disabled);
124
+ color: var(--comp-button-secondary-blue-content-disabled);
102
125
  }
126
+ }
127
+ }
103
128
 
104
- &:disabled {
105
- color: var(--ref-color-grey-40);
129
+ // Ghost variants
130
+ &.ghost {
131
+ background: transparent;
106
132
 
107
- ap-symbol {
108
- color: var(--ref-color-grey-40);
109
- }
110
- }
133
+ &.grey {
134
+ color: var(--comp-button-ghost-grey-content);
111
135
 
112
- &.loading:not(.locked) {
113
- color: var(--ref-color-grey-40);
136
+ &:hover {
137
+ background-color: var(--comp-button-ghost-grey-surface-hovered);
138
+ }
114
139
 
115
- ap-symbol {
116
- color: var(--ref-color-grey-40);
117
- }
140
+ &:active:not(:disabled) {
141
+ background-color: var(--comp-button-ghost-grey-surface-clicked);
118
142
  }
119
143
 
120
- .loading-bar {
121
- background-color: var(--ref-color-grey-80);
144
+ &:disabled,
145
+ &.loading {
146
+ color: var(--comp-button-ghost-grey-content-disabled);
122
147
  }
123
148
  }
124
149
 
150
+ // Not in the Figma spec — left on the V2 ramps until design rules on them.
125
151
  &.blue {
126
152
  @include btn.btn-ghost-color('electric-blue');
127
153
  }
@@ -135,64 +161,66 @@
135
161
  }
136
162
  }
137
163
 
138
- // Stroked variants
164
+ // Stroked variants — Figma calls these `tertiary`
139
165
  &.stroked {
140
- background: var(--ref-color-white);
166
+ background: var(--comp-button-tertiary-filled-surface);
167
+ border: 1px solid;
141
168
 
142
169
  &.grey {
143
- // Figma binds these four borders to the sys interactive-border ramp, and the
144
- // disabled border (grey-20) differs from the disabled content (grey-40), which
145
- // the shared mixin cannot express with a single shade — hence written out.
146
- border: 1px solid var(--sys-color-border-interactive-default);
147
- color: var(--ref-color-grey-80);
148
-
149
- ap-symbol {
150
- color: var(--ref-color-grey-80);
151
- }
170
+ border-color: var(--comp-button-tertiary-grey-border-default);
171
+ color: var(--comp-button-tertiary-grey-content);
152
172
 
153
173
  &:hover {
154
- border-color: var(--sys-color-border-interactive-hovered);
174
+ border-color: var(--comp-button-tertiary-grey-border-hovered);
155
175
  }
156
176
 
157
177
  &:active:not(:disabled) {
158
- border-color: var(--sys-color-border-interactive-clicked);
178
+ border-color: var(--comp-button-tertiary-grey-border-clicked);
159
179
  }
160
180
 
161
- &:focus:not(:disabled):not(:active) {
162
- border-color: var(--sys-color-border-interactive-hovered);
181
+ &:disabled,
182
+ &.loading {
183
+ border-color: var(--comp-button-tertiary-grey-border-disabled);
184
+ color: var(--comp-button-tertiary-grey-content-disabled);
163
185
  }
186
+ }
164
187
 
165
- &:disabled {
166
- border-color: var(--sys-color-border-interactive-disabled);
167
- color: var(--ref-color-grey-40);
188
+ &.blue {
189
+ border-color: var(--comp-button-tertiary-blue-border-default);
190
+ color: var(--comp-button-tertiary-blue-content);
168
191
 
169
- ap-symbol {
170
- color: var(--ref-color-grey-40);
171
- }
192
+ &:hover {
193
+ border-color: var(--comp-button-tertiary-blue-border-hovered);
172
194
  }
173
195
 
174
- &.loading {
175
- border-color: var(--sys-color-border-interactive-disabled);
176
- color: var(--ref-color-grey-40);
177
-
178
- ap-symbol {
179
- color: var(--ref-color-grey-40);
180
- }
196
+ &:active:not(:disabled) {
197
+ border-color: var(--comp-button-tertiary-blue-border-clicked);
181
198
  }
182
199
 
183
- .loading-bar {
184
- background-color: var(--ref-color-grey-80);
200
+ &:disabled,
201
+ &.loading {
202
+ border-color: var(--comp-button-tertiary-blue-border-disabled);
203
+ color: var(--comp-button-tertiary-blue-content-disabled);
185
204
  }
186
205
  }
187
206
 
188
- &.blue {
189
- border: 1px solid var(--ref-color-electric-blue-60);
190
- @include btn.btn-stroked-color('electric-blue', $text-color-shade: 150, $focus-border-shade: 80, $disabled-shade: 40, $loading-border-shade: 40);
191
- }
192
-
193
207
  &.red {
194
- border: 1px solid var(--ref-color-red-60);
195
- @include btn.btn-stroked-color('red', $text-color-shade: 150, $focus-border-shade: 80, $disabled-shade: 40, $loading-border-shade: 40);
208
+ border-color: var(--comp-button-tertiary-red-border-default);
209
+ color: var(--comp-button-tertiary-red-content);
210
+
211
+ &:hover {
212
+ border-color: var(--comp-button-tertiary-red-border-hovered);
213
+ }
214
+
215
+ &:active:not(:disabled) {
216
+ border-color: var(--comp-button-tertiary-red-border-clicked);
217
+ }
218
+
219
+ &:disabled,
220
+ &.loading {
221
+ border-color: var(--comp-button-tertiary-red-border-disabled);
222
+ color: var(--comp-button-tertiary-red-content-disabled);
223
+ }
196
224
  }
197
225
  }
198
226
 
@@ -250,50 +278,67 @@
250
278
  }
251
279
  }
252
280
 
253
- // Locked variant
281
+ // Locked variant — Figma calls this `featurelock`. It specifies no disabled or loading state.
254
282
  &.locked {
255
283
  overflow: visible;
256
- background-color: var(--ref-color-purple-10);
257
- color: var(--ref-color-purple-80);
284
+ background-color: var(--comp-button-featurelock-surface-default);
285
+ border: 1px solid var(--comp-button-featurelock-border-default);
286
+ color: var(--comp-button-featurelock-content);
258
287
 
259
288
  &:hover:not(:disabled):not(.loading) {
260
- background-color: var(--ref-color-purple-20);
289
+ background-color: var(--comp-button-featurelock-surface-hovered);
290
+ border-color: var(--comp-button-featurelock-border-hovered);
261
291
  }
262
292
 
263
293
  &:active:not(:disabled):not(.loading) {
264
- background-color: var(--ref-color-purple-40);
294
+ background-color: var(--comp-button-featurelock-surface-clicked);
295
+ border-color: var(--comp-button-featurelock-border-clicked);
265
296
  }
266
297
  }
267
298
 
268
- // Loading bar colors per variant
299
+ // Loading bar colors per variant — the bar takes the variant's default surface or content
269
300
  &.primary.orange .ap-loading-bar {
270
- background-color: var(--ref-color-orange-100);
301
+ background-color: var(--comp-button-primary-orange-surface-default);
271
302
  }
272
303
 
273
304
  &.primary.blue .ap-loading-bar {
274
- background-color: var(--ref-color-electric-blue-100);
305
+ background-color: var(--comp-button-primary-blue-surface-default);
275
306
  }
276
307
 
277
308
  &.secondary.orange .ap-loading-bar {
278
- background-color: var(--ref-color-orange-100);
309
+ background-color: var(--comp-button-secondary-orange-content);
279
310
  }
280
311
 
281
312
  &.secondary.blue .ap-loading-bar {
282
- background-color: var(--ref-color-electric-blue-100);
313
+ background-color: var(--comp-button-secondary-blue-content);
314
+ }
315
+
316
+ &.ghost.grey .ap-loading-bar {
317
+ background-color: var(--comp-button-ghost-grey-content);
283
318
  }
284
319
 
285
- &.ghost.grey .ap-loading-bar,
286
320
  &.stroked.grey .ap-loading-bar {
287
- background-color: var(--ref-color-grey-80);
321
+ background-color: var(--comp-button-tertiary-grey-content);
288
322
  }
289
323
 
290
- &.ghost.blue .ap-loading-bar,
291
324
  &.stroked.blue .ap-loading-bar {
292
- background-color: var(--ref-color-electric-blue-100);
325
+ background-color: var(--comp-button-tertiary-blue-content);
293
326
  }
294
327
 
295
- &.ghost.red .ap-loading-bar,
296
328
  &.stroked.red .ap-loading-bar {
329
+ background-color: var(--comp-button-tertiary-red-content);
330
+ }
331
+
332
+ &.locked .ap-loading-bar {
333
+ background-color: var(--comp-button-featurelock-content);
334
+ }
335
+
336
+ // Not in the Figma spec — left on the V2 ramps until design rules on them.
337
+ &.ghost.blue .ap-loading-bar {
338
+ background-color: var(--ref-color-electric-blue-100);
339
+ }
340
+
341
+ &.ghost.red .ap-loading-bar {
297
342
  background-color: var(--ref-color-red-100);
298
343
  }
299
344
 
@@ -18,9 +18,7 @@
18
18
  }
19
19
 
20
20
  // No-label variant: larger hit area with background feedback.
21
- // Deliberately left on raw refs: the updated design frame (node 1194:10458) drops
22
- // this variant entirely and the new token set has none of grey-05 / blue-10 /
23
- // blue-20, so there is nothing to migrate it onto yet.
21
+ // Not in the spec — its surfaces stay on the V2 ramps until design draws it.
24
22
  &:not(:has(> span:not(:empty))) {
25
23
  padding: 10px;
26
24
  border-radius: var(--ref-border-radius-md);
@@ -96,7 +94,7 @@
96
94
  border-color: var(--sys-color-border-input-clicked);
97
95
  }
98
96
 
99
- // Checked state — show checkmark
97
+ // Checked state — the spec draws no border, so the stroke matches the fill
100
98
  &:has(input:checked) > i {
101
99
  background: var(--sys-color-surface-input-active);
102
100
  border-color: var(--sys-color-surface-input-active);
@@ -131,7 +129,7 @@
131
129
  border-color: var(--sys-color-surface-input-active-disabled);
132
130
  }
133
131
 
134
- // Indeterminate state (class on container)
132
+ // Indeterminate state (class on container) — not in the spec, follows the checked treatment
135
133
  &.indeterminate > i {
136
134
  background: var(--sys-color-surface-input-active);
137
135
  border-color: var(--sys-color-surface-input-active);
@@ -160,7 +158,7 @@
160
158
  }
161
159
  }
162
160
 
163
- // Error state
161
+ // Error state — wins over the unchecked state colours above
164
162
  &.error > i {
165
163
  border-color: var(--sys-color-border-error);
166
164
  }
@@ -169,10 +167,7 @@
169
167
  > span {
170
168
  display: flex;
171
169
  align-items: center;
172
- font-family: var(--sys-text-style-body-font-family);
173
- font-size: var(--sys-text-style-body-size);
174
- font-weight: var(--sys-text-style-body-weight);
175
- line-height: var(--sys-text-style-body-line-height);
170
+ @include m.text-style('body');
176
171
  color: var(--sys-color-text-interactive-default);
177
172
  user-select: none;
178
173
 
@@ -189,6 +184,6 @@
189
184
 
190
185
  // Bold modifier
191
186
  &.bold > span {
192
- font-weight: var(--ref-font-weight-bold);
187
+ font-weight: var(--sys-text-style-body-bold-weight);
193
188
  }
194
189
  }