@agorapulse/ui-theme 22.0.1 → 22.0.3-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.3-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
@@ -6,8 +6,8 @@
6
6
  flex-direction: column;
7
7
  width: 370px;
8
8
  max-height: 400px;
9
- background: var(--ref-color-white);
10
- border-radius: var(--sys-border-radius-sm);
9
+ background: var(--sys-color-surface-default);
10
+ border-radius: var(--sys-radius-inner);
11
11
  box-shadow: var(--comp-action-dropdown-box-shadow);
12
12
  box-sizing: border-box;
13
13
  overflow: hidden;
@@ -26,7 +26,7 @@
26
26
  font-size: var(--ref-font-size-md);
27
27
  font-weight: var(--ref-font-weight-bold);
28
28
  line-height: var(--sys-text-style-h3-line-height);
29
- color: var(--ref-color-grey-100);
29
+ color: var(--sys-color-text-default);
30
30
  }
31
31
  }
32
32
 
@@ -36,7 +36,7 @@
36
36
  align-items: center;
37
37
  gap: var(--ref-spacing-xxs);
38
38
  padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
39
- border-bottom: 1px solid var(--ref-color-grey-10);
39
+ border-bottom: 1px solid var(--sys-color-border-default);
40
40
 
41
41
  > i {
42
42
  @include m.fixed-size(16px);
@@ -51,7 +51,7 @@
51
51
  font-family: var(--ref-font-family);
52
52
  font-size: var(--sys-text-style-body-size);
53
53
  line-height: var(--sys-text-style-body-line-height);
54
- color: var(--ref-color-grey-100);
54
+ color: var(--sys-color-text-default);
55
55
  background: transparent;
56
56
 
57
57
  &::placeholder {
@@ -71,7 +71,7 @@
71
71
  // Selected items section (pinned at top)
72
72
  .ap-selection-dropdown-selected {
73
73
  margin-bottom: var(--ref-spacing-xxs);
74
- border-bottom: 1px solid var(--ref-color-grey-10);
74
+ border-bottom: 1px solid var(--sys-color-border-default);
75
75
  padding-bottom: var(--ref-spacing-xxs);
76
76
 
77
77
  .ap-selection-dropdown-item > span {
@@ -93,17 +93,19 @@
93
93
  font-family: var(--ref-font-family);
94
94
  font-size: var(--sys-text-style-body-size);
95
95
  line-height: var(--sys-text-style-body-line-height);
96
- color: var(--ref-color-grey-100);
96
+ color: var(--sys-color-text-interactive-default);
97
97
  text-align: left;
98
98
  box-sizing: border-box;
99
99
  transition: background-color 0.1s;
100
100
 
101
+ // Neutral hover and pressed move off the blue tints onto the grey ramp
102
+ // (V2 Style Guide - Tokens, node 1204:10802); the blues now mean "selected".
101
103
  &:hover:not(:disabled):not(.locked) {
102
- background: var(--ref-color-electric-blue-10);
104
+ background: var(--sys-color-surface-interactive-hovered);
103
105
  }
104
106
 
105
107
  &:active:not(:disabled):not(.locked) {
106
- background: var(--ref-color-electric-blue-20);
108
+ background: var(--sys-color-surface-interactive-clicked);
107
109
  }
108
110
 
109
111
  &:focus-visible {
@@ -111,19 +113,52 @@
111
113
  outline-offset: -2px;
112
114
  }
113
115
 
116
+ // Selected row — absent from this layer before, so the whole ramp is new here.
117
+ &.selected {
118
+ background: var(--sys-color-surface-interactive-active);
119
+ color: var(--sys-color-text-interactive-active);
120
+ font-weight: var(--sys-text-style-body-bold-weight);
121
+
122
+ > i.ap-icon-check {
123
+ margin-left: auto;
124
+ color: var(--sys-color-icon-interactive-active);
125
+ @include m.fixed-size(16px);
126
+ }
127
+
128
+ &:hover:not(:disabled) {
129
+ background: var(--sys-color-surface-interactive-active-hovered);
130
+ }
131
+
132
+ &:active:not(:disabled) {
133
+ background: var(--sys-color-surface-interactive-active-clicked);
134
+ }
135
+
136
+ &:disabled {
137
+ color: var(--sys-color-text-interactive-active-disabled);
138
+ }
139
+ }
140
+
114
141
  &:disabled {
115
142
  pointer-events: none;
116
- color: var(--ref-color-grey-40);
143
+ color: var(--sys-color-text-interactive-disabled);
117
144
  }
118
145
 
119
- // Locked item
146
+ // Locked item — the design gives it purple hover and pressed surfaces.
120
147
  &.locked {
121
148
  cursor: default;
122
- color: var(--ref-color-grey-60);
149
+ color: var(--sys-color-text-interactive-default);
150
+
151
+ &:hover {
152
+ background: var(--sys-color-surface-interactive-featurelock-active-hovered);
153
+ }
154
+
155
+ &:active {
156
+ background: var(--sys-color-surface-interactive-featurelock-active-clicked);
157
+ }
123
158
 
124
159
  > i.ap-icon-feature-lock {
125
160
  margin-left: auto;
126
- color: var(--ref-color-purple-100);
161
+ color: var(--sys-color-icon-featurelock);
127
162
  @include m.fixed-size(16px);
128
163
  }
129
164
  }
@@ -153,12 +188,14 @@
153
188
  align-items: center;
154
189
  gap: var(--ref-spacing-xs);
155
190
  padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
156
- border-top: 1px solid var(--ref-color-grey-10);
157
- background: var(--ref-color-grey-bg);
191
+ border-top: 1px solid var(--sys-color-border-default);
192
+ background: var(--sys-color-surface-secondary);
158
193
  font-family: var(--ref-font-family);
159
- font-size: var(--sys-text-style-body-size);
160
- font-weight: var(--ref-font-weight-bold);
161
- color: var(--ref-color-grey-100);
194
+ // `Caption - Bold` in the design: 12/16, not the 14/18 body the rows use.
195
+ font-size: var(--sys-text-style-caption-bold-size);
196
+ line-height: var(--sys-text-style-caption-bold-line-height);
197
+ font-weight: var(--sys-text-style-caption-bold-weight);
198
+ color: var(--sys-color-text-default);
162
199
  }
163
200
 
164
201
  // Empty state
@@ -167,7 +204,7 @@
167
204
  font-family: var(--ref-font-family);
168
205
  font-size: var(--ref-font-size-sm);
169
206
  line-height: var(--sys-text-style-body-line-height);
170
- color: var(--ref-color-grey-80);
207
+ color: var(--sys-color-text-secondary);
171
208
  font-style: italic;
172
209
  }
173
210
 
@@ -178,6 +215,6 @@
178
215
  justify-content: flex-start;
179
216
  height: 40px;
180
217
  padding: var(--ref-spacing-xs) var(--ref-spacing-sm);
181
- border-top: 1px solid var(--ref-color-grey-10);
218
+ border-top: 1px solid var(--sys-color-border-default);
182
219
  flex-shrink: 0;
183
220
  }
@@ -140,9 +140,9 @@
140
140
  width: max-content;
141
141
  font-family: var(--comp-snackbar-text-style-font-family);
142
142
  font-size: var(--comp-snackbar-text-style-size);
143
- font-weight: var(--comp-link-standalone-default-text-style-font-weight);
143
+ font-weight: var(--sys-text-style-body-bold-weight);
144
144
  line-height: var(--comp-snackbar-text-style-line-height);
145
- color: var(--comp-link-default-color);
145
+ color: var(--sys-color-link-default);
146
146
  text-decoration: none;
147
147
  cursor: pointer;
148
148
 
@@ -59,16 +59,26 @@
59
59
  }
60
60
  }
61
61
 
62
- // Primary color variants
62
+ // Primary color variants. The split button is a primary button with a dropdown
63
+ // attached, so it follows the `button/primary/*` spec rather than defining its own
64
+ // shades — Figma's "Component by component" frame has no split-button node.
65
+ // `$focus-shade` stays unset: nothing in the design covers focus here, so the
66
+ // existing focus ring below is kept.
63
67
  &.primary > button {
64
- color: var(--ref-color-white);
68
+ color: var(--sys-color-text-on-color);
65
69
  }
66
70
 
67
71
  &.primary.orange > button {
68
- @include btn.btn-primary-color('orange');
72
+ @include btn.btn-primary-color('orange', $loading-shade: 20);
69
73
  }
70
74
 
71
75
  &.primary.blue > button {
72
- @include btn.btn-primary-color('electric-blue');
76
+ @include btn.btn-primary-color(
77
+ 'electric-blue',
78
+ $default-shade: 150,
79
+ $hover-shade: 100,
80
+ $clicked-shade: 80,
81
+ $loading-shade: 20
82
+ );
73
83
  }
74
84
  }
@@ -7,15 +7,13 @@
7
7
  display: inline-flex;
8
8
  align-items: center;
9
9
  justify-content: center;
10
- padding: 0 var(--comp-status-padding-horizontal);
11
- gap: var(--comp-status-spacing);
10
+ padding: 0 var(--sys-spacing-container-sm);
11
+ gap: var(--sys-spacing-inline-icon-small);
12
12
  width: fit-content;
13
- height: var(--comp-status-height);
14
- border-radius: var(--comp-status-height);
15
- color: var(--comp-status-color);
16
- font-family: var(--comp-status-font-family);
17
- font-size: var(--comp-status-font-size);
18
- line-height: var(--comp-status-line-height);
13
+ height: var(--sys-height-chip);
14
+ border-radius: var(--sys-height-chip);
15
+ color: var(--sys-color-text-default);
16
+ @include m.text-style('caption');
19
17
  box-sizing: border-box;
20
18
  white-space: nowrap;
21
19
 
@@ -33,51 +31,56 @@
33
31
  display: none;
34
32
  }
35
33
 
36
- &.blue {
37
- background-color: var(--comp-status-blue-background-color);
34
+ // Variants are named by meaning, not by hue — surface and dot both come from the
35
+ // semantic system tokens (V2 Style Guide - Tokens, node 1178:11133).
36
+ &.success {
37
+ background-color: var(--sys-color-surface-success);
38
38
 
39
39
  &::before {
40
- background-color: var(--comp-status-blue-dot-background-color);
40
+ background-color: var(--sys-color-icon-success);
41
41
  }
42
42
  }
43
43
 
44
- &.green {
45
- background-color: var(--comp-status-green-background-color);
44
+ &.error {
45
+ background-color: var(--sys-color-surface-error);
46
46
 
47
47
  &::before {
48
- background-color: var(--comp-status-green-dot-background-color);
48
+ background-color: var(--sys-color-icon-error);
49
49
  }
50
50
  }
51
51
 
52
- &.orange {
53
- background-color: var(--comp-status-orange-background-color);
52
+ &.warning {
53
+ background-color: var(--sys-color-surface-warning);
54
54
 
55
55
  &::before {
56
- background-color: var(--comp-status-orange-dot-background-color);
56
+ background-color: var(--sys-color-icon-warning);
57
57
  }
58
58
  }
59
59
 
60
- &.tagOrange {
61
- background-color: var(--comp-status-tag-orange-background-color);
60
+ &.information {
61
+ background-color: var(--sys-color-surface-information);
62
62
 
63
63
  &::before {
64
- background-color: var(--comp-status-tag-orange-dot-background-color);
64
+ background-color: var(--sys-color-icon-information);
65
65
  }
66
66
  }
67
67
 
68
- &.grey {
69
- background-color: var(--comp-status-grey-background-color);
68
+ &.default {
69
+ background-color: var(--sys-color-surface-category-grey);
70
70
 
71
71
  &::before {
72
- background-color: var(--comp-status-grey-dot-background-color);
72
+ background-color: var(--sys-color-icon-default);
73
73
  }
74
74
  }
75
75
 
76
- &.red {
77
- background-color: var(--comp-status-red-background-color);
76
+ // DEPRECATED — dropped from the design (node 1178:11133 shows 5 variants, not 6).
77
+ // No semantic token covers it, so it stays on the raw brand-orange refs.
78
+ // Kept only so external consumers keep working; do not use in new code.
79
+ &.orange {
80
+ background-color: var(--ref-color-orange-10);
78
81
 
79
82
  &::before {
80
- background-color: var(--comp-status-red-dot-background-color);
83
+ background-color: var(--ref-color-orange-100);
81
84
  }
82
85
  }
83
86
  }
@@ -1,4 +1,8 @@
1
1
  // Agorapulse Tabs Styles
2
+ //
3
+ // Colours come from the semantic `interactive/*` state matrix
4
+ // (V2 Style Guide - Tokens, node 1178:11217). Hover and pressed are expressed as a
5
+ // bottom border, not a tinted background — the design binds no surface for them.
2
6
 
3
7
  .ap-tabs {
4
8
  display: flex;
@@ -22,7 +26,7 @@
22
26
  .ap-tabs-nav {
23
27
  display: flex;
24
28
  align-items: center;
25
- border-bottom: 1px solid var(--comp-tabs-border-color);
29
+ border-bottom: 1px solid var(--sys-color-border-default);
26
30
  position: relative;
27
31
 
28
32
  // Scrollable tabs
@@ -42,31 +46,49 @@
42
46
  display: flex;
43
47
  align-items: center;
44
48
  justify-content: center;
45
- gap: var(--comp-tabs-tab-header-gap);
49
+ gap: var(--sys-spacing-container-sm);
46
50
  background: transparent;
47
51
  border: none;
48
52
  cursor: pointer;
49
- font-family: var(--comp-tabs-text-font-family);
53
+ font-family: var(--sys-text-style-body-font-family);
50
54
  text-align: center;
51
55
  position: relative;
52
56
  white-space: nowrap;
53
- padding: var(--comp-tabs-tab-padding);
54
- font-size: var(--comp-tabs-tab-font-size);
55
- line-height: var(--comp-tabs-tab-line-height);
56
- min-height: var(--comp-tabs-tab-min-height);
57
- color: var(--comp-tabs-tab-text-color-default);
58
- font-weight: var(--ref-font-weight-regular);
57
+ // No token covers 48px: the sys height scale stops at `control` (36px).
58
+ min-height: 48px;
59
+ padding: var(--sys-spacing-container-md) var(--sys-spacing-container-lg);
60
+ font-size: var(--sys-text-style-body-size);
61
+ line-height: var(--sys-text-style-body-line-height);
62
+ color: var(--sys-color-text-interactive-default);
63
+ font-weight: var(--sys-text-style-body-weight);
59
64
 
60
65
  // Icon — implicit > i
61
66
  > i {
62
67
  width: 16px;
63
68
  height: 16px;
64
69
  flex-shrink: 0;
70
+ color: var(--sys-color-icon-interactive-default);
65
71
  }
66
72
 
67
- // Hover state
68
- &:hover:not(:disabled):not(.active) {
69
- background-color: var(--comp-tabs-tab-hover-background-color);
73
+ // Shared bottom indicator: 2px for hover/pressed, 4px when active.
74
+ &::after {
75
+ content: '';
76
+ position: absolute;
77
+ bottom: -1px;
78
+ left: 0;
79
+ right: 0;
80
+ height: 2px;
81
+ background-color: transparent;
82
+ }
83
+
84
+ // Hover state — a border, no background
85
+ &:hover:not(:disabled):not(.active)::after {
86
+ background-color: var(--sys-color-border-interactive-hovered);
87
+ }
88
+
89
+ // Pressed state — a border, no background
90
+ &:active:not(:disabled):not(.active)::after {
91
+ background-color: var(--sys-color-border-interactive-clicked);
70
92
  }
71
93
 
72
94
  // Focus state
@@ -74,82 +96,67 @@
74
96
  outline: none;
75
97
  }
76
98
 
99
+ // The design specifies no focus treatment for tabs, so the ring is kept as it
100
+ // was — minus the tinted background, whose colour the design dropped.
77
101
  &:focus-visible:not(.active) {
78
102
  outline: none;
79
- box-shadow: inset 0 0 0 2px var(--comp-tabs-tab-focus-color);
80
- border-radius: var(--comp-tabs-tab-focus-border-radius);
81
- background-color: var(--comp-tabs-tab-focus-background-color);
82
- }
83
-
84
- // Active/pressed state
85
- &:active:not(:disabled):not(.active) {
86
- background-color: var(--comp-tabs-tab-active-background-color);
103
+ box-shadow: inset 0 0 0 2px var(--sys-color-border-interactive-active);
104
+ border-radius: var(--sys-radius-inner);
87
105
  }
88
106
 
89
107
  // Disabled state
90
108
  &:disabled,
91
109
  &.disabled {
92
110
  cursor: not-allowed;
93
- color: var(--comp-tabs-tab-text-color-disabled);
94
- opacity: 0.5;
111
+ color: var(--sys-color-text-interactive-disabled);
112
+
113
+ > i {
114
+ color: var(--sys-color-icon-interactive-disabled);
115
+ }
95
116
  }
96
117
 
97
118
  // Active tab
98
119
  &.active {
99
- color: var(--comp-tabs-tab-text-color-active);
120
+ color: var(--sys-color-text-interactive-active);
121
+ // Fakes bold without the reflow real bold would cause; Figma specifies
122
+ // `Body - Bold` here.
100
123
  text-shadow: 0.5px 0 0 currentColor;
101
124
 
102
- // Blue underline — pure CSS, no JS positioning needed
125
+ > i {
126
+ color: var(--sys-color-icon-interactive-active);
127
+ }
128
+
103
129
  &::after {
104
- content: '';
105
- position: absolute;
106
- bottom: -1px;
107
- left: 0;
108
- right: 0;
109
130
  height: 4px;
110
- background-color: var(--comp-tabs-tab-active-indicator-color);
131
+ background-color: var(--sys-color-border-interactive-active);
111
132
  }
112
133
 
113
134
  &:focus-visible {
114
135
  outline: none;
115
- box-shadow: inset 0 0 0 2px var(--comp-tabs-tab-focus-color);
116
- border-radius: var(--comp-tabs-tab-focus-border-radius);
136
+ box-shadow: inset 0 0 0 2px var(--sys-color-border-interactive-active);
137
+ border-radius: var(--sys-radius-inner);
117
138
  }
118
139
  }
119
140
 
120
- // Feature locked tab
141
+ // Feature locked tab — only the lock glyph and the active treatment differ.
142
+ // Hover and pressed reuse the shared grey borders above.
121
143
  &.feature-locked {
122
144
  // Only the lock icon (last <i>) gets feature-lock color;
123
145
  // start icon inherits text color like in Angular
124
146
  > i:last-of-type {
125
- color: var(--comp-tabs-tab-feature-lock-color);
126
- }
127
-
128
- &:hover:not(:disabled):not(.active) {
129
- background-color: var(--comp-tabs-tab-feature-locked-hover-background-color);
130
- }
131
-
132
- &:focus-visible:not(.active) {
133
- color: var(--comp-tabs-tab-text-color-feature-locked-focus);
134
- background-color: var(--comp-tabs-tab-feature-locked-focus-background-color);
135
- }
136
-
137
- &:active:not(:disabled):not(.active) {
138
- background-color: var(--comp-tabs-tab-feature-locked-active-background-color);
147
+ color: var(--sys-color-icon-featurelock);
139
148
  }
140
149
 
141
150
  &.active {
142
- color: var(--comp-tabs-tab-text-color-feature-locked-active);
151
+ color: var(--sys-color-text-featurelock);
143
152
  text-shadow: 0.5px 0 0 currentColor;
144
153
 
145
- &::after {
146
- background-color: var(--comp-tabs-tab-feature-locked-indicator-color);
154
+ > i:first-of-type {
155
+ color: var(--sys-color-icon-featurelock);
147
156
  }
148
157
 
149
- &:focus-visible {
150
- outline: none;
151
- box-shadow: inset 0 0 0 2px var(--comp-tabs-tab-focus-color);
152
- border-radius: var(--comp-tabs-tab-focus-border-radius);
158
+ &::after {
159
+ background-color: var(--sys-color-border-featurelock);
153
160
  }
154
161
  }
155
162
  }
@@ -160,7 +167,7 @@
160
167
  position: absolute;
161
168
  bottom: -1px;
162
169
  height: 4px;
163
- background-color: var(--comp-tabs-tab-active-indicator-color);
170
+ background-color: var(--sys-color-border-interactive-active);
164
171
  transition:
165
172
  transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
166
173
  width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
@@ -168,7 +175,7 @@
168
175
  transform-origin: left;
169
176
 
170
177
  &.feature-locked {
171
- background-color: var(--comp-tabs-tab-feature-locked-indicator-color);
178
+ background-color: var(--sys-color-border-featurelock);
172
179
  }
173
180
  }
174
181
 
@@ -181,6 +188,7 @@
181
188
  // Tab panel
182
189
  .ap-tabs-panel {
183
190
  display: none;
191
+ // 24px: no sys spacing token covers it (the container scale stops at 16px).
184
192
  padding: var(--ref-spacing-md) 0;
185
193
 
186
194
  &.active {
@@ -5,33 +5,29 @@
5
5
  display: inline-flex;
6
6
  align-items: center;
7
7
  justify-content: center;
8
- height: var(--comp-tag-height);
9
- max-height: var(--comp-tag-height);
8
+ height: var(--sys-height-chip);
9
+ max-height: var(--sys-height-chip);
10
10
  box-sizing: border-box;
11
- border-width: 1px;
12
- border-style: solid;
13
- padding: 0 var(--comp-tag-padding-right) 0 var(--comp-tag-padding-left);
14
- border-radius: var(--comp-tag-border-radius);
15
- gap: var(--ref-spacing-xxxs);
11
+ border: none;
12
+ padding: 0 var(--ref-spacing-xxxs);
13
+ border-radius: var(--sys-radius-inner);
14
+ gap: var(--sys-spacing-inline-icon-small);
16
15
  vertical-align: middle;
17
16
 
18
17
  // Text styles on container (span optional)
19
- font-size: var(--comp-tag-text-style-size);
20
- line-height: var(--comp-tag-text-style-line-height);
21
- font-weight: var(--comp-tag-text-style-font-weight);
22
- font-family: var(--comp-tag-text-style-font-family);
18
+ @include m.text-style('body');
23
19
  white-space: nowrap;
24
20
  text-decoration: none;
25
21
 
26
22
  // Auto-detect close button — tighter right padding
27
23
  &:has(> button) {
28
- padding: 0 calc(var(--comp-tag-closable-padding-right) - 1px) 0 var(--comp-tag-padding-left);
24
+ padding: 0 2px 0 var(--ref-spacing-xxxs);
29
25
  }
30
26
 
31
27
  // Mini size
32
28
  &.mini {
33
- height: var(--comp-tag-mini-height);
34
- padding: 0 var(--comp-tag-mini-padding-right) 0 var(--comp-tag-mini-padding-left);
29
+ height: 18px;
30
+ padding: 0 2px;
35
31
  }
36
32
 
37
33
  // Text truncation — use > span when combined with a close button
@@ -48,6 +44,8 @@
48
44
 
49
45
  // Close button with <i class="ap-icon-close"> inside
50
46
  > button {
47
+ // Action icon, deliberately neutral rather than tinted (Figma: color/icon/secondary)
48
+ color: var(--sys-color-icon-secondary);
51
49
  display: flex;
52
50
  justify-content: center;
53
51
  align-items: center;
@@ -98,62 +96,62 @@
98
96
 
99
97
  // Color variants
100
98
  &.blue {
101
- background-color: var(--comp-tag-blue-background-color);
102
- border-color: var(--comp-tag-blue-border-color);
103
- color: var(--comp-tag-blue-text-color);
99
+ background-color: var(--sys-color-surface-category-blue);
100
+ color: var(--sys-color-text-category-blue);
104
101
 
105
- > button {
106
- color: var(--comp-tag-blue-icon-color);
102
+ // Leading content icon carries the category colour (Figma: color/icon/category/*)
103
+ > i {
104
+ color: var(--sys-color-icon-category-blue);
107
105
  }
108
106
  }
109
107
 
110
108
  &.grey {
111
- background-color: var(--comp-tag-grey-background-color);
112
- border-color: var(--comp-tag-grey-border-color);
113
- color: var(--comp-tag-grey-text-color);
109
+ background-color: var(--sys-color-surface-category-grey);
110
+ color: var(--sys-color-text-category-grey);
114
111
 
115
- > button {
116
- color: var(--comp-tag-grey-icon-color);
112
+ // Leading content icon carries the category colour (Figma: color/icon/category/*)
113
+ > i {
114
+ color: var(--sys-color-icon-category-grey);
117
115
  }
118
116
  }
119
117
 
120
118
  &.tagOrange {
121
- background-color: var(--comp-tag-tag-orange-background-color);
122
- border-color: var(--comp-tag-tag-orange-border-color);
123
- color: var(--comp-tag-tag-orange-text-color);
119
+ background-color: var(--sys-color-surface-category-orange);
120
+ color: var(--sys-color-text-category-orange);
124
121
 
125
- > button {
126
- color: var(--comp-tag-tag-orange-icon-color);
122
+ // Leading content icon carries the category colour (Figma: color/icon/category/*)
123
+ > i {
124
+ color: var(--sys-color-icon-category-orange);
127
125
  }
128
126
  }
129
127
 
130
128
  &.menthol {
131
- background-color: var(--comp-tag-menthol-background-color);
132
- border-color: var(--comp-tag-menthol-border-color);
133
- color: var(--comp-tag-menthol-text-color);
129
+ background-color: var(--sys-color-surface-category-menthol);
130
+ color: var(--sys-color-text-category-menthol);
134
131
 
135
- > button {
136
- color: var(--comp-tag-menthol-icon-color);
132
+ // Leading content icon carries the category colour (Figma: color/icon/category/*)
133
+ > i {
134
+ color: var(--sys-color-icon-category-menthol);
137
135
  }
138
136
  }
139
137
 
140
138
  &.green {
141
- background-color: var(--comp-tag-green-background-color);
142
- border-color: var(--comp-tag-green-border-color);
143
- color: var(--comp-tag-green-text-color);
139
+ background-color: var(--sys-color-surface-category-green);
140
+ color: var(--sys-color-text-category-green);
144
141
 
145
- > button {
146
- color: var(--comp-tag-green-icon-color);
142
+ // Leading content icon carries the category colour (Figma: color/icon/category/*)
143
+ > i {
144
+ color: var(--sys-color-icon-category-green);
147
145
  }
148
146
  }
149
147
 
150
148
  &.red {
151
- background-color: var(--comp-tag-red-background-color);
152
- border-color: var(--comp-tag-red-border-color);
153
- color: var(--comp-tag-red-text-color);
149
+ background-color: var(--sys-color-surface-category-red);
150
+ color: var(--sys-color-text-category-red);
154
151
 
155
- > button {
156
- color: var(--comp-tag-red-icon-color);
152
+ // Leading content icon carries the category colour (Figma: color/icon/category/*)
153
+ > i {
154
+ color: var(--sys-color-icon-category-red);
157
155
  }
158
156
  }
159
157
  }
@@ -177,5 +175,5 @@
177
175
  .ap-tag-list {
178
176
  display: flex;
179
177
  flex-wrap: wrap;
180
- gap: var(--ref-spacing-xxs);
178
+ gap: var(--sys-spacing-container-sm);
181
179
  }