Skip to content

Commit 716c4db

Browse files
author
Robin Marillia
committed
fix: better anchor colors from Primer primitives
1 parent bb28e3d commit 716c4db

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ html[data-prefers-color-scheme=light] {
1414
--color-bg-canvas-tertiary: #f6f8fa;
1515
--color-text-primary: #24292e;
1616
--color-markdown-code-bg: rgba(27, 31, 35, 0.05);
17+
--color-accent-fg: #0969da;
1718
}
1819
/* Prefers dark */
1920
html[data-prefers-color-scheme=dark] {
@@ -22,6 +23,7 @@ html[data-prefers-color-scheme=dark] {
2223
--color-bg-canvas-tertiary: #161b22;
2324
--color-text-primary: #c9d1d9;
2425
--color-markdown-code-bg: rgba(240, 246, 252, 0.05);
26+
--color-accent-fg: #58a6ff;
2527
}
2628
@media (prefers-color-scheme: dark) {
2729
:root:not([data-prefers-color-scheme=light]) {
@@ -30,6 +32,7 @@ html[data-prefers-color-scheme=dark] {
3032
--color-bg-canvas-tertiary: #161b22;
3133
--color-text-primary: #c9d1d9;
3234
--color-markdown-code-bg: rgba(240, 246, 252, 0.05);
35+
--color-accent-fg: #58a6ff;
3336
}
3437
}
3538

@@ -38,6 +41,10 @@ body {
3841
color: var(--color-text-primary);
3942
}
4043

44+
a {
45+
color: var(--color-accent-fg)
46+
}
47+
4148
/* Sidebar */
4249
/* NB: `!important` is already used; so it’s required here */
4350
.bg-gray { background-color: var(--color-bg-canvas-tertiary) !important }

0 commit comments

Comments
 (0)