Skip to content

Commit f4f9043

Browse files
committed
More logical
1 parent 9968ca0 commit f4f9043

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

src/assets/sass/designpatterns.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ main {
3939

4040
$colors: (
4141
"text": var(--clr-text),
42-
"text-visual-de-emphasis": var(--clr-text-secondary),
42+
"text-visual-de-emphasis": var(--clr-text-demoted),
4343
"grad-from": var(--clr-grad-from),
4444
"grad-to": var(--clr-grad-to),
4545
"border": var(--clr-brdr),

src/assets/sass/modules/_forms.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ textarea {
205205
[type="checkbox"] {
206206
&:checked {
207207
border: 0;
208-
background: var(--clr-text-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M13 2.5l-7 7-2-2-2 2 4 4L15 4.5z'/%3E%3C/svg%3E");
208+
background: var(--clr-text-demoted) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M13 2.5l-7 7-2-2-2 2 4 4L15 4.5z'/%3E%3C/svg%3E");
209209

210210
&:hover,
211211
&:active {
@@ -229,7 +229,7 @@ textarea {
229229

230230
&:hover,
231231
&:active {
232-
background-color: var(--clr-heading);
232+
background-color: var( --clr-text-promoted);
233233
}
234234

235235
&:focus {
@@ -247,7 +247,7 @@ textarea {
247247
border-radius: 100%;
248248

249249
&:checked {
250-
border: 5px solid var(--clr-text-secondary);
250+
border: 5px solid var(--clr-text-demoted);
251251

252252
&:hover,
253253
&:active {
@@ -264,7 +264,7 @@ textarea {
264264
[type="radio"]:checked {
265265
&:hover,
266266
&:active {
267-
border-color: var(--clr-heading);
267+
border-color: var( --clr-text-promoted);
268268
}
269269

270270
&:focus {

src/assets/sass/modules/_links.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ h4,
4343
h5,
4444
h6 {
4545
a {
46-
color: var(--clr-heading);
46+
color: var( --clr-text-promoted);
4747

4848
&:hover,
4949
&:active {
50-
color: var(--clr-heading);
51-
text-decoration-color: rgba(var(--clr-heading), 0.5); /* 1 */
50+
color: var( --clr-text-promoted);
51+
text-decoration-color: rgba(var( --clr-text-promoted), 0.5); /* 1 */
5252
}
5353
}
5454
}

src/assets/sass/modules/_lists.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ td {
4747
*/
4848

4949
li::marker {
50-
color: var(--clr-heading);
50+
color: var( --clr-text-promoted);
5151
}
5252

5353
/**
@@ -64,7 +64,7 @@ dt {
6464
margin-bottom: 1em;
6565
padding-top: 1em;
6666
border-top: 1px solid var(--clr-brdr-light);
67-
color: var(--clr-heading);
67+
color: var( --clr-text-promoted);
6868
font-weight: bolder;
6969

7070
code {

src/assets/sass/modules/_navigation.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
&:active {
6161
background-color: var(--clr-nav-active);
62-
color: var(--clr-heading);
62+
color: var( --clr-text-promoted);
6363
text-decoration: none;
6464
}
6565

src/assets/sass/modules/_tables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ thead {
6767
th,
6868
td {
6969
border: 1px solid var(--clr-brdr);
70-
color: var(--clr-heading);
70+
color: var( --clr-text-promoted);
7171
}
7272
}
7373

src/assets/sass/modules/_typography.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ main {
112112
h4,
113113
h5,
114114
h6, {
115-
color: var(--clr-heading);
115+
color: var( --clr-text-promoted);
116116
}
117117
}
118118

@@ -224,7 +224,7 @@ blockquote {
224224
.example {
225225
padding: 1px 0 1px 1.5rem;
226226
border-left: 0.25rem solid var(--clr-info-border);
227-
color: var(--clr-text-secondary);
227+
color: var(--clr-text-demoted);
228228
}
229229

230230
ol.example,
@@ -386,7 +386,7 @@ hr {
386386

387387
.separator {
388388
margin: 0 0.25em;
389-
color: var(--clr-text-secondary);
389+
color: var(--clr-text-demoted);
390390
}
391391

392392
/**

src/assets/sass/style.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
--font-monospaced: Menlo, Consolas, Monaco, monospace;
1414
// text colours
1515
--clr-text: #333333;
16-
--clr-heading: #2b2b2b;
16+
--clr-text-promoted: #2b2b2b;
17+
--clr-text-demoted: #666666;
1718
--clr-text-form: #000000;
1819
--clr-text-placeholder: #999999;
19-
--clr-text-secondary: #666666;
2020
--clr-text-black-enforced: #333333;
2121
--clr-text-white-enforced: #ffffff;
2222
// interaction colours
@@ -80,10 +80,10 @@
8080
:root {
8181
// dark mode text colours
8282
--clr-text: #ced4da;
83-
--clr-heading: #ffffff;
83+
--clr-text-promoted: #ffffff;
84+
--clr-text-demoted: #bcc4cc;
8485
--clr-text-form: #ffffff;
8586
--clr-text-placeholder: #747b82;
86-
--clr-text-secondary: #bcc4cc;
8787
// interaction colours
8888
--clr-a: #9cd7ff;
8989
--clr-a-interact: #bde4ff;

src/docs/design-patterns.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h3>Neutral</h3>
110110
<div class="design-patterns--color design-patterns--clr-brdr-extra-dark"></div>
111111

112112
<p><code>text-visual-de-emphasis</code></p>
113-
<div class="design-patterns--color design-patterns--clr-text-secondary"></div>
113+
<div class="design-patterns--color design-patterns--clr-text-demoted"></div>
114114

115115
<p><code>text</code></p>
116116
<div class="design-patterns--color design-patterns--clr-text"></div>

0 commit comments

Comments
 (0)