blob: 6318e5d930d4a5ea96648c3d7492bc08635cab38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<label for="theme-select" class="hidden">colorscheme</label>
<select id="theme-select" name="theme"
aria-label="Switch colorscheme"
class="bg-neutral/10 border-1 border-[var(--text-color)] border-solid rd text-[var(--text-color)] font-serif text-size-[0.5rem] font-extrabold">
{{ $switches := slice "auto" "light" "dark" }}
{{ range $switches }}
<option value="{{ . }}">{{ T (printf "theme.%s" .) }}</option>
{{ end }}
</select>
<noscript>
<style>
#theme-select {
display: none
}
</style>
</noscript>
|