@stackoverflow/stacks 1.10.3 → 2.0.0-rc.0

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 (90) hide show
  1. package/README.md +15 -0
  2. package/dist/css/stacks.css +7428 -4429
  3. package/dist/css/stacks.min.css +1 -1
  4. package/dist/js/stacks.js +110 -265
  5. package/dist/js/stacks.min.js +1 -1
  6. package/lib/atomic/__snapshots__/color-new.less.test.ts.snap +3015 -0
  7. package/lib/atomic/__snapshots__/color.less.test.ts.snap +2886 -0
  8. package/lib/atomic/border.less +0 -258
  9. package/lib/atomic/color.less +26 -200
  10. package/lib/atomic/color.less.test.ts +12 -0
  11. package/lib/atomic/misc.less +7 -6
  12. package/lib/atomic/typography.less +0 -7
  13. package/lib/atomic/v1/__snapshots__/border.less.test.ts.snap +552 -0
  14. package/lib/atomic/v1/__snapshots__/color.less.test.ts.snap +6756 -0
  15. package/lib/atomic/v1/__snapshots__/typography.less.test.ts.snap +22 -0
  16. package/lib/atomic/v1/border.less +210 -0
  17. package/lib/atomic/v1/border.less.test.ts +14 -0
  18. package/lib/atomic/v1/color.less +183 -0
  19. package/lib/atomic/v1/color.less.test.ts +14 -0
  20. package/lib/atomic/v1/typography.less +8 -0
  21. package/lib/atomic/v1/typography.less.test.ts +14 -0
  22. package/lib/components/activity-indicator/activity-indicator.a11y.test.ts +1 -10
  23. package/lib/components/activity-indicator/activity-indicator.less +4 -4
  24. package/lib/components/anchor/anchor.a11y.test.ts +0 -12
  25. package/lib/components/anchor/anchor.less +4 -4
  26. package/lib/components/anchor/anchor.visual.test.ts +1 -1
  27. package/lib/components/avatar/avatar.less +2 -2
  28. package/lib/components/award-bling/award-bling.less +3 -3
  29. package/lib/components/badge/badge.a11y.test.ts +2 -51
  30. package/lib/components/badge/badge.less +40 -40
  31. package/lib/components/banner/banner.a11y.test.ts +0 -14
  32. package/lib/components/block-link/block-link.a11y.test.ts +0 -14
  33. package/lib/components/block-link/block-link.less +8 -8
  34. package/lib/components/breadcrumbs/breadcrumbs.a11y.test.ts +0 -2
  35. package/lib/components/breadcrumbs/breadcrumbs.less +1 -1
  36. package/lib/components/button/button.a11y.test.ts +0 -134
  37. package/lib/components/button/button.less +40 -40
  38. package/lib/components/button/button.visual.test.ts +1 -1
  39. package/lib/components/card/card.a11y.test.ts +0 -6
  40. package/lib/components/check-control/check-control.a11y.test.ts +0 -13
  41. package/lib/components/check-control/check-control.visual.test.ts +1 -1
  42. package/lib/components/checkbox_radio/checkbox_radio.less +5 -5
  43. package/lib/components/checkbox_radio/checkbox_radio.visual.test.ts +1 -1
  44. package/lib/components/code-block/code-block.less +3 -3
  45. package/lib/components/description/description.a11y.test.ts +0 -5
  46. package/lib/components/description/description.visual.test.ts +1 -1
  47. package/lib/components/input-fill/input-fill.less +2 -2
  48. package/lib/components/input-icon/input-icon.less +2 -2
  49. package/lib/components/input-message/input-message.less +8 -8
  50. package/lib/components/input_textarea/input_textarea.less +6 -6
  51. package/lib/components/label/label.less +11 -11
  52. package/lib/components/link/link.a11y.test.ts +0 -21
  53. package/lib/components/link/link.less +8 -8
  54. package/lib/components/link-preview/link-preview.less +9 -9
  55. package/lib/components/menu/menu.less +3 -3
  56. package/lib/components/modal/modal.less +5 -4
  57. package/lib/components/navigation/navigation.less +11 -11
  58. package/lib/components/notice/notice.less +48 -48
  59. package/lib/components/pagination/pagination.less +3 -3
  60. package/lib/components/popover/popover.less +2 -2
  61. package/lib/components/popover/tooltip.test.ts +1 -1
  62. package/lib/components/post-summary/post-summary.less +40 -40
  63. package/lib/components/progress-bar/progress-bar.less +15 -15
  64. package/lib/components/prose/prose.less +15 -15
  65. package/lib/components/select/select.less +5 -5
  66. package/lib/components/sidebar-widget/sidebar-widget.less +12 -12
  67. package/lib/components/table/table.less +7 -7
  68. package/lib/components/tag/tag.less +25 -25
  69. package/lib/components/toggle-switch/toggle-switch.a11y.test.ts +0 -7
  70. package/lib/components/toggle-switch/toggle-switch.less +4 -4
  71. package/lib/components/topbar/topbar.less +34 -34
  72. package/lib/components/uploader/uploader.less +15 -15
  73. package/lib/components/user-card/user-card.less +7 -7
  74. package/lib/exports/__snapshots__/color-mixins.less.test.ts.snap +539 -0
  75. package/lib/exports/__snapshots__/color.less.test.ts.snap +762 -0
  76. package/lib/exports/color-mixins.less +280 -0
  77. package/lib/exports/color-mixins.less.test.ts +150 -0
  78. package/lib/exports/color-sets.less +620 -0
  79. package/lib/exports/color.less +57 -0
  80. package/lib/exports/color.less.test.ts +12 -0
  81. package/lib/exports/exports.less +2 -1
  82. package/lib/exports/mixins.less +17 -5
  83. package/lib/exports/theme.less +85 -0
  84. package/lib/exports/v1/__snapshots__/constants-colors.less.test.ts.snap +902 -0
  85. package/lib/exports/v1/constants-colors.less +893 -0
  86. package/lib/exports/v1/constants-colors.less.test.ts +12 -0
  87. package/lib/stacks-static.less +5 -0
  88. package/lib/test/less-test-utils.ts +28 -0
  89. package/package.json +13 -7
  90. package/lib/exports/constants-colors.less +0 -1100
@@ -14,7 +14,7 @@
14
14
  a:not(.button):not(.post-tag):not(.s-btn):not(.s-sidebarwidget--action):not(.s-user-card--link) {
15
15
  &,
16
16
  &:visited {
17
- color: var(--black-500);
17
+ color: var(--black-400);
18
18
  }
19
19
  }
20
20
  }
@@ -26,7 +26,7 @@
26
26
 
27
27
  // CHILD ELEMENTS
28
28
  & &--action {
29
- color: var(--blue);
29
+ color: var(--blue-400);
30
30
  float: right;
31
31
  font-size: var(--fs-fine);
32
32
  line-height: calc(var(--fs-body1) * 1.5); // 19.5px - line-height should be the same as in the outside element, so the header and action baselines line up
@@ -69,7 +69,7 @@
69
69
  &__expanding-control {
70
70
  &:before {
71
71
  border: calc(var(--su-static4) + var(--su-static1)) solid transparent;
72
- border-left-color: var(--bc-darker);
72
+ border-left-color: var(--bc-dark);
73
73
  border-right-width: 0;
74
74
  content: '';
75
75
  float: left;
@@ -100,9 +100,9 @@
100
100
  outline: none;
101
101
  }
102
102
 
103
- background: var(--black-025);
103
+ background: var(--black-100);
104
104
  border-top: var(--su-static1) solid var(--_sw-header-bc);
105
- color: var(--black-600);
105
+ color: var(--black-500);
106
106
  font-size: var(--fs-body2);
107
107
  font-weight: normal;
108
108
  margin: 0;
@@ -115,7 +115,7 @@
115
115
  &[aria-current="true"],
116
116
  &[aria-current="page"] {
117
117
  &:before {
118
- border-left-color: var(--theme-primary-color);
118
+ border-left-color: var(--theme-primary);
119
119
  border-left-style: solid;
120
120
  border-left-width: calc(var(--su-static1) * 3); // 3px
121
121
  content: '';
@@ -153,12 +153,12 @@
153
153
  }
154
154
  }
155
155
 
156
- #stacks-internals #bullet-arrow(var(--theme-primary-color));
156
+ #stacks-internals #bullet-arrow(var(--theme-primary));
157
157
  color: var(--black);
158
158
  font-weight: bold;
159
159
  }
160
160
 
161
- #stacks-internals #bullet-arrow(var(--black-100));
161
+ #stacks-internals #bullet-arrow(var(--black-225));
162
162
  background-position: 0 calc((1.2em - calc(var(--su-static8) + var(--su-static2))) / 2); // 0 ((1.2em - 10) / 2)
163
163
  background-repeat: no-repeat;
164
164
  background-size: auto calc(var(--su-static8) + var(--su-static2)); // auto 10px
@@ -215,10 +215,10 @@
215
215
  // COLOR ALTERNATIVES
216
216
  .alternate-color(@name) {
217
217
  &.s-sidebarwidget__@{name} {
218
- --_sw-bc: var(~"--@{name}-200");
218
+ --_sw-bc: var(~"--@{name}-300");
219
219
 
220
220
  .highcontrast-mode({
221
- --_sw-bc: var(~"--@{name}-700");
221
+ --_sw-bc: var(~"--@{name}-500");
222
222
  });
223
223
 
224
224
  &:after,
@@ -228,11 +228,11 @@
228
228
  }
229
229
 
230
230
  .s-sidebarwidget--header {
231
- background-color: var(~"--@{name}-100");
231
+ background-color: var(~"--@{name}-300");
232
232
  color: var(--fc-medium);
233
233
  }
234
234
 
235
- background-color: var(~"--@{name}-050");
235
+ background-color: var(~"--@{name}-200");
236
236
  border-color: var(--_sw-bc);
237
237
  }
238
238
  }
@@ -13,7 +13,7 @@
13
13
  --_ta-td-ta: left;
14
14
  --_ta-td-va: middle;
15
15
  --_ta-td-w: unset;
16
- --_ta-thead-th-bg: var(--black-025);
16
+ --_ta-thead-th-bg: var(--black-100);
17
17
  --_ta-th-bbw: 0;
18
18
  --_ta-th-bc: var(--bc-medium);
19
19
  --_ta-th-fs: unset;
@@ -24,8 +24,8 @@
24
24
 
25
25
  // VARIANTS
26
26
  &&__stripes {
27
- --_ta-tbody-tr-even-bg: var(--black-025);
28
- --_ta-thead-th-bg: var(--black-050);
27
+ --_ta-tbody-tr-even-bg: var(--black-100);
28
+ --_ta-thead-th-bg: var(--black-150);
29
29
  }
30
30
 
31
31
  // MODIFIERS
@@ -113,7 +113,7 @@
113
113
 
114
114
  thead th {
115
115
  border-top-color: transparent;
116
- border-bottom-color: var(--bc-darker);
116
+ border-bottom-color: var(--bc-dark);
117
117
  font-size: inherit;
118
118
  text-transform: initial;
119
119
  letter-spacing: initial;
@@ -142,7 +142,7 @@
142
142
  }
143
143
 
144
144
  &.is-sorted { // Selected state
145
- color: var(--black-900);
145
+ color: var(--black-600);
146
146
  }
147
147
 
148
148
  color: var(--fc-light);
@@ -285,8 +285,8 @@
285
285
  }
286
286
 
287
287
  &.is-disabled {
288
- background-color: var(--black-025);
289
- --_ta-tbody-tr-even-bg: var(--black-025);
288
+ background-color: var(--black-100);
289
+ --_ta-tbody-tr-even-bg: var(--black-100);
290
290
 
291
291
  th:not(.is-enabled),
292
292
  td:not(.is-enabled) {
@@ -4,11 +4,11 @@
4
4
  --_ta-bc-selected: transparent;
5
5
  --_ta-bg: var(--theme-tag-background-color);
6
6
  --_ta-bg-hover: var(--theme-tag-hover-background-color);
7
- --_ta-bg-selected: var(--theme-secondary-200);
7
+ --_ta-bg-selected: var(--theme-secondary-300);
8
8
  --_ta-br: var(--br-sm);
9
9
  --_ta-fc: var(--theme-tag-color);
10
10
  --_ta-fc-hover: var(--theme-tag-hover-color);
11
- --_ta-fc-selected: var(--theme-secondary-900);
11
+ --_ta-fc-selected: var(--theme-secondary-600);
12
12
  --_ta-fs: var(--fs-caption);
13
13
  --_ta-lh: 1.846153846;
14
14
  --_ta-pl: var(--_ta-px);
@@ -99,41 +99,41 @@
99
99
 
100
100
  // moderator overrides other muted and required, required overrides muted
101
101
  &&__moderator {
102
- --_ta-bc: var(--red-200);
103
- --_ta-bg: var(--red-050);
104
- --_ta-fc: var(--red-800);
105
- --_ta-bc-hover: var(--red-300);
106
- --_ta-bg-hover: var(--red-100);
107
- --_ta-fc-hover: var(--red-900);
102
+ --_ta-bc: var(--red-300);
103
+ --_ta-bg: var(--red-200);
104
+ --_ta-fc: var(--red-600);
105
+ --_ta-bc-hover: var(--red-400);
106
+ --_ta-bg-hover: var(--red-300);
107
+ --_ta-fc-hover: var(--red-600);
108
108
  --_ta-bc-selected: var(--red-400);
109
- --_ta-bg-selected: var(--red-200);
110
- --_ta-fc-selected: var(--red-800);
109
+ --_ta-bg-selected: var(--red-300);
110
+ --_ta-fc-selected: var(--red-600);
111
111
  }
112
112
 
113
113
  &&__muted:not(&__moderator):not(&__required) {
114
114
  --_ta-bc: transparent;
115
- --_ta-bg: var(--black-075);
116
- --_ta-fc: var(--black-700);
115
+ --_ta-bg: var(--black-200);
116
+ --_ta-fc: var(--black-500);
117
117
  --_ta-bc-hover: transparent;
118
- --_ta-bg-hover: var(--black-100);
119
- --_ta-fc-hover: var(--black-800);
118
+ --_ta-bg-hover: var(--black-225);
119
+ --_ta-fc-hover: var(--black-600);
120
120
  --_ta-bc-selected: transparent;
121
- --_ta-bg-selected: var(--black-200);
122
- --_ta-fc-selected: var(--black-900);
121
+ --_ta-bg-selected: var(--black-300);
122
+ --_ta-fc-selected: var(--black-600);
123
123
 
124
124
  .highcontrast-mode({ --_ta-bc: currentColor; }); // Specificity has bit us, so we need this override
125
125
  }
126
126
 
127
127
  &&__required:not(&__moderator) {
128
- --_ta-bc: var(--bc-darker);
129
- --_ta-bg: var(--black-075);
130
- --_ta-fc: var(--black-700);
131
- --_ta-bc-hover: var(--black-300);
132
- --_ta-bg-hover: var(--black-100);
133
- --_ta-fc-hover: var(--black-800);
134
- --_ta-bc-selected: var(--black-500);
135
- --_ta-bg-selected: var(--black-200);
136
- --_ta-fc-selected: var(--black-900);
128
+ --_ta-bc: var(--bc-dark);
129
+ --_ta-bg: var(--black-200);
130
+ --_ta-fc: var(--black-500);
131
+ --_ta-bc-hover: var(--black-350);
132
+ --_ta-bg-hover: var(--black-225);
133
+ --_ta-fc-hover: var(--black-600);
134
+ --_ta-bc-selected: var(--black-400);
135
+ --_ta-bg-selected: var(--black-300);
136
+ --_ta-fc-selected: var(--black-600);
137
137
  }
138
138
  &__watched, // TODO: remove all single `&` watched styles once core no longer requires them
139
139
  &&__watched {
@@ -64,13 +64,6 @@ describe("toggle-switch", () => {
64
64
  template: ({ component, testid }) => html`
65
65
  <div data-testid="${testid}">${component}</div>
66
66
  `,
67
- // TODO: Most of those skipped tests should be fixed by the new Stacks 2.0 palette
68
- skippedTestids: [
69
- "s-toggle-switch-dark-multiple",
70
- "s-toggle-switch-light-multiple",
71
- "s-toggle-switch-dark-multiple-off",
72
- "s-toggle-switch-light-multiple-off",
73
- ],
74
67
  });
75
68
  });
76
69
  });
@@ -1,9 +1,9 @@
1
1
  .s-toggle-switch {
2
- --_ts-bg: var(--black-300);
2
+ --_ts-bg: var(--black-350);
3
3
  --_ts-bg-ps: left center;
4
4
  --_ts-bs-color: transparent;
5
5
  --_ts-multiple-bg: unset;
6
- --_ts-multiple-fc: var(--black-500);
6
+ --_ts-multiple-fc: var(--black-400);
7
7
 
8
8
  fieldset[disabled] &,
9
9
  &[disabled] {
@@ -19,7 +19,7 @@
19
19
  &:checked {
20
20
  + label {
21
21
  &.s-toggle-switch--label-off {
22
- --_ts-multiple-bg: var(--black-500);
22
+ --_ts-multiple-bg: var(--black-400);
23
23
  --_ts-multiple-fc: var(--white);
24
24
 
25
25
  .dark-mode({ --_ts-multiple-bg: var(--black-350); });
@@ -27,7 +27,7 @@
27
27
 
28
28
  &:not(.s-toggle-switch--label-off) {
29
29
  --_ts-multiple-bg: var(--green-400);
30
- --_ts-multiple-fc: @white;
30
+ --_ts-multiple-fc: var(--_white-static);
31
31
 
32
32
  .highcontrast-mode({ --_ts-multiple-fc: var(--white); });
33
33
  }
@@ -30,9 +30,9 @@
30
30
  --theme-topbar-select-background: var(--theme-topbar-background-color);
31
31
 
32
32
  // Topbar items
33
- --theme-topbar-item-color: var(--black-800);
34
- --theme-topbar-item-color-hover: var(--black-900);
35
- --theme-topbar-item-background-hover: var(--black-200);
33
+ --theme-topbar-item-color: var(--black-600);
34
+ --theme-topbar-item-color-hover: var(--black-600);
35
+ --theme-topbar-item-background-hover: var(--black-300);
36
36
  --theme-topbar-item-color-current: var(--black);
37
37
  });
38
38
 
@@ -146,36 +146,36 @@
146
146
  // TODO this only works 100% perfectly in light mode, due to child elements inheriting current theme colors
147
147
  // TODO extend forced light mode instead of overriding
148
148
 
149
- --theme-topbar-background-color: @white;
150
- --theme-topbar-bottom-border: 1px solid @black-100;
149
+ --theme-topbar-background-color: var(--_white-static);
150
+ --theme-topbar-bottom-border: 1px solid .set-black()[225];
151
151
 
152
152
  // Search input
153
- --theme-topbar-search-color: @black-700;
154
- --theme-topbar-search-background: @white;
155
- --theme-topbar-search-placeholder: @black-400;
156
- --theme-topbar-search-border: @black-200;
157
- --theme-topbar-search-border-focus: @blue-300;
153
+ --theme-topbar-search-color: .set-black()[500];
154
+ --theme-topbar-search-background: var(--_white-static);
155
+ --theme-topbar-search-placeholder: .set-black()[400];
156
+ --theme-topbar-search-border: .set-black()[300];
157
+ --theme-topbar-search-border-focus: .set-blue()[400];
158
158
  --theme-topbar-search-shadow-focus: 0 0 0 var(--su-static4) var(--focus-ring);
159
159
 
160
160
  // Search switcher
161
- --theme-topbar-select-color: @black-700;
162
- --theme-topbar-select-background: @black-050;
161
+ --theme-topbar-select-color: .set-black()[500];
162
+ --theme-topbar-select-background: .set-black()[150];
163
163
 
164
164
  // Items
165
- --theme-topbar-item-color: @black-600;
166
- --theme-topbar-item-color-hover: @black-800;
167
- --theme-topbar-item-background-hover: @black-075;
168
- --theme-topbar-item-color-current: @black;
169
- --theme-topbar-item-border-current: var(--theme-primary-color);
165
+ --theme-topbar-item-color: .set-black()[500];
166
+ --theme-topbar-item-color-hover: .set-black()[600];
167
+ --theme-topbar-item-background-hover: .set-black()[200];
168
+ --theme-topbar-item-color-current: var(--_black-static);
169
+ --theme-topbar-item-border-current: var(--theme-primary);
170
170
 
171
171
  // TODO HACK remove everything below once light/dark topbars are inheriting forced themes correctly
172
172
  // redefine the variables for extra contrast in high-contrast mode
173
173
  .highcontrast-mode({
174
174
  // Topbar items
175
- --theme-topbar-item-color: @black-800;
176
- --theme-topbar-item-color-hover: @black-900;
177
- --theme-topbar-item-background-hover: @black-075;
178
- --theme-topbar-item-color-current: @black;
175
+ --theme-topbar-item-color: .set-black()[600];
176
+ --theme-topbar-item-color-hover: .set-black()[600]; // TODO hover is now identical color to base color
177
+ --theme-topbar-item-background-hover: .set-black()[200];
178
+ --theme-topbar-item-color-current: var(--_black-static);
179
179
  });
180
180
 
181
181
  --scrollbar: hsla(0, 0%, 0%, 0.2);
@@ -188,7 +188,7 @@
188
188
  // TODO this only works 100% perfectly in dark mode, due to child elements inheriting current theme colors
189
189
  // TODO extend forced dark mode instead of overriding
190
190
 
191
- @topbar-actual-background: @black-800;
191
+ @topbar-actual-background: .set-black()[600];
192
192
  // TODO
193
193
  #calc-topbar-lightness-increase() when (lightness(@topbar-actual-background) < 15%) {
194
194
  @topbar-search-lightness-increase: 20%;
@@ -207,18 +207,18 @@
207
207
  --theme-topbar-search-placeholder: lighten(@topbar-actual-background, 60% + @topbar-search-lightness-increase);
208
208
  --theme-topbar-search-border: lighten(@topbar-actual-background, 20% + @topbar-search-lightness-increase);
209
209
  --theme-topbar-search-border-focus: lighten(@topbar-actual-background, 45% + @topbar-search-lightness-increase);
210
- --theme-topbar-search-shadow-focus: 0 0 0 var(--su-static4) fade(@white, 30%);
210
+ --theme-topbar-search-shadow-focus: 0 0 0 var(--su-static4) fade(.set-white()[default], 30%);
211
211
 
212
212
  // Search switcher
213
213
  --theme-topbar-select-color: lighten(@topbar-actual-background, 60% + @topbar-search-lightness-increase);
214
214
  --theme-topbar-select-background: lighten(@topbar-actual-background, 10% + @topbar-search-lightness-increase);
215
215
 
216
216
  // Items
217
- --theme-topbar-item-color: @black-100;
218
- --theme-topbar-item-color-hover: @white;
219
- --theme-topbar-item-background-hover: @black-700;
220
- --theme-topbar-item-color-current: @white;
221
- --theme-topbar-item-border-current: var(--theme-primary-color);
217
+ --theme-topbar-item-color: .set-black()[225];
218
+ --theme-topbar-item-color-hover: var(--_white-static);
219
+ --theme-topbar-item-background-hover: .set-black()[500];
220
+ --theme-topbar-item-color-current: var(--_white-static);
221
+ --theme-topbar-item-border-current: var(--theme-primary);
222
222
 
223
223
  // Themed border accent
224
224
  --theme-topbar-accent-border: none;
@@ -227,10 +227,10 @@
227
227
  // redefine the variables for extra contrast in high-contrast mode
228
228
  .highcontrast-mode({
229
229
  // Topbar items
230
- --theme-topbar-item-color: @white;
231
- --theme-topbar-item-color-hover: @white;
232
- --theme-topbar-item-background-hover: @black-700;
233
- --theme-topbar-item-color-current: @white;
230
+ --theme-topbar-item-color: var(--_white-static);
231
+ --theme-topbar-item-color-hover: var(--_white-static);
232
+ --theme-topbar-item-background-hover: .set-black()[500];
233
+ --theme-topbar-item-color-current: var(--_white-static);
234
234
 
235
235
  .s-badge {
236
236
  border-color: currentColor;
@@ -333,11 +333,11 @@
333
333
  }
334
334
 
335
335
  &.is-unread {
336
- .topbar-notice-styles(var(--theme-primary-color), var(--theme-primary-color), var(--white));
336
+ .topbar-notice-styles(var(--theme-primary), var(--theme-primary), var(--white));
337
337
 
338
338
  &:hover,
339
339
  &:focus {
340
- .topbar-notice-styles(var(--theme-primary-600), var(--theme-primary-600), var(--white));
340
+ .topbar-notice-styles(var(--theme-primary-500), var(--theme-primary-500), var(--white));
341
341
  }
342
342
  }
343
343
  }
@@ -2,9 +2,9 @@
2
2
  // COMPONENT-SPECIFIC CONSTANTS
3
3
  --_up-bg-b-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='5' ry='5' stroke='%23000000' stroke-width='8' stroke-dasharray='7%2c 22' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e"); // Keeping this a custom property to save a few bytes
4
4
  // COMPONENT-SPECIFIC CUSTOM PROPERTIES
5
- --_up-bg: var(--black-025);
6
- --_up-bg-focus: var(--black-050);
7
- --_up-bg-bc: var(--black-150);
5
+ --_up-bg: var(--black-100);
6
+ --_up-bg-focus: var(--black-150);
7
+ --_up-bg-bc: var(--black-250);
8
8
  --_up-focus-ring-color: var(--focus-ring);
9
9
 
10
10
  // CONTEXTUAL STYLES
@@ -22,35 +22,35 @@
22
22
  }
23
23
 
24
24
  &.has-error {
25
- --_up-bg: var(--red-050);
26
- --_up-bg-focus: var(--red-100);
25
+ --_up-bg: var(--red-200);
26
+ --_up-bg-focus: var(--red-300);
27
27
  --_up-bg-bc: var(--red-400);
28
28
  --_up-bg-bc-hc-state: var(--red-400);
29
29
  --_up-focus-ring-color: var(--focus-ring-error);
30
- --_up-link-fc: var(--red-900);
30
+ --_up-link-fc: var(--red-600);
31
31
  }
32
32
 
33
33
  &.has-success {
34
- --_up-bg: var(--green-025);
35
- --_up-bg-focus: var(--green-050);
34
+ --_up-bg: var(--green-100);
35
+ --_up-bg-focus: var(--green-200);
36
36
  --_up-bg-bc: var(--green-400);
37
37
  --_up-bg-bc-hc-state: var(--green-400);
38
38
  --_up-focus-ring-color: var(--focus-ring-success);
39
- --_up-link-fc: var(--green-900);
39
+ --_up-link-fc: var(--green-600);
40
40
  }
41
41
 
42
42
  &.has-warning {
43
- --_up-bg: var(--yellow-050);
44
- --_up-bg-focus: var(--yellow-100);
43
+ --_up-bg: var(--yellow-200);
44
+ --_up-bg-focus: var(--yellow-300);
45
45
  --_up-bg-bc: var(--yellow-400);
46
46
  --_up-bg-bc-hc-state: var(--yellow-400);
47
47
  --_up-focus-ring-color: var(--focus-ring-warning);
48
- --_up-link-fc: var(--yellow-900);
48
+ --_up-link-fc: var(--yellow-600);
49
49
  }
50
50
 
51
51
  &.is-active {
52
- --_up-bg: var(--black-050);
53
- --_up-bg-bc: var(--black-200);
52
+ --_up-bg: var(--black-150);
53
+ --_up-bg-bc: var(--black-300);
54
54
  }
55
55
 
56
56
  &.is-disabled {
@@ -172,7 +172,7 @@
172
172
  }
173
173
 
174
174
  & &--previews-heading {
175
- color: var(--black-900);
175
+ color: var(--black-600);
176
176
  font-size: var(--fs-body2);
177
177
  font-weight: 600;
178
178
  padding-bottom: var(--su8);
@@ -11,20 +11,20 @@
11
11
  --_uc-link-fs: var(--fs-caption);
12
12
  --_uc-link-ws: unset;
13
13
  --_uc-rep-fc: unset;
14
- --_uc-time-fc: var(--black-500);
14
+ --_uc-time-fc: var(--black-400);
15
15
  --_uc-time-ws: unset;
16
16
  --_uc-type-fc: var(--theme-primary-400);
17
17
 
18
18
  // MODIFIERS
19
19
  &&__deleted {
20
- --_uc-fc: var(--black-500);
20
+ --_uc-fc: var(--black-400);
21
21
  }
22
22
 
23
23
  &&__highlighted {
24
- --_uc-bg: var(--theme-secondary-050);
24
+ --_uc-bg: var(--theme-secondary-200);
25
25
  --_uc-bar: var(--br-md);
26
- --_uc-time-fc: var(--black-600);
27
- --_uc-type-fc: var(--black-700);
26
+ --_uc-time-fc: var(--black-500);
27
+ --_uc-type-fc: var(--black-500);
28
28
  }
29
29
 
30
30
  // VARIANTS
@@ -44,7 +44,7 @@
44
44
 
45
45
  &&__minimal {
46
46
  --_uc-link-ws: nowrap;
47
- --_uc-rep-fc: var(--black-600);
47
+ --_uc-rep-fc: var(--black-500);
48
48
  --_uc-time-ws: nowrap;
49
49
  }
50
50
 
@@ -52,7 +52,7 @@
52
52
  & &--location,
53
53
  & &--role {
54
54
  font-size: var(--fs-caption);
55
- color: var(--black-500);
55
+ color: var(--black-400);
56
56
  }
57
57
 
58
58
  & &--awards {