From b81a2e57bd1ddbbd0da50bd855433316b57ed401 Mon Sep 17 00:00:00 2001 From: ruinivist Date: Mon, 22 Jun 2026 20:26:43 +0000 Subject: [PATCH] fix: add meta scheme dark --- themes/starless/layouts/_default/baseof.html | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) 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; }