Skip to content

Commit 90be0c3

Browse files
fix: correct dark mode accent colors and TOC pill borders to match Docusaurus
1 parent adabdc1 commit 90be0c3

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

β€Žsite_jaspr/lib/components/page_navigation.dartβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class PageNavigation extends StatelessComponent {
6666
css('&').styles(
6767
display: Display.flex,
6868
padding: Padding.symmetric(horizontal: 1.rem, vertical: 0.75.rem),
69-
border: Border.all(color: Color('#0000001a'), width: 1.px),
69+
border: Border.all(color: Color('#0000001f'), width: 1.px),
7070
radius: BorderRadius.circular(8.px),
7171
flexDirection: FlexDirection.column,
7272
gap: Gap(column: 0.25.rem),

β€Žsite_jaspr/lib/styles/site_styles.dartβ€Ž

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,13 +298,13 @@ List<StyleRule> get siteStyles => [
298298
css('.sidebar .sidebar-group li div.active a').styles(
299299
color: Color('#2a48df'),
300300
),
301-
// Dark mode: use #44fac7 for active (--ifm-color-primary-dark)
301+
// Dark mode: use #66fbd1 for active (--ifm-color-primary)
302302
css('[data-theme="dark"] .sidebar .sidebar-group li div.active').styles(
303-
color: Color('#44fac7'),
304-
raw: {'background-color': 'color-mix(in srgb, #44fac7 10%, transparent)'},
303+
color: Color('#66fbd1'),
304+
raw: {'background-color': 'color-mix(in srgb, #66fbd1 10%, transparent)'},
305305
),
306306
css('[data-theme="dark"] .sidebar .sidebar-group li div.active a').styles(
307-
color: Color('#44fac7'),
307+
color: Color('#66fbd1'),
308308
),
309309

310310
// ───────────────────────────────────────────────────────────────────────
@@ -367,13 +367,13 @@ List<StyleRule> get siteStyles => [
367367
),
368368
css('[data-theme="dark"] .page-nav-prev:hover, [data-theme="dark"] .page-nav-next:hover')
369369
.styles(
370-
border: Border.all(color: Color('#44fac7'), width: 1.px),
370+
border: Border.all(color: Color('#66fbd1'), width: 1.px),
371371
),
372372
css('[data-theme="dark"] .page-nav-label').styles(
373373
color: Colors.white,
374374
),
375375
css('[data-theme="dark"] .page-nav-title').styles(
376-
color: Color('#44fac7'),
376+
color: Color('#66fbd1'),
377377
),
378378

379379
// ───────────────────────────────────────────────────────────────────────
@@ -432,13 +432,13 @@ List<StyleRule> get siteStyles => [
432432
color: Color('#a0a0a0'),
433433
),
434434
css('[data-theme="dark"] .toc a:hover').styles(
435-
color: Color('#44fac7'),
435+
color: Color('#66fbd1'),
436436
),
437437
css('[data-theme="dark"] .toc a.toc-active').styles(
438-
color: Color('#44fac7'),
438+
color: Color('#66fbd1'),
439439
),
440-
css('[data-theme="dark"] .toc li[style] a').styles(
441-
border: Border.none,
440+
css('[data-theme="dark"] .toc li[style*="0.75"] a').styles(
441+
border: Border.all(color: Color('#444950'), width: 1.px),
442442
),
443443
// Remove main-container side padding at wide viewports
444444
css.media(MediaQuery.all(minWidth: 1280.px), [

0 commit comments

Comments
Β (0)