99 overscroll-behavior : none;
1010}
1111
12- /* Reserve scrollbar space to prevent layout jitter between pages */
13- html {
14- scrollbar-gutter : stable;
12+ /* Prevent modals/dialogs from shifting layout via scroll-lock compensation */
13+ html ,
14+ body {
15+ padding-right : 0 !important ;
16+ margin-right : 0 !important ;
1517}
1618
1719@theme {
18- --color-fd-primary : # 33c482 ;
20+ --color-fd-primary : var (--color-fd-foreground );
21+ }
22+
23+ /* Match landing page dark background (#1b1b1b) */
24+ .dark {
25+ --color-fd-background : hsl (0 , 0% , 10.6% ) !important ;
26+ --color-fd-card : hsl (0 , 0% , 13% ) !important ;
27+ --color-fd-popover : hsl (0 , 0% , 14% ) !important ;
28+ --color-fd-secondary : hsl (0 , 0% , 15.5% ) !important ;
29+ --color-fd-muted : hsl (0 , 0% , 18% ) !important ;
1930}
2031
2132/* Font family utilities */
3243: root {
3344 --fd-border : transparent !important ;
3445 --fd-border-sidebar : transparent !important ;
35- --fd-nav-height : 94 px ; /* Custom navbar height (52px top + 42px tabs) */
46+ --fd-nav-height : 93 px ; /* Custom navbar height (52px top + 1px divider + 40px tabs) */
3647 /* Content container width used to center main content */
3748 --spacing-fd-container : 1400px ;
3849 /* Edge gutter = leftover space on each side of centered container */
@@ -48,27 +59,25 @@ html {
4859 --content-gap : 1.75rem ;
4960}
5061
51- /* Light mode navbar and search styling */
62+ /* Light mode navbar background */
5263: root : not (.dark ) nav {
5364 background-color : hsla (0 , 0% , 96% , 0.85 ) !important ;
5465}
5566
56- : root : not (.dark ) nav button [type = "button" ] {
57- background-color : hsla (0 , 0% , 93% , 0.85 ) !important ;
58- backdrop-filter : blur (33px ) saturate (180% ) !important ;
59- -webkit-backdrop-filter : blur (33px ) saturate (180% ) !important ;
60- color : rgba (0 , 0 , 0 , 0.6 ) !important ;
67+ /* Dark mode navbar background */
68+ : root .dark nav {
69+ background-color : hsla (0 , 0% , 10.6% , 0.92 ) !important ;
6170}
6271
63- : root : not (.dark ) nav button [type = "button" ] kbd {
64- color : rgba (0 , 0 , 0 , 0.6 ) !important ;
72+ : root .dark nav button [type = "button" ] {
73+ background-color : hsla (0 , 0% , 15% , 0.85 ) !important ;
74+ backdrop-filter : blur (33px ) saturate (180% ) !important ;
75+ -webkit-backdrop-filter : blur (33px ) saturate (180% ) !important ;
76+ color : rgba (255 , 255 , 255 , 0.5 ) !important ;
6577}
6678
67- /* Dark mode navbar and search styling */
68- : root .dark nav {
69- background-color : hsla (0 , 0% , 7.04% , 0.92 ) !important ;
70- backdrop-filter : blur (25px ) saturate (180% ) brightness (0.6 ) !important ;
71- -webkit-backdrop-filter : blur (25px ) saturate (180% ) brightness (0.6 ) !important ;
79+ : root .dark nav button [type = "button" ] kbd {
80+ color : rgba (255 , 255 , 255 , 0.4 ) !important ;
7281}
7382
7483/* Floating sidebar appearance - remove background */
@@ -121,11 +130,11 @@ aside#nd-sidebar {
121130/* On mobile, let fumadocs handle the layout natively */
122131@media (min-width : 1024px ) {
123132 : root {
124- --fd-banner-height : 94 px !important ; /* 52px top + 42px tabs */
133+ --fd-banner-height : 93 px !important ; /* 52px top + 1px divider + 40px tabs */
125134 }
126135
127136 # nd-docs-layout {
128- --fd-docs-height : calc (100dvh - 94 px ) !important ; /* 52px top + 42px tabs */
137+ --fd-docs-height : calc (100dvh - 93 px ) !important ; /* 52px top + 1px divider + 40px tabs */
129138 --fd-sidebar-width : 300px !important ;
130139 margin-left : var (--sidebar-offset ) !important ;
131140 margin-right : var (--toc-offset ) !important ;
0 commit comments