@stackoverflow/stacks 2.0.0-rc.5 → 2.0.0-rc.7

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.
@@ -18,7 +18,7 @@
18
18
 
19
19
  html,
20
20
  body {
21
- color: var(--theme-body-font-color);
21
+ color: var(--theme-body-font-color, var(--black-600));
22
22
  font-family: var(--theme-body-font-family);
23
23
  font-size: var(--fs-base);
24
24
  line-height: var(--lh-base);
@@ -34,7 +34,7 @@ body {
34
34
  body {
35
35
  box-sizing: border-box;
36
36
  min-height: 100%;
37
- background-color: var(--theme-background-color);
37
+ background-color: var(--theme-background-color, var(--white));
38
38
 
39
39
  *,
40
40
  *:before,
@@ -19,9 +19,9 @@
19
19
  }
20
20
 
21
21
  &&__default {
22
- --_an-a-fc: var(--theme-link-color);
23
- --_an-a-fc-hover: var(--theme-link-color-hover);
24
- --_an-a-fc-visited: var(--theme-link-color-visited);
22
+ --_an-a-fc: var(--theme-link-color, var(--theme-secondary-400));
23
+ --_an-a-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-400));
24
+ --_an-a-fc-visited: var(--theme-link-color-visited, var(--theme-secondary-500));
25
25
  }
26
26
 
27
27
  &&__grayscale {
@@ -37,8 +37,8 @@
37
37
  inset: 0 0 auto 0;
38
38
  padding: var(--su12);
39
39
  position: fixed;
40
- -webkit-transform: translate3d(0, calc(var(--theme-topbar-height) * var(--_no-x-offset)), 0);
41
- transform: translate3d(0, calc(var(--theme-topbar-height) * var(--_no-x-offset)), 0);
40
+ -webkit-transform: translate3d(0, calc(var(--theme-topbar-height, calc(var(--su-static48) + var(--su-static8))) * var(--_no-x-offset)), 0);
41
+ transform: translate3d(0, calc(var(--theme-topbar-height, calc(var(--su-static48) + var(--su-static8))) * var(--_no-x-offset)), 0);
42
42
  width: 100%;
43
43
  z-index: calc(var(--zi-navigation-fixed) - 1); // Tuck below topbar
44
44
  }
@@ -4,41 +4,41 @@
4
4
  --_bu-bc: transparent;
5
5
  // --_bu-bg: inherit; // [1]
6
6
  --_bu-br: var(--br-md);
7
- --_bu-fc: var(--theme-button-color);
7
+ --_bu-fc: var(--theme-button-color, var(--theme-secondary-400));
8
8
  --_bu-focus-ring: 0 0 0 var(--su-static4) var(--focus-ring);
9
9
  --_bu-fs: var(--fs-body1);
10
10
  --_bu-p: 0.8em;
11
11
  // STATE AND INTERACTION CUSTOM PROPERTIES
12
12
  --_bu-bc-selected: transparent;
13
- --_bu-bg-active: var(--theme-button-active-background-color);
14
- --_bu-bg-hover: var(--theme-button-hover-background-color);
15
- --_bu-bg-selected: var(--theme-button-selected-background-color);
16
- --_bu-fc-active: var(--theme-button-hover-color); // Note: hover color used here intentionally
17
- --_bu-fc-hover: var(--theme-button-hover-color);
18
- --_bu-fc-selected: var(--theme-button-selected-color);
13
+ --_bu-bg-active: var(--theme-button-active-background-color, var(--theme-secondary-300));
14
+ --_bu-bg-hover: var(--theme-button-hover-background-color, var(--theme-secondary-200));
15
+ --_bu-bg-selected: var(--theme-button-selected-background-color, var(--theme-secondary-300));
16
+ --_bu-fc-active: var(--theme-button-hover-color, var(--theme-secondary-500)); // Note: hover color used here intentionally
17
+ --_bu-fc-hover: var(--theme-button-hover-color, var(--theme-secondary-500));
18
+ --_bu-fc-selected: var(--theme-button-selected-color, var(--theme-secondary-600));
19
19
  // Filled
20
20
  --_bu-filled-bc: transparent;
21
21
  --_bu-filled-bc-active: transparent;
22
22
  --_bu-filled-bc-selected: transparent;
23
- --_bu-filled-bg: var(--theme-button-primary-background-color);
24
- --_bu-filled-bg-active: var(--theme-button-primary-active-background-color);
25
- --_bu-filled-bg-hover: var(--theme-button-primary-hover-background-color);
26
- --_bu-filled-bg-selected: var(--theme-button-primary-selected-background-color);
27
- --_bu-filled-fc: var(--theme-button-primary-color);
28
- --_bu-filled-fc-active: var(--theme-button-primary-hover-color);
29
- --_bu-filled-fc-hover: var(--theme-button-primary-hover-color);
30
- --_bu-filled-fc-selected: var(--theme-button-primary-selected-color);
23
+ --_bu-filled-bg: var(--theme-button-primary-background-color, var(--theme-secondary-400));
24
+ --_bu-filled-bg-active: var(--theme-button-primary-active-background-color, var(--theme-secondary-600));
25
+ --_bu-filled-bg-hover: var(--theme-button-primary-hover-background-color, var(--theme-secondary-500));
26
+ --_bu-filled-bg-selected: var(--theme-button-primary-selected-background-color, var(--theme-secondary-500));
27
+ --_bu-filled-fc: var(--theme-button-primary-color, var(--white));
28
+ --_bu-filled-fc-active: var(--theme-button-primary-hover-color, var(--white));
29
+ --_bu-filled-fc-hover: var(--theme-button-primary-hover-color, var(--white));
30
+ --_bu-filled-fc-selected: var(--theme-button-primary-selected-color, var(--white));
31
31
  // Outlined
32
- --_bu-outlined-bc: var(--theme-button-outlined-border-color);
32
+ --_bu-outlined-bc: var(--theme-button-outlined-border-color, var(----theme-secondary-400));
33
33
  --_bu-outlined-bg: var(--theme-button-outlined-background-color);
34
- --_bu-outlined-bc-selected: var(--theme-button-outlined-selected-border-color);
35
- --_bu-outlined-bg-selected: var(--theme-button-selected-background-color);
36
- --_bu-outlined-fc-selected: var(--theme-button-selected-color);
34
+ --_bu-outlined-bc-selected: var(--theme-button-outlined-selected-border-color, var(----theme-secondary-400));
35
+ --_bu-outlined-bg-selected: var(--theme-button-selected-background-color, var(--theme-secondary-300));
36
+ --_bu-outlined-fc-selected: var(--theme-button-selected-color, var(--theme-secondary-600));
37
37
  // CHILD COMPONENT CUSTOM PROPERTIES
38
38
  --_bu-badge-o: 0.5;
39
39
  --_bu-dropdown-bw: var(--su-static4);
40
40
  --_bu-number-fc: var(--white);
41
- --_bu-number-fc-filled: var(--theme-button-primary-number-color);
41
+ --_bu-number-fc-filled: var(--theme-button-primary-number-color, var(--theme-secondary-600));
42
42
  --_bu-number-fc-selected: var(--white);
43
43
 
44
44
  // CONTEXTUAL STYLES
@@ -49,7 +49,7 @@
49
49
  --_bu-fc-selected: var(--white);
50
50
  --_bu-outlined-fc-selected: var(--white);
51
51
  --_bu-badge-o: 0.8;
52
- --_bu-number-fc-selected: var(--theme-button-primary-number-color);
52
+ --_bu-number-fc-selected: var(--theme-button-primary-number-color, var(--theme-secondary-600));
53
53
  });
54
54
 
55
55
  // STATES
@@ -306,16 +306,16 @@
306
306
 
307
307
  // DEPRECATED - THE PRIMARY BUTTON STYLE IS TO BE REMOVED WITH V1 COLORS
308
308
  &&__primary {
309
- --_bu-bg: var(--theme-button-primary-background-color);
310
- --_bu-bg-active: var(--theme-button-primary-active-background-color);
311
- --_bu-bg-hover: var(--theme-button-primary-hover-background-color);
312
- --_bu-bg-selected: var(--theme-button-primary-selected-background-color);
313
- --_bu-fc: var(--theme-button-primary-color);
314
- --_bu-fc-active: var(--theme-button-primary-hover-color);
315
- --_bu-fc-hover: var(--theme-button-primary-hover-color);
316
- --_bu-fc-selected: var(--theme-button-primary-selected-color);
317
- --_bu-number-fc: var(--theme-button-primary-number-color);
318
- --_bu-number-fc-selected: var(--theme-button-primary-number-color);
309
+ --_bu-bg: var(--theme-button-primary-background-color, var(--theme-secondary-400));
310
+ --_bu-bg-active: var(--theme-button-primary-active-background-color, var(--theme-secondary-600));
311
+ --_bu-bg-hover: var(--theme-button-primary-hover-background-color, var(--theme-secondary-500));
312
+ --_bu-bg-selected: var(--theme-button-primary-selected-background-color, var(--theme-secondary-500));
313
+ --_bu-fc: var(--theme-button-primary-color, var(--white));
314
+ --_bu-fc-active: var(--theme-button-primary-hover-color, var(--white));
315
+ --_bu-fc-hover: var(--theme-button-primary-hover-color, var(--white));
316
+ --_bu-fc-selected: var(--theme-button-primary-selected-color, var(--white));
317
+ --_bu-number-fc: var(--theme-button-primary-number-color, var(--theme-secondary-600));
318
+ --_bu-number-fc-selected: var(--theme-button-primary-number-color, var(--theme-secondary-600));
319
319
 
320
320
  .highcontrast-mode({
321
321
  --_bu-bc: transparent;
@@ -2,9 +2,9 @@
2
2
  // it's tech debt that'll take some doing in consumer's code to pay down.
3
3
  a,
4
4
  .s-link {
5
- --_li-fc: var(--theme-link-color);
6
- --_li-fc-hover: var(--theme-link-color-hover);
7
- --_li-fc-visited: var(--theme-link-color-visited);
5
+ --_li-fc: var(--theme-link-color, var(--theme-secondary-400));
6
+ --_li-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-400));
7
+ --_li-fc-visited: var(--theme-link-color-visited, var(--theme-secondary-500));
8
8
 
9
9
  // CONTEXTUAL STYLES
10
10
  .highcontrast-mode({
@@ -53,9 +53,9 @@ a,
53
53
  }
54
54
 
55
55
  &__visited { // TODO can we get rid of this? It's only in 3 places in Core and seems to me it doesn't even serve a purpose.
56
- --_li-fc: var(--theme-link-color-visited);
57
- --_li-fc-hover: var(--theme-link-color-hover);
58
- --_li-fc-visited: var(--theme-link-color-visited);
56
+ --_li-fc: var(--theme-link-color-visited, var(--theme-secondary-500));
57
+ --_li-fc-hover: var(--theme-link-color-hover, var(--theme-secondary-400));
58
+ --_li-fc-visited: var(--theme-link-color-visited, var(--theme-secondary-500));
59
59
  }
60
60
 
61
61
  // VARIANTS
@@ -109,7 +109,7 @@
109
109
  &:hover{
110
110
  &,
111
111
  &.s-link__visited {
112
- color: var(--theme-link-color-hover);
112
+ color: var(--theme-link-color-hover, var(--theme-secondary-400));
113
113
  }
114
114
  }
115
115
 
@@ -126,10 +126,10 @@
126
126
  }
127
127
 
128
128
  &.s-link__visited:visited {
129
- color: var(--theme-link-color);
129
+ color: var(--theme-link-color, var(--theme-secondary-400));
130
130
  }
131
131
 
132
- color: var(--theme-link-color);
132
+ color: var(--theme-link-color, var(--theme-secondary-400));
133
133
  cursor: pointer;
134
134
  text-decoration: none;
135
135
  }
@@ -5,9 +5,9 @@
5
5
  --_ps-o: unset;
6
6
  // Child components
7
7
  --_ps-content-excerpt-fc: var(--_ps-state-fc, var(--fc-medium));
8
- --_ps-content-title-a-fc: var(--_ps-state-fc, var(--theme-post-title-color));
9
- --_ps-content-title-a-fc-hover: var(--_ps-state-fc, var(--theme-post-title-color-hover));
10
- --_ps-content-title-a-fc-visited: var(--_ps-state-fc, var(--theme-post-title-color-visited));
8
+ --_ps-content-title-a-fc: var(--_ps-state-fc, var(--theme-post-title-color, var(--theme-link-color, var(--theme-secondary-400))));
9
+ --_ps-content-title-a-fc-hover: var(--_ps-state-fc, var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--theme-secondary-400))));
10
+ --_ps-content-title-a-fc-visited: var(--_ps-state-fc, var(--theme-post-title-color-visited, var(--theme-link-color-visited, var(--theme-secondary-500))));
11
11
  --_ps-stats-ai: flex-end;
12
12
  --_ps-stats-fc: var(--_ps-state-fc, var(--fc-light));
13
13
  --_ps-stats-fd: column;
@@ -117,9 +117,9 @@
117
117
  &:not(.s-post-summary__deleted):not(.s-post-summary__ignored) {
118
118
  --_ps-bg: var(--yellow-200);
119
119
  --_ps-stats-fc: var(--black-400);
120
- --_ps-content-title-a-fc: var(--theme-post-title-color);
121
- --_ps-content-title-a-fc-hover: var(--theme-post-title-color-hover);
122
- --_ps-content-title-a-fc-visited: var(--theme-post-title-color-visited);
120
+ --_ps-content-title-a-fc: var(--theme-post-title-color, var(--theme-link-color, var(--theme-secondary-400)));
121
+ --_ps-content-title-a-fc-hover: var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--theme-secondary-400)));
122
+ --_ps-content-title-a-fc-visited: var(--theme-post-title-color-visited, var(--theme-link-color-visited, var(--theme-secondary-500)));
123
123
 
124
124
  .s-user-card {
125
125
  a {
@@ -208,7 +208,7 @@
208
208
  .break-word;
209
209
  .v-truncate2;
210
210
  color: var( --_ps-content-excerpt-fc);
211
- font-family: var(--theme-post-body-font-family);
211
+ font-family: var(--theme-post-body-font-family, var(--theme-body-font-family));
212
212
  margin-top: calc(var(--su2) * -1);
213
213
  margin-bottom: var(--su8);
214
214
  }
@@ -240,7 +240,7 @@
240
240
 
241
241
  .break-word;
242
242
  color: var(--_ps-content-title-a-fc);
243
- font-family: var(--theme-post-title-font-family);
243
+ font-family: var(--theme-post-title-font-family, var(--theme-body-font-family));
244
244
  }
245
245
 
246
246
  .iconShield {
@@ -74,7 +74,7 @@
74
74
  // CHILD ELEMENTS
75
75
  *:not(.s-code-block) {
76
76
  > a code {
77
- color: var(--theme-link-color); // When contained within a link, we want the code to be link-colored
77
+ color: var(--theme-link-color, var(--theme-secondary-400)); // When contained within a link, we want the code to be link-colored
78
78
  }
79
79
 
80
80
  > code {
@@ -1,13 +1,13 @@
1
1
  .s-tag {
2
- --_ta-bc: var(--theme-tag-border-color);
3
- --_ta-bc-hover: var(--theme-tag-hover-border-color);
2
+ --_ta-bc: var(--theme-tag-border-color, transparent);
3
+ --_ta-bc-hover: var(--theme-tag-hover-border-color, transparent);
4
4
  --_ta-bc-selected: transparent;
5
- --_ta-bg: var(--theme-tag-background-color);
6
- --_ta-bg-hover: var(--theme-tag-hover-background-color);
5
+ --_ta-bg: var(--theme-tag-background-color, var(----theme-secondary-100));
6
+ --_ta-bg-hover: var(--theme-tag-hover-background-color, var(--theme-secondary-200));
7
7
  --_ta-bg-selected: var(--theme-secondary-300);
8
8
  --_ta-br: var(--br-sm);
9
- --_ta-fc: var(--theme-tag-color);
10
- --_ta-fc-hover: var(--theme-tag-hover-color);
9
+ --_ta-fc: var(--theme-tag-color, var(----theme-secondary-500));
10
+ --_ta-fc-hover: var(--theme-tag-hover-color, var(--theme-secondary-600));
11
11
  --_ta-fc-selected: var(--theme-secondary-600);
12
12
  --_ta-fs: var(--fs-caption);
13
13
  --_ta-lh: 1.846153846;
@@ -8,26 +8,26 @@
8
8
  min-width: auto;
9
9
  width: 100%;
10
10
  z-index: var(--zi-navigation-fixed);
11
- background-color: var(--theme-topbar-background-color);
12
- height: var(--theme-topbar-height);
11
+ background-color: var(--theme-topbar-background-color, var(--white));
12
+ height: var(--theme-topbar-height, calc(var(--su-static48) + var(--su-static8)));
13
13
  display: flex;
14
- border-top: var(--theme-topbar-accent-border);
15
- border-bottom: var(--theme-topbar-bottom-border);
14
+ border-top: var(--theme-topbar-accent-border, 3px solid var(--theme-primary));
15
+ border-bottom: var(--theme-topbar-bottom-border, 1px solid var(--black-225));
16
16
  position: relative;
17
17
  align-items: center;
18
18
 
19
19
  // Redefine the variables for extra contrast in high-contrast mode
20
20
  .highcontrast-mode({
21
21
  // Search input
22
- --theme-topbar-search-color: var(--theme-topbar-item-color);
23
- --theme-topbar-search-background: var(--theme-topbar-background-color);
24
- --theme-topbar-search-placeholder: var(--theme-topbar-item-color);
25
- --theme-topbar-search-border: var(--theme-topbar-item-color);
26
- --theme-topbar-search-border-focus: var(--theme-topbar-item-color);
22
+ --theme-topbar-search-color: var(--theme-topbar-item-color, var(--black-500));
23
+ --theme-topbar-search-background: var(--theme-topbar-background-color, var(--white));
24
+ --theme-topbar-search-placeholder: var(--theme-topbar-item-color, var(--black-500));
25
+ --theme-topbar-search-border: var(--theme-topbar-item-color, var(--black-500));
26
+ --theme-topbar-search-border-focus: var(--theme-topbar-item-color, var(--black-500));
27
27
 
28
28
  // Search switcher
29
- --theme-topbar-select-color: var(--theme-topbar-item-color);
30
- --theme-topbar-select-background: var(--theme-topbar-background-color);
29
+ --theme-topbar-select-color: var(--theme-topbar-item-color, var(--black-500));
30
+ --theme-topbar-select-background: var(--theme-topbar-background-color, var(--white));
31
31
 
32
32
  // Topbar items
33
33
  --theme-topbar-item-color: var(--black-600);
@@ -57,11 +57,11 @@
57
57
  }
58
58
 
59
59
  a.s-topbar--logo:hover {
60
- background-color: var(--theme-topbar-item-background-hover);
60
+ background-color: var(--theme-topbar-item-background-hover, var(--black-200));
61
61
  }
62
62
 
63
63
  a.s-topbar--logo.is-selected {
64
- background-color: var(--theme-topbar-item-background-hover);
64
+ background-color: var(--theme-topbar-item-background-hover, var(--black-200));
65
65
  }
66
66
 
67
67
  .s-topbar--menu-btn {
@@ -80,7 +80,7 @@
80
80
  &:after {
81
81
  width: var(--su-static16);
82
82
  height: var(--su-static2);
83
- background-color: var(--theme-topbar-item-color);
83
+ background-color: var(--theme-topbar-item-color, var(--black-500));
84
84
  position: relative;
85
85
  }
86
86
 
@@ -102,7 +102,7 @@
102
102
 
103
103
  // Transforming hamburger into x
104
104
  &.is-selected {
105
- color: var(--theme-topbar-item-color-current);
105
+ color: var(--theme-topbar-item-color-current, var(--black));
106
106
  background-color: var(--theme-topbar-item-background-current);
107
107
 
108
108
  span {
@@ -119,22 +119,22 @@
119
119
  }
120
120
 
121
121
  &:hover {
122
- color: var(--theme-topbar-item-color-hover);
123
- background-color: var(--theme-topbar-item-background-hover);
122
+ color: var(--theme-topbar-item-color-hover, var(--black-600));
123
+ background-color: var(--theme-topbar-item-background-hover, var(--black-200));
124
124
  }
125
125
  }
126
126
 
127
127
  .s-navigation {
128
128
  .s-navigation--item:focus-visible {
129
- box-shadow: var(--theme-topbar-search-shadow-focus);
129
+ box-shadow: var(--theme-topbar-search-shadow-focus, 0 0 0 var(--su-static4) var(--focus-ring));
130
130
  }
131
131
  .s-navigation--item:not(.is-selected) {
132
- color: var(--theme-topbar-item-color);
132
+ color: var(--theme-topbar-item-color, var(--black-500));
133
133
  }
134
134
 
135
135
  .s-navigation--item:not(.is-selected):hover {
136
- color: var(--theme-topbar-item-color-hover);
137
- background-color: var(--theme-topbar-item-background-hover);
136
+ color: var(--theme-topbar-item-color-hover, var(--black-600));
137
+ background-color: var(--theme-topbar-item-background-hover, var(--black-200));
138
138
  }
139
139
  }
140
140
  }
@@ -166,7 +166,7 @@
166
166
  --theme-topbar-item-color-hover: .set-black()[600];
167
167
  --theme-topbar-item-background-hover: .set-black()[200];
168
168
  --theme-topbar-item-color-current: var(--_black-static);
169
- --theme-topbar-item-border-current: var(--theme-primary);
169
+ // --theme-topbar-item-border-current: var(--theme-primary); // As of Stacks v2, this is unused
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
@@ -218,7 +218,7 @@
218
218
  --theme-topbar-item-color-hover: var(--_white-static);
219
219
  --theme-topbar-item-background-hover: .set-black()[500];
220
220
  --theme-topbar-item-color-current: var(--_white-static);
221
- --theme-topbar-item-border-current: var(--theme-primary);
221
+ // --theme-topbar-item-border-current: var(--theme-primary); // As of Stacks v2, this is unused
222
222
 
223
223
  // Themed border accent
224
224
  --theme-topbar-accent-border: none;
@@ -267,7 +267,7 @@
267
267
  margin-left: auto; // Push this section as far to the right as possible
268
268
 
269
269
  .s-topbar--item:not(.s-topbar--item__unset) {
270
- color: var(--theme-topbar-item-color);
270
+ color: var(--theme-topbar-item-color, var(--black-500));
271
271
  display: inline-flex;
272
272
  align-items: center;
273
273
  padding: 0 calc(var(--su12) - var(--su2));
@@ -280,14 +280,14 @@
280
280
  &.is-selected,
281
281
  &.is-selected:hover,
282
282
  &.is-selected:focus {
283
- color: var(--theme-topbar-item-color-hover);
284
- background-color: var(--theme-topbar-item-background-hover);
283
+ color: var(--theme-topbar-item-color-hover, var(--black-600));
284
+ background-color: var(--theme-topbar-item-background-hover, var(--black-200));
285
285
  text-decoration: none;
286
286
  outline: none;
287
287
 
288
288
  .s-activity-indicator {
289
289
  top: calc(50% - calc(var(--su16) + var(--su2))); // 50% - 18px
290
- box-shadow: 0 0 0 var(--su-static2) var(--theme-topbar-item-background-hover);
290
+ box-shadow: 0 0 0 var(--su-static2) var(--theme-topbar-item-background-hover, var(--black-200));
291
291
  }
292
292
  }
293
293
 
@@ -300,7 +300,7 @@
300
300
  top: calc(50% - calc(var(--su12) + var(--su2))); // 50% - 14px
301
301
  right: var(--su-static2);
302
302
  transition: top var(--te-smooth) 0.15s;
303
- box-shadow: 0 0 0 var(--su-static2) var(--theme-topbar-background-color);
303
+ box-shadow: 0 0 0 var(--su-static2) var(--theme-topbar-background-color, var(--white));
304
304
  }
305
305
  }
306
306
 
@@ -325,11 +325,11 @@
325
325
  margin-right: var(--su8);
326
326
  flex-shrink: 0;
327
327
 
328
- .topbar-notice-styles(transparent, transparent, var(--theme-topbar-item-color));
328
+ .topbar-notice-styles(transparent, transparent, var(--theme-topbar-item-color, var(--black-500)));
329
329
 
330
330
  &:hover,
331
331
  &:focus {
332
- .topbar-notice-styles(var(--theme-topbar-item-background-hover), var(--theme-topbar-item-background-hover), var(--theme-topbar-item-color-hover));
332
+ .topbar-notice-styles(var(--theme-topbar-item-background-hover, var(--black-200)), var(--theme-topbar-item-background-hover, var(--black-200)), var(--theme-topbar-item-color-hover, var(--black-600)));
333
333
  }
334
334
 
335
335
  &.is-unread {
@@ -358,26 +358,26 @@
358
358
  flex-grow: 1;
359
359
 
360
360
  .s-input {
361
- border-color: var(--theme-topbar-search-border);
362
- background-color: var(--theme-topbar-search-background);
361
+ border-color: var(--theme-topbar-search-border, var(--black-300));
362
+ background-color: var(--theme-topbar-search-background, var(--white));
363
363
  box-shadow: var(--theme-topbar-search-shadow);
364
- color: var(--theme-topbar-search-color);
364
+ color: var(--theme-topbar-search-color, var(--black-500));
365
365
  display: block;
366
366
  line-height: @inputLineHeights;
367
367
 
368
368
  &:focus {
369
- border-color: var(--theme-topbar-search-border-focus);
370
- box-shadow: var(--theme-topbar-search-shadow-focus);
369
+ border-color: var(--theme-topbar-search-border-focus, var(--blue-400));
370
+ box-shadow: var(--theme-topbar-search-shadow-focus, 0 0 0 var(--su-static4) var(--focus-ring));
371
371
  }
372
372
 
373
373
  &::placeholder {
374
- color: var(--theme-topbar-search-placeholder);
374
+ color: var(--theme-topbar-search-placeholder, var(--black-400));
375
375
  font-style: normal;
376
376
  }
377
377
  }
378
378
 
379
379
  .s-input-icon {
380
- color: var(--theme-topbar-search-placeholder);
380
+ color: var(--theme-topbar-search-placeholder, var(--black-400));
381
381
  }
382
382
  }
383
383
 
@@ -386,7 +386,7 @@
386
386
 
387
387
  align-self: stretch;
388
388
  margin-right: calc(var(--su-static1) * -1); //-1px
389
- color: var(--theme-topbar-select-color);
389
+ color: var(--theme-topbar-select-color, var(--black-500));
390
390
 
391
391
  &:before,
392
392
  &:after {
@@ -399,13 +399,13 @@
399
399
  height: 100%;
400
400
  line-height: @inputLineHeights;
401
401
 
402
- border-color: var(--theme-topbar-search-border);
403
- background-color: var(--theme-topbar-select-background);
404
- color: var(--theme-topbar-select-color);
402
+ border-color: var(--theme-topbar-search-border, var(--black-300));
403
+ background-color: var(--theme-topbar-select-background, var(--black-200));
404
+ color: var(--theme-topbar-select-color, var(--black-500));
405
405
 
406
406
  &:focus {
407
- border-color: var(--theme-topbar-search-border-focus);
408
- box-shadow: var(--theme-topbar-search-shadow-focus);
407
+ border-color: var(--theme-topbar-search-border-focus, var(--blue-400));
408
+ box-shadow: var(--theme-topbar-search-shadow-focus, 0 0 0 var(--su-static4) var(--focus-ring));
409
409
  z-index: var(--zi-selected);
410
410
  }
411
411
  }
@@ -423,7 +423,7 @@
423
423
  top: 100%;
424
424
  max-width: 100%;
425
425
  padding: var(--su8) var(--su12);
426
- background: var(--theme-topbar-item-background-hover);
426
+ background: var(--theme-topbar-item-background-hover, var(--black-200));
427
427
 
428
428
  &.s-topbar--searchbar__open {
429
429
  display: flex;
@@ -401,6 +401,7 @@ body .themed {
401
401
  --theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), calc(var(--theme-base-secondary-color-s) + 0 * 1%), clamp(5%, calc(var(--theme-base-secondary-color-l) + -26 * 1%), 40%));
402
402
  --theme-secondary-custom: var(--theme-secondary-custom-400);
403
403
  --theme-secondary-custom-focus-ring: hsla(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l), 0.15);
404
+ color: var(--theme-body-font-color, var(--black-600));
404
405
  }
405
406
  "
406
407
  `;
@@ -6,104 +6,6 @@ exports[`colors > should output all the css generated by the v2 colors/theming g
6
6
  --_o-disabled-static: 0.5;
7
7
  --_black-static: hsl(0, 0%, 0%);
8
8
  --_white-static: hsl(0, 0%, 100%);
9
- }
10
-
11
- body,
12
- body.themed,
13
- body .themed {
14
- color: var(--theme-body-font-color, var(--black-600));
15
- }
16
-
17
- body:not(.theme-highcontrast):not(.theme-dark),
18
- body.theme-highcontrast:not(.theme-dark),
19
- body:not(.theme-highcontrast).theme-dark .theme-light__forced,
20
- body.theme-highcontrast.theme-dark .theme-light__forced,
21
- body:not(.theme-highcontrast).theme-system .theme-light__forced,
22
- body.theme-highcontrast.theme-system .theme-light__forced,
23
- body:not(.theme-highcontrast).theme-dark,
24
- body.theme-highcontrast.theme-dark,
25
- body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced,
26
- body.theme-highcontrast:not(.theme-dark) .theme-dark__forced,
27
- body:not(.theme-highcontrast):not(.theme-dark).themed,
28
- body.theme-highcontrast:not(.theme-dark).themed,
29
- body:not(.theme-highcontrast).theme-dark .theme-light__forced.themed,
30
- body.theme-highcontrast.theme-dark .theme-light__forced.themed,
31
- body:not(.theme-highcontrast).theme-system .theme-light__forced.themed,
32
- body.theme-highcontrast.theme-system .theme-light__forced.themed,
33
- body:not(.theme-highcontrast).theme-dark.themed,
34
- body.theme-highcontrast.theme-dark.themed,
35
- body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced.themed,
36
- body.theme-highcontrast:not(.theme-dark) .theme-dark__forced.themed,
37
- body:not(.theme-highcontrast):not(.theme-dark) .themed,
38
- body.theme-highcontrast:not(.theme-dark) .themed,
39
- body:not(.theme-highcontrast).theme-dark .theme-light__forced .themed,
40
- body.theme-highcontrast.theme-dark .theme-light__forced .themed,
41
- body:not(.theme-highcontrast).theme-system .theme-light__forced .themed,
42
- body.theme-highcontrast.theme-system .theme-light__forced .themed,
43
- body:not(.theme-highcontrast).theme-dark .themed,
44
- body.theme-highcontrast.theme-dark .themed,
45
- body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed,
46
- body.theme-highcontrast:not(.theme-dark) .theme-dark__forced .themed {
47
- --theme-body-font-color: var(--black-600);
48
- --theme-background-color: var(--white);
49
- --theme-link-color: var(--theme-secondary-400);
50
- --theme-link-color-hover: var(--theme-secondary-400);
51
- --theme-link-color-visited: var(--theme-secondary-500);
52
- --theme-button-color: var(--theme-secondary-400);
53
- --theme-button-background-color: transparent;
54
- --theme-button-hover-color: var(--theme-secondary-500);
55
- --theme-button-hover-background-color: var(--theme-secondary-200);
56
- --theme-button-active-background-color: var(--theme-secondary-300);
57
- --theme-button-selected-color: var(--theme-secondary-600);
58
- --theme-button-selected-background-color: var(--theme-secondary-300);
59
- --theme-button-primary-color: var(--white);
60
- --theme-button-primary-background-color: var(--theme-secondary-400);
61
- --theme-button-primary-hover-color: var(--white);
62
- --theme-button-primary-hover-background-color: var(--theme-secondary-500);
63
- --theme-button-primary-active-background-color: var(--theme-secondary-600);
64
- --theme-button-primary-selected-color: var(--white);
65
- --theme-button-primary-selected-background-color: var(--theme-secondary-500);
66
- --theme-button-primary-number-color: var(--theme-secondary-600);
67
- --theme-button-filled-color: var(--theme-secondary-500);
68
- --theme-button-filled-background-color: var(--theme-secondary-200);
69
- --theme-button-filled-border-color: var(--theme-secondary-400);
70
- --theme-button-filled-hover-color: var(--theme-secondary-600);
71
- --theme-button-filled-hover-background-color: var(--theme-secondary-300);
72
- --theme-button-filled-active-background-color: var(--theme-secondary-300);
73
- --theme-button-filled-active-border-color: var(--theme-secondary-400);
74
- --theme-button-filled-selected-color: var(--theme-secondary-600);
75
- --theme-button-filled-selected-background-color: var(--theme-secondary-400);
76
- --theme-button-filled-selected-border-color: var(--theme-secondary-400);
77
- --theme-button-outlined-border-color: var(--theme-secondary-400);
78
- --theme-button-outlined-selected-border-color: var(--theme-secondary-400);
79
- --theme-tag-color: var(--theme-secondary-500);
80
- --theme-tag-background-color: var(--theme-secondary-100);
81
- --theme-tag-border-color: transparent;
82
- --theme-tag-hover-color: var(--theme-secondary-600);
83
- --theme-tag-hover-background-color: var(--theme-secondary-200);
84
- --theme-tag-hover-border-color: transparent;
85
- --theme-topbar-height: calc(var(--su-static48) + var(--su-static8));
86
- --theme-topbar-background-color: var(--white);
87
- --theme-topbar-search-color: var(--black-500);
88
- --theme-topbar-search-background: var(--white);
89
- --theme-topbar-search-placeholder: var(--black-400);
90
- --theme-topbar-search-border: var(--black-300);
91
- --theme-topbar-search-border-focus: var(--blue-400);
92
- --theme-topbar-search-shadow-focus: 0 0 0 var(--su-static4) var(--focus-ring);
93
- --theme-topbar-select-color: var(--black-500);
94
- --theme-topbar-select-background: var(--black-200);
95
- --theme-topbar-item-color: var(--black-500);
96
- --theme-topbar-item-color-hover: var(--black-600);
97
- --theme-topbar-item-background-hover: var(--black-200);
98
- --theme-topbar-item-color-current: var(--black);
99
- --theme-topbar-item-border-current: var(--theme-primary);
100
- --theme-topbar-accent-border: 3px solid var(--theme-primary);
101
- --theme-topbar-bottom-border: 1px solid var(--black-225);
102
- --theme-post-title-color: var(--theme-link-color);
103
- --theme-post-title-color-hover: var(--theme-link-color-hover);
104
- --theme-post-title-color-visited: var(--theme-link-color-visited);
105
- --theme-post-title-font-family: var(--theme-body-font-family);
106
- --theme-post-body-font-family: var(--theme-body-font-family);
107
9
  --bg-error: var(--red-400);
108
10
  --bg-danger: var(--red-400);
109
11
  --bg-success: var(--green-400);
@@ -248,6 +150,7 @@ body:not(.theme-highcontrast).theme-system .theme-light__forced .themed {
248
150
  --theme-secondary-custom-600: hsl(var(--theme-base-secondary-color-h), calc(var(--theme-base-secondary-color-s) + 0 * 1%), clamp(5%, calc(var(--theme-base-secondary-color-l) + -26 * 1%), 40%));
249
151
  --theme-secondary-custom: var(--theme-secondary-custom-400);
250
152
  --theme-secondary-custom-focus-ring: hsla(var(--theme-base-secondary-color-h), var(--theme-base-secondary-color-s), var(--theme-base-secondary-color-l), 0.15);
153
+ color: var(--theme-body-font-color, var(--black-600));
251
154
  }
252
155
 
253
156
  body:not(.theme-highcontrast).theme-dark,
@@ -374,6 +277,7 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
374
277
  --theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + 0 * 1%), clamp(85%, calc(var(--theme-dark-secondary-color-l) + 20 * 1%), 95%));
375
278
  --theme-dark-secondary-custom: var(--theme-dark-secondary-custom-400);
376
279
  --theme-dark-secondary-custom-focus-ring: hsla(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l), 0.25);
280
+ color: var(--theme-body-font-color, var(--black-600));
377
281
  }
378
282
 
379
283
  @media (prefers-color-scheme: dark) {
@@ -498,6 +402,7 @@ body:not(.theme-highcontrast):not(.theme-dark) .theme-dark__forced .themed {
498
402
  --theme-dark-secondary-custom-600: hsl(var(--theme-dark-secondary-color-h), calc(var(--theme-dark-secondary-color-s) + 0 * 1%), clamp(85%, calc(var(--theme-dark-secondary-color-l) + 20 * 1%), 95%));
499
403
  --theme-dark-secondary-custom: var(--theme-dark-secondary-custom-400);
500
404
  --theme-dark-secondary-custom-focus-ring: hsla(var(--theme-dark-secondary-color-h), var(--theme-dark-secondary-color-s), var(--theme-dark-secondary-color-l), 0.25);
405
+ color: var(--theme-body-font-color, var(--black-600));
501
406
  }
502
407
  }
503
408
 
@@ -1,6 +1,5 @@
1
1
  @import (reference) "./mixins.less";
2
2
  @import (reference) "./color-sets.less";
3
- @import (reference) "./theme.less";
4
3
 
5
4
  // Type definitions
6
5
  //
@@ -37,6 +36,7 @@
37
36
  .create-theme-variables(@mode);
38
37
  .create-custom-theme-variables(primary, @modeCustom);
39
38
  .create-custom-theme-variables(secondary, @modeCustom);
39
+ color: var(--theme-body-font-color, var(--black-600));
40
40
  }
41
41
  }
42
42