@agorapulse/ui-theme 22.0.1 → 22.0.2-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 (58) hide show
  1. package/agorapulse-ui-theme-22.0.2-beta.1.tgz +0 -0
  2. package/assets/desktop_variables.css +457 -538
  3. package/assets/mobile_variables.css +457 -538
  4. package/assets/style/_button-mixins.scss +92 -33
  5. package/assets/style/_link.scss +35 -31
  6. package/assets/style/_select.scss +70 -69
  7. package/assets/style/_tooltip.scss +21 -21
  8. package/assets/style/components-custom-style/_input.scss +28 -18
  9. package/assets/style/css-ui/_action-dropdown.scss +21 -16
  10. package/assets/style/css-ui/_badge.scss +12 -11
  11. package/assets/style/css-ui/_button.scss +95 -17
  12. package/assets/style/css-ui/_checkbox.scss +35 -32
  13. package/assets/style/css-ui/_counter.scss +30 -29
  14. package/assets/style/css-ui/_icon-button.scss +62 -16
  15. package/assets/style/css-ui/_input.scss +39 -27
  16. package/assets/style/css-ui/_label.scss +14 -17
  17. package/assets/style/css-ui/_link.scss +36 -31
  18. package/assets/style/css-ui/_radio-card.scss +26 -18
  19. package/assets/style/css-ui/_radio.scss +37 -23
  20. package/assets/style/css-ui/_select.scss +84 -71
  21. package/assets/style/css-ui/_selection-dropdown.scss +57 -20
  22. package/assets/style/css-ui/_snackbar.scss +2 -2
  23. package/assets/style/css-ui/_split-button.scss +14 -4
  24. package/assets/style/css-ui/_status.scss +29 -26
  25. package/assets/style/css-ui/_tabs.scss +64 -56
  26. package/assets/style/css-ui/_tag.scss +43 -45
  27. package/assets/style/css-ui/_textarea.scss +30 -24
  28. package/assets/style/css-ui/_toggle.scss +30 -21
  29. package/assets/style/css-ui/_tooltip.scss +16 -17
  30. package/assets/style/css-ui/index.css +620 -543
  31. package/assets/style/css-ui/index.css.map +1 -1
  32. package/package.json +1 -1
  33. package/src/build.js +3 -1
  34. package/src/desktop_config.js +2 -1
  35. package/src/formats.js +36 -0
  36. package/src/mobile_config.js +2 -1
  37. package/src/tokens/components/button.json +1 -1
  38. package/src/tokens/components/icon-button.json +1 -1
  39. package/src/tokens/reference/animation.json +5 -0
  40. package/src/tokens/system/color-border.json +78 -0
  41. package/src/tokens/system/color-icon.json +78 -0
  42. package/src/tokens/system/color-link.json +23 -0
  43. package/src/tokens/system/color-surface.json +120 -0
  44. package/src/tokens/system/color-text.json +78 -0
  45. package/src/tokens/system/height.json +15 -0
  46. package/src/tokens/system/motion.json +12 -0
  47. package/src/tokens/system/radius.json +12 -0
  48. package/src/tokens/system/spacing.json +25 -0
  49. package/agorapulse-ui-theme-22.0.1.tgz +0 -0
  50. package/src/tokens/components/badge.json +0 -53
  51. package/src/tokens/components/counter.json +0 -108
  52. package/src/tokens/components/label.json +0 -56
  53. package/src/tokens/components/link.json +0 -127
  54. package/src/tokens/components/status-card.json +0 -187
  55. package/src/tokens/components/status.json +0 -129
  56. package/src/tokens/components/tabs.json +0 -136
  57. package/src/tokens/components/tag.json +0 -194
  58. package/src/tokens/components/tooltip.json +0 -36
@@ -24,7 +24,8 @@
24
24
  box-sizing: border-box;
25
25
 
26
26
  > i {
27
- color: var(--ref-color-grey-60);
27
+ // `button/{ghost,tertiary}/gray/content`
28
+ color: var(--sys-color-icon-secondary);
28
29
  font-size: calc(var(--comp-icon-button-height) - (var(--comp-icon-button-padding) * 2));
29
30
  flex-shrink: 0;
30
31
  line-height: 1;
@@ -32,22 +33,28 @@
32
33
 
33
34
  // Default hover/active (flat, no color)
34
35
  &:hover:not(.stroked):not(.locked):not(:disabled) {
35
- background: var(--ref-color-grey-05);
36
+ background: var(--sys-color-surface-interactive-hovered);
36
37
  }
37
38
 
38
39
  &:active:not(.stroked):not(.locked):not(:disabled) {
39
- background: var(--ref-color-grey-10);
40
+ background: var(--sys-color-surface-interactive-clicked);
40
41
  }
41
42
 
42
43
  &:focus:not(:disabled):not(:active) {
43
44
  @include m.focus-ring;
44
45
  }
45
46
 
47
+ // Focus mirrors hover, as the design shows for every hue but feature-lock.
48
+ &:focus:not(:disabled):not(:active):not(.stroked):not(.locked) {
49
+ background: var(--sys-color-surface-interactive-hovered);
50
+ }
51
+
46
52
  &:disabled {
47
53
  pointer-events: none;
48
54
 
55
+ // `button/ghost/gray/content-disabled`
49
56
  > i {
50
- color: var(--ref-color-grey-20);
57
+ color: var(--sys-color-icon-interactive-disabled);
51
58
  }
52
59
  }
53
60
 
@@ -108,36 +115,59 @@
108
115
 
109
116
  // Stroked variant
110
117
  &.stroked {
111
- border: 1px solid var(--ref-color-grey-20);
112
- background: var(--ref-color-white);
118
+ border: 1px solid var(--sys-color-border-interactive-default);
119
+ // `button/tertiary/filled-surface`
120
+ background: var(--sys-color-surface-default);
113
121
 
114
122
  &:hover:not(.locked):not(:disabled) {
115
- border-color: var(--ref-color-grey-40);
123
+ border-color: var(--sys-color-border-interactive-hovered);
116
124
  }
117
125
 
118
126
  &:active:not(.locked):not(:disabled) {
119
- border-color: var(--ref-color-grey-60);
127
+ border-color: var(--sys-color-border-interactive-clicked);
128
+ }
129
+
130
+ &:focus:not(.locked):not(:disabled):not(:active) {
131
+ border-color: var(--sys-color-border-interactive-hovered);
120
132
  }
121
133
 
122
134
  &:disabled {
123
- border-color: var(--ref-color-grey-20);
135
+ border-color: var(--sys-color-border-interactive-disabled);
136
+
137
+ // Figma binds the disabled glyph of the grey stroked button to the raw
138
+ // grey-20 ref — there is no `button/tertiary/gray/content-disabled`.
139
+ > i {
140
+ color: var(--ref-color-grey-20);
141
+ }
124
142
  }
125
143
 
126
144
  // Stroked color variants
127
145
  &.blue:not(.loading):not(.locked) {
128
- border-color: var(--ref-color-electric-blue-100);
146
+ border-color: var(--ref-color-electric-blue-60);
147
+
148
+ > i {
149
+ color: var(--ref-color-electric-blue-150);
150
+ }
129
151
 
130
152
  &:hover:not(:disabled) {
131
- border-color: var(--ref-color-electric-blue-60);
153
+ border-color: var(--ref-color-electric-blue-80);
132
154
  }
133
155
  &:active:not(:disabled) {
134
156
  border-color: var(--ref-color-electric-blue-100);
135
157
  }
158
+ &:focus:not(:disabled):not(:active) {
159
+ border-color: var(--ref-color-electric-blue-80);
160
+ }
136
161
  &:disabled {
137
- border-color: var(--ref-color-electric-blue-20);
162
+ border-color: var(--ref-color-electric-blue-40);
163
+
164
+ > i {
165
+ color: var(--ref-color-electric-blue-40);
166
+ }
138
167
  }
139
168
  }
140
169
 
170
+ // `green` has no counterpart in the updated design, so it keeps its ramp.
141
171
  &.green:not(.loading):not(.locked) {
142
172
  border-color: var(--ref-color-green-100);
143
173
 
@@ -153,16 +183,27 @@
153
183
  }
154
184
 
155
185
  &.red:not(.loading):not(.locked) {
156
- border-color: var(--ref-color-red-100);
186
+ border-color: var(--ref-color-red-60);
187
+
188
+ > i {
189
+ color: var(--ref-color-red-150);
190
+ }
157
191
 
158
192
  &:hover:not(:disabled) {
159
- border-color: var(--ref-color-red-60);
193
+ border-color: var(--ref-color-red-80);
160
194
  }
161
195
  &:active:not(:disabled) {
162
196
  border-color: var(--ref-color-red-100);
163
197
  }
198
+ &:focus:not(:disabled):not(:active) {
199
+ border-color: var(--ref-color-red-80);
200
+ }
164
201
  &:disabled {
165
- border-color: var(--ref-color-red-20);
202
+ border-color: var(--ref-color-red-40);
203
+
204
+ > i {
205
+ color: var(--ref-color-red-40);
206
+ }
166
207
  }
167
208
  }
168
209
  }
@@ -184,16 +225,21 @@
184
225
  background: var(--ref-color-purple-10);
185
226
  border: 1px solid var(--ref-color-purple-20);
186
227
  overflow: visible;
228
+ color: var(--sys-color-icon-featurelock);
187
229
 
188
230
  > i {
189
- color: var(--ref-color-purple-100);
231
+ color: var(--sys-color-icon-featurelock);
190
232
  }
191
233
 
234
+ // The design adds a tinted surface per state; only the border moved before.
235
+ // Focus is the one hue that keeps its default surface, so it gets no rule.
192
236
  &:hover {
237
+ background: var(--ref-color-purple-20);
193
238
  border-color: var(--ref-color-purple-40);
194
239
  }
195
240
 
196
241
  &:active {
242
+ background: var(--ref-color-purple-40);
197
243
  border-color: var(--ref-color-purple-60);
198
244
  }
199
245
  }
@@ -3,6 +3,11 @@
3
3
  @use 'ui-symbol/icons/build/ap-icons-data' as icons;
4
4
 
5
5
  // Form field container
6
+ //
7
+ // Colours come from the semantic `input/*` state matrix and the `color/text/*`
8
+ // roles (V2 Style Guide - Tokens, node 1207:11220). The `--comp-input-*` /
9
+ // `--comp-forms-*` metrics stay: that tier is shared with textarea, select and
10
+ // the legacy input, which the frame does not cover.
6
11
  .ap-form-field {
7
12
  display: flex;
8
13
  flex-direction: column;
@@ -11,7 +16,7 @@
11
16
  // Label — implicit > label
12
17
  > label {
13
18
  @include m.text-style('body');
14
- color: var(--ref-color-grey-100);
19
+ color: var(--sys-color-text-default);
15
20
  }
16
21
  }
17
22
 
@@ -21,40 +26,47 @@
21
26
  display: inline-flex;
22
27
  align-items: center;
23
28
  height: var(--comp-input-height);
24
- border: 1px solid var(--comp-input-border-default-color);
29
+ border: 1px solid var(--sys-color-border-input-default);
25
30
  box-sizing: border-box;
26
- border-radius: var(--comp-input-border-radius);
31
+ border-radius: var(--sys-radius-inner);
27
32
  overflow: hidden;
28
- background-color: var(--comp-input-fill-color);
33
+ background-color: var(--sys-color-surface-interactive-default);
29
34
  gap: var(--ref-spacing-xxs);
30
35
  padding: 0 var(--ref-spacing-xs);
31
36
 
32
37
  // Disabled input
33
38
  &:has(input:disabled) {
34
- background-color: var(--comp-input-fill-disabled-color);
35
- color: var(--comp-input-text-disabled-color);
39
+ background-color: var(--sys-color-surface-input-disabled);
40
+ border-color: var(--sys-color-border-input-disabled);
41
+ color: var(--sys-color-text-interactive-disabled);
42
+ }
43
+
44
+ // Invalid / valid come first so the interactive states below win: the design
45
+ // replaces the error and success border on hover, press and focus, keeping the
46
+ // red or green only on the message underneath.
47
+ &.invalid,
48
+ &:has(input.invalid) {
49
+ border-color: var(--sys-color-border-error);
50
+ }
51
+
52
+ &.valid,
53
+ &:has(input.valid) {
54
+ border-color: var(--sys-color-border-success);
36
55
  }
37
56
 
38
57
  // Hover state
39
58
  &:hover:not(:has(input:disabled)) {
40
- border-color: var(--comp-input-border-hover-color);
59
+ border-color: var(--sys-color-border-input-hovered);
41
60
  }
42
61
 
43
62
  // Focus state
44
- &:focus-within:not(:has(input:disabled)) {
45
- border-color: var(--comp-input-border-focused-color);
63
+ &:focus-within:not(:has(input:disabled)):not(:active) {
64
+ border-color: var(--sys-color-border-input-active);
46
65
  }
47
66
 
48
- // Invalid state
49
- &.invalid,
50
- &:has(input.invalid) {
51
- border-color: var(--comp-input-border-error-color);
52
- }
53
-
54
- // Valid state
55
- &.valid,
56
- &:has(input.valid) {
57
- border-color: var(--comp-input-border-success-color);
67
+ // Pressed state
68
+ &:active:not(:has(input:disabled)) {
69
+ border-color: var(--sys-color-border-input-clicked);
58
70
  }
59
71
 
60
72
  // Input — implicit > input
@@ -63,7 +75,7 @@
63
75
  border: none;
64
76
  outline: none;
65
77
  background: transparent;
66
- color: var(--comp-input-text-default-color);
78
+ color: var(--sys-color-text-default);
67
79
  font-family: var(--comp-input-text-font-family);
68
80
  font-size: var(--comp-input-text-size);
69
81
  font-weight: var(--comp-input-text-font-weight);
@@ -71,11 +83,11 @@
71
83
  min-width: 0;
72
84
 
73
85
  &::placeholder {
74
- color: var(--comp-input-text-placeholder-color);
86
+ color: var(--sys-color-text-subtle);
75
87
  }
76
88
 
77
89
  &:disabled {
78
- color: var(--comp-input-text-disabled-color);
90
+ color: var(--sys-color-text-interactive-disabled);
79
91
  }
80
92
  }
81
93
 
@@ -84,7 +96,7 @@
84
96
  flex-shrink: 0;
85
97
  width: var(--comp-input-icon-size);
86
98
  height: var(--comp-input-icon-size);
87
- color: var(--comp-input-icon-color);
99
+ color: var(--sys-color-text-subtle);
88
100
  pointer-events: none;
89
101
  }
90
102
  }
@@ -109,20 +121,20 @@
109
121
  }
110
122
 
111
123
  &.error {
112
- color: var(--comp-forms-status-text-error-color);
124
+ color: var(--sys-color-text-error);
113
125
 
114
126
  &::before {
115
127
  @include icons.icon('error_fill');
116
- color: var(--comp-forms-status-icon-error-color);
128
+ color: var(--sys-color-icon-error);
117
129
  }
118
130
  }
119
131
 
120
132
  &.success {
121
- color: var(--comp-forms-status-text-success-color);
133
+ color: var(--sys-color-text-success);
122
134
 
123
135
  &::before {
124
136
  @include icons.icon('rounded-check_fill');
125
- color: var(--comp-forms-status-icon-success-color);
137
+ color: var(--sys-color-icon-success);
126
138
  }
127
139
  }
128
140
  }
@@ -5,31 +5,28 @@
5
5
  display: inline-flex;
6
6
  align-items: center;
7
7
  max-width: 100%;
8
- background: var(--comp-label-background-color);
9
- border-radius: var(--comp-label-border-radius);
10
- padding: 0 var(--comp-label-padding-right) 0 var(--comp-label-padding-left);
11
- height: var(--comp-label-height);
8
+ background: var(--sys-color-surface-category-blue);
9
+ border-radius: var(--ref-spacing-md);
10
+ padding: 0 var(--sys-spacing-container-sm);
11
+ height: var(--sys-height-chip);
12
12
  box-sizing: border-box;
13
13
  border: none;
14
14
 
15
15
  // Text styles on container (span optional)
16
- color: var(--comp-label-text-color);
17
- font-family: var(--comp-label-text-style-font-family);
18
- font-size: var(--comp-label-text-style-size);
19
- font-weight: var(--comp-label-text-style-font-weight);
20
- line-height: var(--comp-label-text-style-line-height);
16
+ color: var(--sys-color-text-default);
17
+ @include m.text-style('body');
21
18
  white-space: nowrap;
22
19
  text-decoration: none;
23
20
 
24
21
  // Auto-detect icon — add gap
25
22
  &:has(> i) {
26
- gap: var(--comp-label-closable-spacing);
23
+ gap: var(--sys-spacing-inline-icon-small);
27
24
  }
28
25
 
29
26
  // Auto-detect close button — tighter padding + gap
30
27
  &:has(> button) {
31
- gap: var(--comp-label-closable-spacing);
32
- padding: 0 var(--comp-label-closable-padding-right) 0 var(--ref-spacing-xxs);
28
+ gap: var(--sys-spacing-inline-icon-small);
29
+ padding: 0 2px 0 var(--sys-spacing-container-sm);
33
30
  }
34
31
 
35
32
  // Text truncation — use > span when combined with a close button
@@ -50,15 +47,15 @@
50
47
  align-items: center;
51
48
  justify-content: center;
52
49
  flex-shrink: 0;
53
- width: calc(var(--comp-label-height) - 4px);
54
- height: calc(var(--comp-label-height) - 4px);
55
- min-width: calc(var(--comp-label-height) - 4px);
50
+ width: calc(var(--sys-height-chip) - var(--ref-spacing-xxxs));
51
+ height: calc(var(--sys-height-chip) - var(--ref-spacing-xxxs));
52
+ min-width: calc(var(--sys-height-chip) - var(--ref-spacing-xxxs));
56
53
  border: none;
57
54
  background: transparent;
58
55
  border-radius: 50%;
59
56
  cursor: pointer;
60
57
  padding: 0;
61
- color: var(--comp-label-text-color);
58
+ color: var(--sys-color-icon-secondary);
62
59
  transition: background-color 0.15s;
63
60
 
64
61
  &:hover {
@@ -91,5 +88,5 @@
91
88
  .ap-label-list {
92
89
  display: flex;
93
90
  flex-wrap: wrap;
94
- gap: var(--ref-spacing-xxs);
91
+ gap: var(--sys-spacing-container-sm);
95
92
  }
@@ -1,69 +1,74 @@
1
1
  // Agorapulse Link Styles
2
+ //
3
+ // Colours come from the semantic `color/link/*` family (V2 Style Guide - Tokens,
4
+ // node 1193:11239). The five typographic rows of that frame map onto the variants
5
+ // here: Subtitle -> `big`, Body -> base, Caption -> `small`, Body Bold ->
6
+ // `standalone`, Caption Bold -> `standalone.small`.
2
7
  @use 'mixins' as m;
3
8
 
4
9
  // Base link styling
5
10
  .ap-link {
6
11
  display: inline-flex;
7
- gap: var(--comp-link-spacing);
8
- font-family: var(--comp-link-text-font-family);
9
- font-weight: var(--comp-link-text-font-weight);
10
- line-height: var(--comp-link-text-line-height);
11
- font-size: var(--comp-link-text-size);
12
+ gap: var(--ref-spacing-xxxs);
13
+ font-family: var(--sys-text-style-body-font-family);
14
+ font-weight: var(--sys-text-style-body-weight);
15
+ line-height: var(--sys-text-style-body-line-height);
16
+ font-size: var(--sys-text-style-body-size);
12
17
  align-items: center;
13
18
  text-decoration: underline;
14
19
  -webkit-tap-highlight-color: transparent;
15
20
  cursor: pointer;
16
- color: var(--comp-link-default-color);
21
+ color: var(--sys-color-link-default);
17
22
 
18
23
  // Size variants
19
24
  &.small {
20
- font-family: var(--comp-link-small-text-style-font-family);
21
- font-weight: var(--comp-link-small-text-style-font-weight);
22
- line-height: var(--comp-link-small-text-style-line-height);
23
- font-size: var(--comp-link-small-text-style-size);
25
+ font-family: var(--sys-text-style-caption-font-family);
26
+ font-weight: var(--sys-text-style-caption-weight);
27
+ line-height: var(--sys-text-style-caption-line-height);
28
+ font-size: var(--sys-text-style-caption-size);
24
29
  }
25
30
 
26
31
  &.big {
27
- font-family: var(--comp-link-big-text-style-font-family);
28
- font-weight: var(--comp-link-big-text-style-font-weight);
29
- line-height: var(--comp-link-big-text-style-line-height);
30
- font-size: var(--comp-link-big-text-style-size);
32
+ font-family: var(--sys-text-style-subtitle-font-family);
33
+ font-weight: var(--sys-text-style-subtitle-weight);
34
+ line-height: var(--sys-text-style-subtitle-line-height);
35
+ font-size: var(--sys-text-style-subtitle-size);
31
36
  }
32
37
 
33
38
  // Standalone variant (no underline)
34
39
  &.standalone {
35
40
  text-decoration: none;
36
- font-family: var(--comp-link-standalone-default-text-style-font-family);
37
- font-weight: var(--comp-link-standalone-default-text-style-font-weight);
38
- line-height: var(--comp-link-standalone-default-text-style-line-height);
39
- font-size: var(--comp-link-standalone-default-text-style-size);
40
- color: var(--comp-link-default-color);
41
+ font-family: var(--sys-text-style-body-bold-font-family);
42
+ font-weight: var(--sys-text-style-body-bold-weight);
43
+ line-height: var(--sys-text-style-body-bold-line-height);
44
+ font-size: var(--sys-text-style-body-bold-size);
45
+ color: var(--sys-color-link-default);
41
46
 
42
47
  &.small {
43
- font-family: var(--comp-link-standalone-small-text-style-font-family);
44
- font-weight: var(--comp-link-standalone-small-text-style-font-weight);
45
- line-height: var(--comp-link-standalone-small-text-style-line-height);
46
- font-size: var(--comp-link-standalone-small-text-style-size);
48
+ font-family: var(--sys-text-style-caption-bold-font-family);
49
+ font-weight: var(--sys-text-style-caption-bold-weight);
50
+ line-height: var(--sys-text-style-caption-bold-line-height);
51
+ font-size: var(--sys-text-style-caption-bold-size);
47
52
  }
48
53
  }
49
54
 
50
55
  // States
51
56
  &:hover {
52
- color: var(--comp-link-hover-color);
57
+ color: var(--sys-color-link-hovered);
53
58
  }
54
59
 
55
60
  &:active:not(:visited):not(.disabled) {
56
- color: var(--comp-link-clicked-color);
61
+ color: var(--sys-color-link-clicked);
57
62
  }
58
63
 
59
64
  &:visited:not(.standalone) {
60
- color: var(--comp-link-visited-color);
65
+ color: var(--sys-color-link-visited);
61
66
  }
62
67
 
63
68
  // Disabled state
64
69
  &.disabled,
65
70
  &[aria-disabled='true'] {
66
- color: var(--comp-link-disabled-color);
71
+ color: var(--sys-color-link-disabled);
67
72
  pointer-events: none;
68
73
  cursor: default;
69
74
  }
@@ -77,10 +82,10 @@
77
82
 
78
83
  // Icon sizing — implicit > i
79
84
  > i {
80
- min-width: var(--comp-link-icon-size);
81
- min-height: var(--comp-link-icon-size);
82
- max-width: var(--comp-link-icon-size);
83
- max-height: var(--comp-link-icon-size);
85
+ min-width: var(--sys-icon-md);
86
+ min-height: var(--sys-icon-md);
87
+ max-width: var(--sys-icon-md);
88
+ max-height: var(--sys-icon-md);
84
89
  flex-shrink: 0;
85
90
  }
86
91
  }
@@ -97,7 +97,7 @@
97
97
  font-family: var(--ref-font-family);
98
98
  font-size: var(--ref-font-size-sm);
99
99
  line-height: var(--ref-font-line-height-sm);
100
- color: var(--ref-color-grey-80);
100
+ color: var(--sys-color-text-secondary);
101
101
  }
102
102
 
103
103
  // Link inside body
@@ -108,48 +108,56 @@
108
108
  // Card mode
109
109
  &.card {
110
110
  padding: var(--ref-spacing-xs);
111
- border: 1px solid var(--ref-color-grey-20);
112
- border-radius: var(--ref-border-radius-md);
113
- background: var(--ref-color-white);
111
+ border: 1px solid var(--sys-color-border-interactive-default);
112
+ border-radius: var(--sys-radius-inner);
113
+ background: var(--sys-color-surface-default);
114
114
  transition: border-color 0.2s ease-in-out;
115
115
 
116
116
  &:hover:not(:has(input:disabled)):not(.locked) {
117
- border-color: var(--ref-color-grey-40);
117
+ border-color: var(--sys-color-border-interactive-hovered);
118
118
  }
119
119
 
120
- // Checked card
120
+ // Checked card. The card border sits on the -150 shade; the radio glyph above
121
+ // stays on -100, which is what the frame renders at 1:1.
121
122
  &:has(input:checked) {
122
- border-color: var(--ref-color-electric-blue-100);
123
+ border-color: var(--sys-color-border-interactive-active);
123
124
  }
124
125
 
125
126
  // Disabled card (not locked — locked has own styles)
126
127
  &:has(input:disabled):not(.locked) {
127
- border-color: var(--ref-color-grey-20);
128
+ border-color: var(--sys-color-border-interactive-disabled);
128
129
  }
129
130
 
130
- // Error card — compound selectors override :has(input:checked) specificity
131
+ // Disabled + checked
132
+ &:has(input:disabled):has(input:checked):not(.locked) {
133
+ border-color: var(--sys-color-border-interactive-active-disabled);
134
+ }
135
+
136
+ // Error card — compound selectors override :has(input:checked) specificity.
137
+ // One red for every interaction state: the frame has no error-hovered token and
138
+ // renders default, hovered and pressed identically.
131
139
  &.error,
132
140
  &.error:has(input:checked) {
133
- border-color: var(--ref-color-red-100);
141
+ border-color: var(--sys-color-border-error);
134
142
  }
135
143
 
136
144
  &.error:hover:not(:has(input:disabled)) {
137
- border-color: var(--ref-color-red-60);
145
+ border-color: var(--sys-color-border-error);
138
146
  }
139
147
 
140
148
  // Locked card
141
149
  &.locked {
142
150
  cursor: default;
143
- background: var(--ref-color-purple-10);
144
- border-color: var(--ref-color-purple-20);
151
+ background: var(--sys-color-surface-featurelock);
152
+ border-color: var(--sys-color-border-featurelock);
145
153
 
146
154
  &:hover {
147
- border-color: var(--ref-color-purple-40);
155
+ border-color: var(--sys-color-border-featurelock);
148
156
  }
149
157
 
150
158
  // Lock icon replaces radio indicator
151
159
  > i.ap-icon-feature-lock {
152
- color: var(--ref-color-purple-100);
160
+ color: var(--sys-color-icon-featurelock);
153
161
  @include m.fixed-size(16px);
154
162
  flex-shrink: 0;
155
163
  margin-top: 1px;
@@ -182,7 +190,7 @@
182
190
  font-size: var(--ref-font-size-sm);
183
191
  font-weight: var(--ref-font-weight-bold);
184
192
  line-height: var(--ref-font-line-height-sm);
185
- color: var(--ref-color-grey-100);
193
+ color: var(--sys-color-text-interactive-default);
186
194
  flex: 1;
187
195
  min-width: 0;
188
196
  }
@@ -190,11 +198,11 @@
190
198
  // Info icon (tooltip anchor in header)
191
199
  .ap-radio-card-info {
192
200
  @include m.fixed-size(16px);
193
- color: var(--ref-color-grey-60);
201
+ color: var(--sys-color-icon-subtle);
194
202
  flex-shrink: 0;
195
203
  cursor: pointer;
196
204
 
197
205
  &:hover {
198
- color: var(--ref-color-grey-80);
206
+ color: var(--sys-color-text-secondary);
199
207
  }
200
208
  }