Skip to content

Commit fdf8c9f

Browse files
fix: Improve highlight color (#435)
Use a highlight color with better visibility, most relevant for the dark mode: Before: <img width="881" height="174" alt="image" src="https://github.com/user-attachments/assets/11bef5f0-82b5-4d66-b711-78125f5b7fb2" /> After: <img width="877" height="170" alt="image" src="https://github.com/user-attachments/assets/536f584e-0082-46c6-aafc-86385f9d54d1" /> --------- Co-authored-by: Robert Schuster <77234379+therobrob@users.noreply.github.com>
1 parent 5a80a13 commit fdf8c9f

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

assets/sass/_variables.scss

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ $link-default: #ba3d12;
99
$link-special: #000000;
1010
$bg-default: #ffffff;
1111
$bg-neutral: #ebe9e1;
12-
$bg-accent: #ffd900;
13-
$bg-accent2: #daba00;
14-
$bg-accent3: #fff284;
12+
$bg-accent: #ffff00;
13+
$bg-code: #fff284;
1514
$color-onLight: #000000;
1615
$color-table-border: #5b5b5b;
1716

@@ -24,8 +23,7 @@ html {
2423
--bg-default: #{$bg-default};
2524
--bg-neutral: #{$bg-neutral};
2625
--bg-accent: #{$bg-accent};
27-
--bg-accent2: #{$bg-accent2};
28-
--bg-accent3: #{$bg-accent3};
26+
--bg-code: #{$bg-code};
2927
--color-onLight: #{$color-onLight};
3028
--color-table-border: #{$color-table-border};
3129
--color-body: rgb(33, 37, 41);
@@ -51,9 +49,6 @@ html[data-theme="dark"] {
5149
--link-special: #ffffff;
5250
--bg-default: #151b23;
5351
--bg-neutral: #0d1117;
54-
--bg-accent: #86761a;
55-
--bg-accent2: #daba00;
56-
--bg-accent3: #fff284;
5752
--color-onLight: #ffffff;
5853
--color-table-border: #555;
5954
--color-body: #e0e0e0;

assets/sass/content.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ code {
1010
font-size: inherit;
1111
font-weight: 700;
1212
color: $color-onLight;
13-
background-color: var(--bg-accent3);
13+
background-color: var(--bg-code);
1414
padding: 0.2rem 0.8rem;
1515
border-radius: var(--border-radius-s);
1616

assets/sass/search.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ $search-z-index: 12;
127127

128128
.pagefind-ui--reset mark {
129129
background-color: var(--bg-accent);
130-
color: var(--color-body);
130+
color: black;
131131
}
132132

133133
button.pagefind-ui__button {

assets/sass/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ img {
343343
.pagefind-highlight {
344344
padding: 0;
345345
background-color: var(--bg-accent);
346+
color: black;
346347
}
347348

348349
.sr-only {

0 commit comments

Comments
 (0)