diff --git a/themes/starless/layouts/_default/baseof.html b/themes/starless/layouts/_default/baseof.html
index 1eeae7a..bfdc6a4 100644
--- a/themes/starless/layouts/_default/baseof.html
+++ b/themes/starless/layouts/_default/baseof.html
@@ -4,6 +4,7 @@
+
{{ if .IsHome }}{{ site.Title }}{{ else }}{{ .Title }} | {{ site.Title }}{{ end }}
@@ -87,6 +88,35 @@
display: none !important;
}
+ body {
+ margin: 0;
+ background: rgb(var(--color-surface-rgb));
+ color: rgb(var(--color-on-surface-rgb));
+ }
+
+ aside {
+ color: rgb(var(--color-on-surface-variant-rgb));
+ }
+
+ /* ponytail: pin first-paint colors so Dark Reader cannot repaint default blue UI before Tailwind loads. */
+ aside > header a,
+ aside nav > div > a,
+ [data-search-open],
+ #search-dialog input,
+ #search-dialog [data-search-close] {
+ color: rgb(var(--color-on-surface-rgb));
+ }
+
+ [data-search-open] {
+ background: transparent;
+ border: 1px solid rgb(var(--color-outline-rgb) / 0.3);
+ }
+
+ #search-dialog input {
+ background: rgb(var(--color-surface-container-lowest-rgb) / 0.95);
+ border: 1px solid rgb(var(--color-outline-rgb) / 0.3);
+ }
+
.tree-item {
position: relative;
}