@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
@@ -3,8 +3,8 @@
3
3
 
4
4
  // Container
5
5
  .ap-action-dropdown {
6
- background-color: var(--comp-action-dropdown-background-color, var(--ref-color-white));
7
- border-radius: var(--comp-action-dropdown-border-radius, var(--ref-border-radius-md));
6
+ background-color: var(--sys-color-surface-default);
7
+ border-radius: var(--sys-radius-inner);
8
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
9
  padding: var(--comp-action-dropdown-padding, var(--ref-spacing-xxs));
10
10
  outline: none;
@@ -17,7 +17,9 @@
17
17
  }
18
18
 
19
19
  &:focus {
20
- outline: 2px solid var(--comp-action-dropdown-item-background-color-focused, var(--ref-color-electric-blue-10));
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);
21
23
  outline-offset: 2px;
22
24
  }
23
25
  }
@@ -31,7 +33,7 @@
31
33
  padding: var(--comp-action-dropdown-item-padding, var(--ref-spacing-xxs) var(--ref-spacing-xs));
32
34
  border: none;
33
35
  background: transparent;
34
- color: var(--comp-action-dropdown-item-text-color, var(--ref-color-grey-100));
36
+ color: var(--sys-color-text-interactive-default);
35
37
  cursor: pointer;
36
38
  font-family: var(--ref-font-family);
37
39
  font-size: var(--comp-action-dropdown-item-text-size, var(--ref-font-size-sm));
@@ -43,7 +45,7 @@
43
45
  > i {
44
46
  @include m.fixed-size(16px);
45
47
  flex-shrink: 0;
46
- color: var(--ref-color-grey-100);
48
+ color: var(--sys-color-icon-interactive-default);
47
49
 
48
50
  // Start icon = first child
49
51
  &:first-child {
@@ -53,18 +55,18 @@
53
55
  // End icon = last child (but not the only child)
54
56
  &:last-child:not(:first-child) {
55
57
  margin-left: var(--comp-action-dropdown-item-icon-spacing, var(--ref-spacing-xs));
56
- color: var(--ref-color-grey-60);
58
+ color: var(--sys-color-icon-subtle);
57
59
  }
58
60
  }
59
61
 
60
62
  &:hover {
61
- background-color: var(--comp-action-dropdown-item-background-color-hover, var(--ref-color-grey-05));
63
+ background-color: var(--sys-color-surface-interactive-hovered);
62
64
  }
63
65
 
64
66
  &:focus,
65
67
  &.focused {
66
68
  outline: none;
67
- background-color: var(--comp-action-dropdown-item-background-color-focused, var(--ref-color-electric-blue-10));
69
+ background-color: var(--sys-color-surface-interactive-clicked);
68
70
  }
69
71
 
70
72
  &:disabled {
@@ -84,35 +86,38 @@
84
86
 
85
87
  // Red mode (destructive action)
86
88
  &.red-mode {
87
- color: var(--comp-action-dropdown-item-text-color-red-mode, var(--ref-color-red-100));
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);
88
93
 
89
94
  > i {
90
95
  color: inherit;
91
96
  }
92
97
 
93
98
  &:hover {
94
- background-color: var(--comp-action-dropdown-item-background-color-red-mode-hover, var(--ref-color-red-10));
99
+ background-color: var(--ref-color-red-10);
95
100
  }
96
101
 
97
102
  &:focus,
98
103
  &.focused {
99
- background-color: var(--comp-action-dropdown-item-background-color-red-mode-focused, var(--ref-color-red-10));
104
+ background-color: var(--ref-color-red-20);
100
105
  }
101
106
  }
102
107
 
103
108
  // Feature lock
104
109
  &.feature-lock {
105
110
  > i:last-child {
106
- color: var(--ref-color-purple-100);
111
+ color: var(--sys-color-icon-featurelock);
107
112
  }
108
113
 
109
114
  &:hover {
110
- background-color: var(--comp-action-dropdown-item-background-color-feature-lock-hover, var(--ref-color-purple-10));
115
+ background-color: var(--sys-color-surface-interactive-featurelock-active-hovered);
111
116
  }
112
117
 
113
118
  &:focus,
114
119
  &.focused {
115
- background-color: var(--comp-action-dropdown-item-background-color-feature-lock-focused, var(--ref-color-purple-10));
120
+ background-color: var(--sys-color-surface-interactive-featurelock-active-clicked);
116
121
  }
117
122
  }
118
123
 
@@ -150,7 +155,7 @@
150
155
 
151
156
  // Description
152
157
  .ap-action-dropdown-item-description {
153
- color: var(--comp-action-dropdown-item-description-color, var(--ref-color-grey-60));
158
+ color: var(--sys-color-text-secondary);
154
159
  font-size: var(--comp-action-dropdown-item-description-size, var(--ref-font-size-xs));
155
160
  line-height: var(--comp-action-dropdown-item-description-line-height, var(--ref-line-height-xs));
156
161
  }
@@ -158,6 +163,6 @@
158
163
  // Divider
159
164
  .ap-action-dropdown-divider {
160
165
  height: 1px;
161
- background-color: var(--comp-action-dropdown-divider-color, var(--ref-color-grey-10));
166
+ background-color: var(--sys-color-border-default);
162
167
  margin: var(--comp-action-dropdown-divider-margin, var(--ref-spacing-xxs) 0);
163
168
  }
@@ -4,25 +4,26 @@
4
4
  display: inline-flex;
5
5
  align-items: center;
6
6
  justify-content: center;
7
- padding: 0 var(--comp-badge-padding-right) 0 var(--comp-badge-padding-left);
8
- font-weight: var(--comp-badge-text-style-font-weight);
9
- font-family: var(--comp-badge-text-style-font-family);
10
- line-height: var(--comp-badge-text-style-line-height);
11
- font-size: var(--comp-badge-text-style-size);
12
- height: var(--comp-badge-height);
13
- max-height: var(--comp-badge-height);
7
+ 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);
13
+ height: var(--ref-font-line-height-xs);
14
+ max-height: var(--ref-font-line-height-xs);
14
15
  border-radius: 2px;
15
16
  white-space: nowrap;
16
17
  box-sizing: border-box;
17
18
 
18
19
  &.blue {
19
- background-color: var(--comp-badge-blue-background-color);
20
- color: var(--comp-badge-blue-color);
20
+ background-color: var(--sys-color-surface-information);
21
+ color: var(--sys-color-text-information);
21
22
  }
22
23
 
23
24
  &.orange {
24
25
  text-transform: uppercase;
25
- background-color: var(--comp-badge-orange-background-color);
26
- color: var(--comp-badge-orange-color);
26
+ background-color: var(--sys-color-surface-notification);
27
+ color: var(--sys-color-text-on-color);
27
28
  }
28
29
  }
@@ -48,25 +48,32 @@
48
48
 
49
49
  // Primary variants
50
50
  &.primary {
51
- color: var(--ref-color-white);
51
+ color: var(--sys-color-text-on-color);
52
52
 
53
53
  &.orange {
54
- @include btn.btn-primary-color('orange');
54
+ @include btn.btn-primary-color('orange', $loading-shade: 20, $focus-shade: 80);
55
55
  }
56
56
 
57
57
  &.blue {
58
- @include btn.btn-primary-color('electric-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
+ );
59
66
  }
60
67
  }
61
68
 
62
69
  // Secondary variants
63
70
  &.secondary {
64
71
  &.orange {
65
- @include btn.btn-secondary-color('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);
66
73
  }
67
74
 
68
75
  &.blue {
69
- @include btn.btn-secondary-color('electric-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);
70
77
  }
71
78
  }
72
79
 
@@ -75,7 +82,44 @@
75
82
  background: transparent;
76
83
 
77
84
  &.grey {
78
- @include btn.btn-ghost-color('grey', $text-color-shade: 80, $hover-bg-shade: '05', $active-bg-shade: 10);
85
+ // Figma binds the hover and pressed surfaces to the sys interactive-surface ramp.
86
+ color: var(--ref-color-grey-80);
87
+
88
+ ap-symbol {
89
+ color: var(--ref-color-grey-80);
90
+ }
91
+
92
+ &:hover {
93
+ background-color: var(--sys-color-surface-interactive-hovered);
94
+ }
95
+
96
+ &:active:not(:disabled) {
97
+ background-color: var(--sys-color-surface-interactive-clicked);
98
+ }
99
+
100
+ &:focus:not(:disabled):not(:active) {
101
+ background-color: var(--sys-color-surface-interactive-hovered);
102
+ }
103
+
104
+ &:disabled {
105
+ color: var(--ref-color-grey-40);
106
+
107
+ ap-symbol {
108
+ color: var(--ref-color-grey-40);
109
+ }
110
+ }
111
+
112
+ &.loading:not(.locked) {
113
+ color: var(--ref-color-grey-40);
114
+
115
+ ap-symbol {
116
+ color: var(--ref-color-grey-40);
117
+ }
118
+ }
119
+
120
+ .loading-bar {
121
+ background-color: var(--ref-color-grey-80);
122
+ }
79
123
  }
80
124
 
81
125
  &.blue {
@@ -96,25 +140,59 @@
96
140
  background: var(--ref-color-white);
97
141
 
98
142
  &.grey {
99
- border: 1px solid var(--ref-color-grey-20);
100
- @include btn.btn-stroked-color(
101
- 'grey',
102
- $text-color-shade: 80,
103
- $border-color-shade: 20,
104
- $hover-border-shade: 40,
105
- $active-border-shade: 60,
106
- $focus-border-shade: 20
107
- );
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
+ }
152
+
153
+ &:hover {
154
+ border-color: var(--sys-color-border-interactive-hovered);
155
+ }
156
+
157
+ &:active:not(:disabled) {
158
+ border-color: var(--sys-color-border-interactive-clicked);
159
+ }
160
+
161
+ &:focus:not(:disabled):not(:active) {
162
+ border-color: var(--sys-color-border-interactive-hovered);
163
+ }
164
+
165
+ &:disabled {
166
+ border-color: var(--sys-color-border-interactive-disabled);
167
+ color: var(--ref-color-grey-40);
168
+
169
+ ap-symbol {
170
+ color: var(--ref-color-grey-40);
171
+ }
172
+ }
173
+
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
+ }
181
+ }
182
+
183
+ .loading-bar {
184
+ background-color: var(--ref-color-grey-80);
185
+ }
108
186
  }
109
187
 
110
188
  &.blue {
111
189
  border: 1px solid var(--ref-color-electric-blue-60);
112
- @include btn.btn-stroked-color('electric-blue');
190
+ @include btn.btn-stroked-color('electric-blue', $text-color-shade: 150, $focus-border-shade: 80, $disabled-shade: 40, $loading-border-shade: 40);
113
191
  }
114
192
 
115
193
  &.red {
116
194
  border: 1px solid var(--ref-color-red-60);
117
- @include btn.btn-stroked-color('red');
195
+ @include btn.btn-stroked-color('red', $text-color-shade: 150, $focus-border-shade: 80, $disabled-shade: 40, $loading-border-shade: 40);
118
196
  }
119
197
  }
120
198
 
@@ -4,7 +4,7 @@
4
4
  .ap-checkbox-container {
5
5
  display: flex;
6
6
  align-items: center;
7
- gap: var(--ref-spacing-xxs);
7
+ gap: var(--sys-spacing-inline-icon-default);
8
8
  cursor: pointer;
9
9
 
10
10
  // Hide native checkbox input (accessible)
@@ -17,7 +17,10 @@
17
17
  width: 100%;
18
18
  }
19
19
 
20
- // No-label variant: larger hit area with background feedback
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
24
  &:not(:has(> span:not(:empty))) {
22
25
  padding: 10px;
23
26
  border-radius: var(--ref-border-radius-md);
@@ -52,9 +55,9 @@
52
55
  justify-content: center;
53
56
  align-items: center;
54
57
  @include m.fixed-size(16px);
55
- border-radius: var(--sys-border-radius-sm);
56
- border: 1px solid var(--ref-color-grey-60);
57
- background: var(--ref-color-white);
58
+ border-radius: var(--sys-radius-inner);
59
+ border: 1px solid var(--sys-color-border-input-default);
60
+ background: var(--sys-color-surface-input-default);
58
61
  box-sizing: border-box;
59
62
  flex-shrink: 0;
60
63
  transition:
@@ -70,7 +73,7 @@
70
73
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M14.238 3.337a.92.92 0 0 1 .025 1.301l-7.7 8a.92.92 0 0 1-1.326 0l-3.5-3.636a.92.92 0 1 1 1.326-1.276L5.9 10.674l7.037-7.312a.92.92 0 0 1 1.301-.025' clip-rule='evenodd' fill='white'/%3E%3C/svg%3E");
71
74
  mask-size: contain;
72
75
  mask-repeat: no-repeat;
73
- background-color: var(--ref-color-white);
76
+ background-color: var(--sys-color-icon-on-color);
74
77
  }
75
78
 
76
79
  // Indeterminate dash via CSS
@@ -79,24 +82,24 @@
79
82
  display: none;
80
83
  width: 8px;
81
84
  height: 1.5px;
82
- background: var(--ref-color-white);
85
+ background: var(--sys-color-icon-on-color);
83
86
  }
84
87
  }
85
88
 
86
89
  // Hover state
87
90
  &:hover:not(:has(input:disabled)) > i {
88
- border-color: var(--ref-color-grey-80);
91
+ border-color: var(--sys-color-border-input-hovered);
89
92
  }
90
93
 
91
94
  // Active state
92
95
  &:active:not(:has(input:disabled)) > i {
93
- border-color: var(--ref-color-grey-100);
96
+ border-color: var(--sys-color-border-input-clicked);
94
97
  }
95
98
 
96
99
  // Checked state — show checkmark
97
100
  &:has(input:checked) > i {
98
- background: var(--ref-color-electric-blue-100);
99
- border-color: var(--ref-color-electric-blue-100);
101
+ background: var(--sys-color-surface-input-active);
102
+ border-color: var(--sys-color-surface-input-active);
100
103
 
101
104
  &::after {
102
105
  display: block;
@@ -105,33 +108,33 @@
105
108
 
106
109
  // Checked hover
107
110
  &:hover:not(:has(input:disabled)):has(input:checked) > i {
108
- background: var(--ref-color-electric-blue-80);
109
- border-color: var(--ref-color-electric-blue-100);
111
+ background: var(--sys-color-surface-input-active-hovered);
112
+ border-color: var(--sys-color-surface-input-active-hovered);
110
113
  }
111
114
 
112
115
  // Checked active
113
116
  &:active:not(:has(input:disabled)):has(input:checked) > i {
114
- background: var(--ref-color-electric-blue-60);
115
- border-color: var(--ref-color-electric-blue-100);
117
+ background: var(--sys-color-surface-input-active-clicked);
118
+ border-color: var(--sys-color-surface-input-active-clicked);
116
119
  }
117
120
 
118
121
  // Disabled state
119
122
  &:has(input:disabled) > i {
120
- background: var(--ref-color-grey-10);
121
- border-color: var(--ref-color-grey-20);
123
+ background: var(--sys-color-surface-input-disabled);
124
+ border-color: var(--sys-color-border-input-disabled);
122
125
  pointer-events: none;
123
126
  }
124
127
 
125
128
  // Disabled + checked
126
129
  &:has(input:disabled:checked) > i {
127
- background: var(--ref-color-grey-20);
128
- border-color: var(--ref-color-grey-20);
130
+ background: var(--sys-color-surface-input-active-disabled);
131
+ border-color: var(--sys-color-surface-input-active-disabled);
129
132
  }
130
133
 
131
134
  // Indeterminate state (class on container)
132
135
  &.indeterminate > i {
133
- background: var(--ref-color-electric-blue-100);
134
- border-color: var(--ref-color-electric-blue-100);
136
+ background: var(--sys-color-surface-input-active);
137
+ border-color: var(--sys-color-surface-input-active);
135
138
 
136
139
  &::before {
137
140
  display: block;
@@ -140,14 +143,14 @@
140
143
 
141
144
  // Indeterminate hover
142
145
  &.indeterminate:hover:not(:has(input:disabled)) > i {
143
- background: var(--ref-color-electric-blue-80);
144
- border-color: var(--ref-color-electric-blue-100);
146
+ background: var(--sys-color-surface-input-active-hovered);
147
+ border-color: var(--sys-color-surface-input-active-hovered);
145
148
  }
146
149
 
147
150
  // Indeterminate disabled
148
151
  &.indeterminate:has(input:disabled) > i {
149
- background: var(--ref-color-grey-20);
150
- border-color: var(--ref-color-grey-20);
152
+ background: var(--sys-color-surface-input-active-disabled);
153
+ border-color: var(--sys-color-surface-input-active-disabled);
151
154
  }
152
155
 
153
156
  // Focus ring (any focus on hover-capable devices, matching original component)
@@ -159,18 +162,18 @@
159
162
 
160
163
  // Error state
161
164
  &.error > i {
162
- border-color: var(--ref-color-red-100);
165
+ border-color: var(--sys-color-border-error);
163
166
  }
164
167
 
165
168
  // Label — direct span child
166
169
  > span {
167
170
  display: flex;
168
171
  align-items: center;
169
- font-family: var(--comp-forms-label-font-family);
170
- font-size: var(--comp-forms-label-size);
171
- font-weight: var(--comp-forms-label-font-weight);
172
- line-height: var(--comp-forms-label-line-height);
173
- color: var(--comp-forms-label-text-color);
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);
176
+ color: var(--sys-color-text-interactive-default);
174
177
  user-select: none;
175
178
 
176
179
  &:empty {
@@ -180,7 +183,7 @@
180
183
 
181
184
  // Label: disabled
182
185
  &:has(input:disabled) > span {
183
- color: var(--ref-color-grey-60);
186
+ color: var(--sys-color-text-interactive-disabled);
184
187
  cursor: default;
185
188
  }
186
189
 
@@ -5,34 +5,34 @@
5
5
  align-items: center;
6
6
  justify-content: center;
7
7
  width: fit-content;
8
- border-radius: var(--comp-counter-border-radius);
8
+ border-radius: 2px;
9
9
  padding: 0 2px;
10
10
  box-sizing: border-box;
11
11
 
12
12
  // Normal size (default)
13
13
  &.normal {
14
- font-weight: var(--comp-counter-text-style-font-weight);
15
- font-family: var(--comp-counter-text-style-font-family);
16
- line-height: var(--comp-counter-text-style-line-height);
17
- font-size: var(--comp-counter-text-style-size);
18
- height: var(--comp-counter-height);
19
- max-height: var(--comp-counter-height);
14
+ font-family: var(--sys-text-style-caption-bold-font-family);
15
+ font-size: var(--sys-text-style-caption-bold-size);
16
+ font-weight: var(--sys-text-style-caption-bold-weight);
17
+ line-height: var(--sys-text-style-caption-bold-line-height);
18
+ height: var(--ref-font-line-height-xs);
19
+ max-height: var(--ref-font-line-height-xs);
20
20
  }
21
21
 
22
22
  // Big size
23
23
  &.big {
24
- font-weight: var(--comp-counter-big-text-style-font-weight);
25
- font-family: var(--comp-counter-big-text-style-font-family);
26
- line-height: var(--comp-counter-big-text-style-line-height);
27
- font-size: var(--comp-counter-big-text-style-size);
28
- height: var(--comp-counter-big-height);
29
- max-height: var(--comp-counter-big-height);
24
+ font-family: var(--sys-text-style-body-bold-font-family);
25
+ font-size: var(--sys-text-style-body-bold-size);
26
+ font-weight: var(--sys-text-style-body-bold-weight);
27
+ line-height: var(--sys-text-style-body-bold-line-height);
28
+ height: var(--ref-font-line-height-sm);
29
+ max-height: var(--ref-font-line-height-sm);
30
30
  }
31
31
 
32
32
  // Blue color (background by default)
33
33
  &.blue {
34
- color: var(--comp-counter-blue-color);
35
- background-color: var(--comp-counter-blue-with-background-background-color);
34
+ color: var(--sys-color-text-information);
35
+ background-color: var(--sys-color-surface-information);
36
36
 
37
37
  &.no-bg {
38
38
  background-color: transparent;
@@ -41,36 +41,37 @@
41
41
 
42
42
  // Orange color (background by default)
43
43
  &.orange {
44
- color: var(--comp-counter-orange-with-background-color);
45
- background-color: var(--comp-counter-orange-with-background-background-color);
44
+ color: var(--sys-color-text-on-color);
45
+ background-color: var(--sys-color-surface-notification);
46
46
 
47
47
  &.no-bg {
48
- color: var(--comp-counter-orange-color);
48
+ color: var(--sys-color-text-notification);
49
49
  background-color: transparent;
50
50
  }
51
51
  }
52
52
 
53
53
  // Grey color (background by default)
54
54
  &.grey {
55
- color: var(--comp-counter-grey-color);
56
- background-color: var(--comp-counter-grey-with-background-background-color);
55
+ color: var(--sys-color-text-default);
56
+ background-color: var(--sys-color-surface-tertiary);
57
57
 
58
58
  &.no-bg {
59
59
  background-color: transparent;
60
60
  }
61
61
  }
62
62
 
63
+
63
64
  // Notification style
64
65
  &.notif {
65
66
  padding: 0 4px;
66
- border-radius: var(--comp-counter-notif-border-radius);
67
- font-size: var(--comp-counter-text-style-size);
68
- font-weight: var(--comp-counter-text-style-font-weight);
69
- font-family: var(--comp-counter-text-style-font-family);
70
- line-height: var(--comp-counter-text-style-line-height);
71
- min-width: var(--comp-counter-notif-min-width);
72
- height: var(--comp-counter-notif-min-width);
73
- color: var(--comp-counter-notif-color);
74
- background-color: var(--comp-counter-notif-background-color);
67
+ border-radius: var(--ref-font-line-height-xs);
68
+ font-family: var(--sys-text-style-caption-bold-font-family);
69
+ font-size: var(--sys-text-style-caption-bold-size);
70
+ font-weight: var(--sys-text-style-caption-bold-weight);
71
+ line-height: var(--sys-text-style-caption-bold-line-height);
72
+ min-width: var(--ref-font-line-height-xs);
73
+ height: var(--ref-font-line-height-xs);
74
+ color: var(--sys-color-text-on-color);
75
+ background-color: var(--sys-color-surface-notification);
75
76
  }
76
77
  }