@agorapulse/ui-theme 22.0.6-beta.1 → 22.0.8

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 (61) hide show
  1. package/agorapulse-ui-theme-22.0.8.tgz +0 -0
  2. package/assets/desktop_variables.css +263 -346
  3. package/assets/mobile_variables.css +263 -346
  4. package/assets/style/_input.scss +0 -4
  5. package/assets/style/_select.scss +46 -75
  6. package/assets/style/_table.scss +118 -52
  7. package/assets/style/_tooltip.scss +19 -18
  8. package/assets/style/components-custom-style/_input.scss +0 -4
  9. package/assets/style/components-custom-style/_ng-select.scss +7 -15
  10. package/assets/style/css-ui/_action-dropdown.scss +33 -50
  11. package/assets/style/css-ui/_badge.scss +11 -9
  12. package/assets/style/css-ui/_button.scss +38 -161
  13. package/assets/style/css-ui/_checkbox.scss +36 -34
  14. package/assets/style/css-ui/_counter.scss +30 -23
  15. package/assets/style/css-ui/_icon-button.scss +22 -24
  16. package/assets/style/css-ui/_infobox.scss +68 -25
  17. package/assets/style/css-ui/_input.scss +1 -6
  18. package/assets/style/css-ui/_label.scss +16 -15
  19. package/assets/style/css-ui/_list-panel.scss +15 -33
  20. package/assets/style/css-ui/_radio-card.scss +38 -52
  21. package/assets/style/css-ui/_radio.scss +28 -32
  22. package/assets/style/css-ui/_select.scss +50 -66
  23. package/assets/style/css-ui/_selection-dropdown.scss +30 -57
  24. package/assets/style/css-ui/_table.scss +20 -52
  25. package/assets/style/css-ui/_tabs.scss +62 -54
  26. package/assets/style/css-ui/_tag.scss +76 -34
  27. package/assets/style/css-ui/_textarea.scss +7 -8
  28. package/assets/style/css-ui/_toggle.scss +17 -27
  29. package/assets/style/css-ui/_tooltip.scss +13 -15
  30. package/assets/style/css-ui/index.css +693 -657
  31. package/assets/style/css-ui/index.css.map +1 -1
  32. package/package.json +1 -1
  33. package/src/tokens/components/action-dropdown.json +93 -0
  34. package/src/tokens/components/badge.json +53 -0
  35. package/src/tokens/components/button.json +11 -225
  36. package/src/tokens/components/close-button.json +22 -0
  37. package/src/tokens/components/counter.json +108 -0
  38. package/src/tokens/components/icon-button.json +2 -12
  39. package/src/tokens/components/infobox.json +156 -0
  40. package/src/tokens/components/input.json +145 -64
  41. package/src/tokens/components/label.json +56 -0
  42. package/src/tokens/components/link.json +5 -10
  43. package/src/tokens/components/radio.json +11 -0
  44. package/src/tokens/components/select.json +14 -14
  45. package/src/tokens/components/status-card.json +187 -0
  46. package/src/tokens/components/tabs.json +136 -0
  47. package/src/tokens/components/tag.json +194 -0
  48. package/src/tokens/components/tooltip.json +36 -0
  49. package/src/tokens/reference/animation.json +0 -5
  50. package/agorapulse-ui-theme-22.0.6-beta.1.tgz +0 -0
  51. package/src/tokens/reference/v3.json +0 -242
  52. package/src/tokens/system/color-border.json +0 -85
  53. package/src/tokens/system/color-data.json +0 -58
  54. package/src/tokens/system/color-icon.json +0 -95
  55. package/src/tokens/system/color-link.json +0 -29
  56. package/src/tokens/system/color-surface.json +0 -130
  57. package/src/tokens/system/color-text.json +0 -89
  58. package/src/tokens/system/height.json +0 -24
  59. package/src/tokens/system/motion.json +0 -22
  60. package/src/tokens/system/radius.json +0 -28
  61. package/src/tokens/system/spacing.json +0 -25
@@ -6,11 +6,8 @@
6
6
 
7
7
  width: fit-content;
8
8
  max-width: 350px;
9
- background: var(--sys-color-surface-default);
10
- border-radius: var(--sys-radius-inner);
11
- // drop-shadow, not box-shadow: the arrow sits outside the box and box-shadow would skip
12
- // it. drop-shadow has no spread, so the spec's -2px is dropped.
13
- filter: drop-shadow(0 4px 6px rgba(52, 69, 99, 0.15)) drop-shadow(0 4px 25px rgba(52, 69, 99, 0.15));
9
+ background: var(--comp-tooltip-text-color-main-default-bg);
10
+ border-radius: var(--ref-border-radius-md);
14
11
  // Viewport-relative, so a positioned host body (e.g. an Intercom banner margin) can't shift it.
15
12
  position: fixed;
16
13
  z-index: var(--ap-tooltip-z-index);
@@ -29,14 +26,17 @@
29
26
  max-width: 256px;
30
27
  width: 256px;
31
28
  max-height: 280px;
32
- border-radius: var(--sys-radius-inner);
33
- background: var(--sys-color-surface-default);
29
+ border-radius: var(--ref-border-radius-sm);
30
+ background: var(--ref-color-white);
31
+
32
+ /* Shadow/Low (default) */
33
+ box-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 69, 99, 0.15);
34
34
 
35
35
  .ap-content-container.ap-content-predefined-container {
36
36
  padding: 0;
37
37
 
38
38
  .ap-tooltip-arrow {
39
- color: var(--sys-color-surface-default);
39
+ color: var(--ref-color-white);
40
40
  }
41
41
  }
42
42
  }
@@ -47,18 +47,18 @@
47
47
 
48
48
  .ap-content-container {
49
49
  padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
50
- border-radius: var(--sys-radius-inner);
50
+ border-radius: var(--ref-border-radius-md);
51
51
 
52
52
  .ap-tooltip-text {
53
- color: var(--sys-color-text-default);
54
- font-family: var(--sys-text-style-body-font-family);
55
- font-size: var(--sys-text-style-body-size);
56
- font-weight: var(--sys-text-style-body-weight);
57
- line-height: var(--sys-text-style-body-line-height);
53
+ color: var(--comp-tooltip-text-default-color);
54
+ font-family: var(--comp-tooltip-text-style-font-family);
55
+ font-size: var(--comp-tooltip-text-style-size);
56
+ font-weight: var(--comp-tooltip-text-style-weight);
57
+ line-height: var(--comp-tooltip-text-style-line-height);
58
58
  }
59
59
 
60
60
  .ap-tooltip-arrow {
61
- color: var(--sys-color-surface-default);
61
+ color: var(--ref-color-grey-100);
62
62
  position: absolute;
63
63
  z-index: 10000;
64
64
  width: var(--ap-arrow-width);
@@ -140,14 +140,15 @@
140
140
  }
141
141
 
142
142
  &.ap-tooltip-custom-template {
143
- background-color: var(--sys-color-surface-default);
143
+ background-color: var(--ref-color-white);
144
+ filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.08));
144
145
 
145
146
  .ap-tooltip-text {
146
- color: var(--sys-color-text-default);
147
+ color: var(--ref-color-grey-100);
147
148
  }
148
149
 
149
150
  .ap-tooltip-arrow {
150
- color: var(--sys-color-surface-default);
151
+ color: var(--ref-color-white);
151
152
  position: absolute;
152
153
  z-index: 10000;
153
154
  width: var(--ap-arrow-width);
@@ -65,10 +65,6 @@ textarea {
65
65
  &:not(.transparent):not(.valid):not(.invalid):not(:focus):not([disabled]):hover {
66
66
  border-color: var(--comp-input-border-hover-color);
67
67
  }
68
- // Pressed
69
- &:not(.transparent):not(.valid):not(.invalid):not(:focus):not([disabled]):active {
70
- border-color: var(--comp-input-border-clicked-color);
71
- }
72
68
  }
73
69
 
74
70
  .input-group {
@@ -105,7 +105,7 @@ form.submitted {
105
105
  .ng-optgroup {
106
106
  padding: vars.$padding-s vars.$padding-m;
107
107
  span {
108
- color: var(--sys-color-text-interactive-default);
108
+ color: vars.$form-control-selected-font-color;
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: var(--sys-color-surface-interactive-active);
136
+ background-color: unset;
137
137
  span {
138
- color: var(--sys-color-text-interactive-active);
138
+ color: map.get(vars.$colors-electric-blue, 100);
139
139
  ap-symbol .svg {
140
- fill: var(--sys-color-icon-interactive-active) !important;
140
+ fill: map.get(vars.$colors-electric-blue, 100) !important;
141
141
  }
142
142
  }
143
143
  span.checkbox {
@@ -148,20 +148,12 @@ 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
-
161
151
  &.ng-option-marked {
152
+ background-color: map.get(vars.$colors-electric-blue, 10);
162
153
  span {
154
+ color: map.get(vars.$colors-electric-blue, 100);
163
155
  ap-symbol .svg {
164
- fill: currentColor !important;
156
+ fill: map.get(vars.$colors-electric-blue, 100) !important;
165
157
  }
166
158
  }
167
159
  span.checkbox {
@@ -1,17 +1,12 @@
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
-
9
4
  // Container
10
5
  .ap-action-dropdown {
11
- background-color: var(--sys-color-surface-default);
12
- border-radius: var(--sys-radius-inner);
13
- box-shadow: $panel-shadow;
14
- padding: var(--ref-spacing-xxs) 0;
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));
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));
15
10
  outline: none;
16
11
  overflow: hidden;
17
12
  z-index: 1000;
@@ -22,7 +17,7 @@ $panel-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 6
22
17
  }
23
18
 
24
19
  &:focus {
25
- outline: 2px solid var(--sys-color-border-interactive-active);
20
+ outline: 2px solid var(--comp-action-dropdown-item-background-color-focused, var(--ref-color-electric-blue-10));
26
21
  outline-offset: 2px;
27
22
  }
28
23
  }
@@ -33,14 +28,14 @@ $panel-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 6
33
28
  align-items: center;
34
29
  width: 100%;
35
30
  height: 40px;
36
- padding: var(--ref-spacing-xxs) var(--ref-spacing-sm);
31
+ padding: var(--comp-action-dropdown-item-padding, var(--ref-spacing-xxs) var(--ref-spacing-xs));
37
32
  border: none;
38
- background: var(--sys-color-surface-interactive-default);
39
- color: var(--sys-color-text-interactive-default);
33
+ background: transparent;
34
+ color: var(--comp-action-dropdown-item-text-color, var(--ref-color-grey-100));
40
35
  cursor: pointer;
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);
36
+ font-family: var(--ref-font-family);
37
+ font-size: var(--comp-action-dropdown-item-text-size, var(--ref-font-size-sm));
38
+ line-height: var(--comp-action-dropdown-item-text-line-height, var(--ref-line-height-sm));
44
39
  text-align: left;
45
40
  box-sizing: border-box;
46
41
 
@@ -48,46 +43,36 @@ $panel-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 6
48
43
  > i {
49
44
  @include m.fixed-size(16px);
50
45
  flex-shrink: 0;
51
- color: var(--sys-color-icon-interactive-default);
46
+ color: var(--ref-color-grey-100);
52
47
 
53
48
  // Start icon = first child
54
49
  &:first-child {
55
- margin-right: var(--sys-spacing-inline-icon-default);
50
+ margin-right: var(--comp-action-dropdown-item-icon-spacing, var(--ref-spacing-xs));
56
51
  }
57
52
 
58
53
  // End icon = last child (but not the only child)
59
54
  &:last-child:not(:first-child) {
60
- margin-left: var(--sys-spacing-inline-icon-default);
61
- color: var(--sys-color-icon-subtle);
55
+ margin-left: var(--comp-action-dropdown-item-icon-spacing, var(--ref-spacing-xs));
56
+ color: var(--ref-color-grey-60);
62
57
  }
63
58
  }
64
59
 
65
- // The spec hovers rows on the neutral ramp, not blue
66
60
  &:hover {
67
- background-color: var(--sys-color-surface-interactive-hovered);
61
+ background-color: var(--comp-action-dropdown-item-background-color-hover, var(--ref-color-grey-05));
68
62
  }
69
63
 
70
- &:active:not(:disabled),
71
64
  &:focus,
72
65
  &.focused {
73
66
  outline: none;
74
- background-color: var(--sys-color-surface-interactive-clicked);
67
+ background-color: var(--comp-action-dropdown-item-background-color-focused, var(--ref-color-electric-blue-10));
75
68
  }
76
69
 
77
70
  &:disabled {
78
71
  cursor: not-allowed;
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
- }
72
+ opacity: 0.4;
88
73
 
89
74
  &:hover {
90
- background-color: var(--sys-color-surface-interactive-default);
75
+ background-color: transparent;
91
76
  }
92
77
  }
93
78
 
@@ -99,37 +84,35 @@ $panel-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 6
99
84
 
100
85
  // Red mode (destructive action)
101
86
  &.red-mode {
102
- color: var(--sys-color-text-interactive-error-default);
87
+ color: var(--comp-action-dropdown-item-text-color-red-mode, var(--ref-color-red-100));
103
88
 
104
89
  > i {
105
90
  color: inherit;
106
91
  }
107
92
 
108
93
  &:hover {
109
- background-color: var(--sys-color-surface-interactive-error-hovered);
94
+ background-color: var(--comp-action-dropdown-item-background-color-red-mode-hover, var(--ref-color-red-10));
110
95
  }
111
96
 
112
- &:active:not(:disabled),
113
97
  &:focus,
114
98
  &.focused {
115
- background-color: var(--sys-color-surface-interactive-error-clicked);
99
+ background-color: var(--comp-action-dropdown-item-background-color-red-mode-focused, var(--ref-color-red-10));
116
100
  }
117
101
  }
118
102
 
119
103
  // Feature lock
120
104
  &.feature-lock {
121
105
  > i:last-child {
122
- color: var(--sys-color-icon-featurelock);
106
+ color: var(--ref-color-purple-100);
123
107
  }
124
108
 
125
109
  &:hover {
126
- background-color: var(--sys-color-surface-interactive-featurelock-active-hovered);
110
+ background-color: var(--comp-action-dropdown-item-background-color-feature-lock-hover, var(--ref-color-purple-10));
127
111
  }
128
112
 
129
- &:active:not(:disabled),
130
113
  &:focus,
131
114
  &.focused {
132
- background-color: var(--sys-color-surface-interactive-featurelock-active-clicked);
115
+ background-color: var(--comp-action-dropdown-item-background-color-feature-lock-focused, var(--ref-color-purple-10));
133
116
  }
134
117
  }
135
118
 
@@ -145,14 +128,14 @@ $panel-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 6
145
128
  flex-direction: column;
146
129
  flex: 1;
147
130
  min-width: 0;
148
- gap: var(--sys-spacing-inline-icon-small);
131
+ gap: var(--ref-spacing-xxxs);
149
132
  }
150
133
 
151
134
  // Label container
152
135
  .ap-action-dropdown-item-label-container {
153
136
  display: flex;
154
137
  align-items: center;
155
- gap: var(--sys-spacing-inline-icon-default);
138
+ gap: var(--comp-action-dropdown-item-label-spacing, var(--ref-spacing-xs));
156
139
  @include m.truncate;
157
140
  }
158
141
 
@@ -161,20 +144,20 @@ $panel-shadow: 0 4px 25px -2px rgba(52, 69, 99, 0.15), 0 4px 6px -2px rgba(52, 6
161
144
  @include m.truncate;
162
145
 
163
146
  &.bold {
164
- font-weight: var(--sys-text-style-body-bold-weight);
147
+ font-weight: var(--ref-font-weight-bold);
165
148
  }
166
149
  }
167
150
 
168
151
  // Description
169
152
  .ap-action-dropdown-item-description {
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);
153
+ color: var(--comp-action-dropdown-item-description-color, var(--ref-color-grey-60));
154
+ font-size: var(--comp-action-dropdown-item-description-size, var(--ref-font-size-xs));
155
+ line-height: var(--comp-action-dropdown-item-description-line-height, var(--ref-line-height-xs));
173
156
  }
174
157
 
175
158
  // Divider
176
159
  .ap-action-dropdown-divider {
177
160
  height: 1px;
178
- background-color: var(--sys-color-border-default);
179
- margin: var(--ref-spacing-xxs) 0;
161
+ background-color: var(--comp-action-dropdown-divider-color, var(--ref-color-grey-10));
162
+ margin: var(--comp-action-dropdown-divider-margin, var(--ref-spacing-xxs) 0);
180
163
  }
@@ -1,26 +1,28 @@
1
1
  // Agorapulse Badge Styles
2
- @use 'mixins' as m;
3
2
 
4
3
  .ap-badge {
5
4
  display: inline-flex;
6
5
  align-items: center;
7
6
  justify-content: center;
8
- padding: 0 2px;
9
- @include m.text-style('caption-bold');
10
- height: var(--ref-font-line-height-xs);
11
- max-height: var(--ref-font-line-height-xs);
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);
12
14
  border-radius: 2px;
13
15
  white-space: nowrap;
14
16
  box-sizing: border-box;
15
17
 
16
18
  &.blue {
17
- background-color: var(--sys-color-surface-information);
18
- color: var(--sys-color-text-information);
19
+ background-color: var(--comp-badge-blue-background-color);
20
+ color: var(--comp-badge-blue-color);
19
21
  }
20
22
 
21
23
  &.orange {
22
24
  text-transform: uppercase;
23
- background-color: var(--sys-color-surface-notification);
24
- color: var(--sys-color-text-on-color);
25
+ background-color: var(--comp-badge-orange-background-color);
26
+ color: var(--comp-badge-orange-color);
25
27
  }
26
28
  }
@@ -20,7 +20,7 @@
20
20
  display: flex;
21
21
  justify-content: center;
22
22
  align-items: center;
23
- gap: var(--comp-button-spacing);
23
+ gap: var(--comp-split-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,81 +48,25 @@
48
48
 
49
49
  // Primary variants
50
50
  &.primary {
51
- &.orange {
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
- }
51
+ color: var(--ref-color-white);
62
52
 
63
- &:disabled,
64
- &.loading {
65
- background-color: var(--comp-button-primary-orange-surface-disabled);
66
- }
53
+ &.orange {
54
+ @include btn.btn-primary-color('orange');
67
55
  }
68
56
 
69
57
  &.blue {
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
- }
58
+ @include btn.btn-primary-color('electric-blue');
85
59
  }
86
60
  }
87
61
 
88
62
  // Secondary variants
89
63
  &.secondary {
90
64
  &.orange {
91
- background-color: var(--comp-button-secondary-orange-surface-default);
92
- color: var(--comp-button-secondary-orange-content);
93
-
94
- &:hover {
95
- background-color: var(--comp-button-secondary-orange-surface-hovered);
96
- }
97
-
98
- &:active:not(:disabled) {
99
- background-color: var(--comp-button-secondary-orange-surface-clicked);
100
- }
101
-
102
- &:disabled,
103
- &.loading {
104
- background-color: var(--comp-button-secondary-orange-surface-disabled);
105
- color: var(--comp-button-secondary-orange-content-disabled);
106
- }
65
+ @include btn.btn-secondary-color('orange');
107
66
  }
108
67
 
109
68
  &.blue {
110
- background-color: var(--comp-button-secondary-blue-surface-default);
111
- color: var(--comp-button-secondary-blue-content);
112
-
113
- &:hover {
114
- background-color: var(--comp-button-secondary-blue-surface-hovered);
115
- }
116
-
117
- &:active:not(:disabled) {
118
- background-color: var(--comp-button-secondary-blue-surface-clicked);
119
- }
120
-
121
- &:disabled,
122
- &.loading {
123
- background-color: var(--comp-button-secondary-blue-surface-disabled);
124
- color: var(--comp-button-secondary-blue-content-disabled);
125
- }
69
+ @include btn.btn-secondary-color('electric-blue');
126
70
  }
127
71
  }
128
72
 
@@ -131,23 +75,9 @@
131
75
  background: transparent;
132
76
 
133
77
  &.grey {
134
- color: var(--comp-button-ghost-grey-content);
135
-
136
- &:hover {
137
- background-color: var(--comp-button-ghost-grey-surface-hovered);
138
- }
139
-
140
- &:active:not(:disabled) {
141
- background-color: var(--comp-button-ghost-grey-surface-clicked);
142
- }
143
-
144
- &:disabled,
145
- &.loading {
146
- color: var(--comp-button-ghost-grey-content-disabled);
147
- }
78
+ @include btn.btn-ghost-color('grey', $text-color-shade: 80, $hover-bg-shade: '05', $active-bg-shade: 10);
148
79
  }
149
80
 
150
- // Not in the Figma spec — left on the V2 ramps until design rules on them.
151
81
  &.blue {
152
82
  @include btn.btn-ghost-color('electric-blue');
153
83
  }
@@ -161,66 +91,30 @@
161
91
  }
162
92
  }
163
93
 
164
- // Stroked variants — Figma calls these `tertiary`
94
+ // Stroked variants
165
95
  &.stroked {
166
- background: var(--comp-button-tertiary-filled-surface);
167
- border: 1px solid;
96
+ background: var(--ref-color-white);
168
97
 
169
98
  &.grey {
170
- border-color: var(--comp-button-tertiary-grey-border-default);
171
- color: var(--comp-button-tertiary-grey-content);
172
-
173
- &:hover {
174
- border-color: var(--comp-button-tertiary-grey-border-hovered);
175
- }
176
-
177
- &:active:not(:disabled) {
178
- border-color: var(--comp-button-tertiary-grey-border-clicked);
179
- }
180
-
181
- &:disabled,
182
- &.loading {
183
- border-color: var(--comp-button-tertiary-grey-border-disabled);
184
- color: var(--comp-button-tertiary-grey-content-disabled);
185
- }
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
+ );
186
108
  }
187
109
 
188
110
  &.blue {
189
- border-color: var(--comp-button-tertiary-blue-border-default);
190
- color: var(--comp-button-tertiary-blue-content);
191
-
192
- &:hover {
193
- border-color: var(--comp-button-tertiary-blue-border-hovered);
194
- }
195
-
196
- &:active:not(:disabled) {
197
- border-color: var(--comp-button-tertiary-blue-border-clicked);
198
- }
199
-
200
- &:disabled,
201
- &.loading {
202
- border-color: var(--comp-button-tertiary-blue-border-disabled);
203
- color: var(--comp-button-tertiary-blue-content-disabled);
204
- }
111
+ border: 1px solid var(--ref-color-electric-blue-60);
112
+ @include btn.btn-stroked-color('electric-blue');
205
113
  }
206
114
 
207
115
  &.red {
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
- }
116
+ border: 1px solid var(--ref-color-red-60);
117
+ @include btn.btn-stroked-color('red');
224
118
  }
225
119
  }
226
120
 
@@ -278,67 +172,50 @@
278
172
  }
279
173
  }
280
174
 
281
- // Locked variant — Figma calls this `featurelock`. It specifies no disabled or loading state.
175
+ // Locked variant
282
176
  &.locked {
283
177
  overflow: visible;
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);
178
+ background-color: var(--ref-color-purple-10);
179
+ color: var(--ref-color-purple-80);
287
180
 
288
181
  &:hover:not(:disabled):not(.loading) {
289
- background-color: var(--comp-button-featurelock-surface-hovered);
290
- border-color: var(--comp-button-featurelock-border-hovered);
182
+ background-color: var(--ref-color-purple-20);
291
183
  }
292
184
 
293
185
  &:active:not(:disabled):not(.loading) {
294
- background-color: var(--comp-button-featurelock-surface-clicked);
295
- border-color: var(--comp-button-featurelock-border-clicked);
186
+ background-color: var(--ref-color-purple-40);
296
187
  }
297
188
  }
298
189
 
299
- // Loading bar colors per variant — the bar takes the variant's default surface or content
190
+ // Loading bar colors per variant
300
191
  &.primary.orange .ap-loading-bar {
301
- background-color: var(--comp-button-primary-orange-surface-default);
192
+ background-color: var(--ref-color-orange-100);
302
193
  }
303
194
 
304
195
  &.primary.blue .ap-loading-bar {
305
- background-color: var(--comp-button-primary-blue-surface-default);
196
+ background-color: var(--ref-color-electric-blue-100);
306
197
  }
307
198
 
308
199
  &.secondary.orange .ap-loading-bar {
309
- background-color: var(--comp-button-secondary-orange-content);
200
+ background-color: var(--ref-color-orange-100);
310
201
  }
311
202
 
312
203
  &.secondary.blue .ap-loading-bar {
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);
204
+ background-color: var(--ref-color-electric-blue-100);
318
205
  }
319
206
 
207
+ &.ghost.grey .ap-loading-bar,
320
208
  &.stroked.grey .ap-loading-bar {
321
- background-color: var(--comp-button-tertiary-grey-content);
209
+ background-color: var(--ref-color-grey-80);
322
210
  }
323
211
 
212
+ &.ghost.blue .ap-loading-bar,
324
213
  &.stroked.blue .ap-loading-bar {
325
- background-color: var(--comp-button-tertiary-blue-content);
326
- }
327
-
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
214
  background-color: var(--ref-color-electric-blue-100);
339
215
  }
340
216
 
341
- &.ghost.red .ap-loading-bar {
217
+ &.ghost.red .ap-loading-bar,
218
+ &.stroked.red .ap-loading-bar {
342
219
  background-color: var(--ref-color-red-100);
343
220
  }
344
221