theme

package
v0.85.0-pre.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemValue = "system"
	LightValue  = "light"
	DarkValue   = "dark"
)

Variables

This section is empty.

Functions

func GetSystemThemeScript

func GetSystemThemeScript() template.HTML

func GetSystemThemeScriptSha256Hash

func GetSystemThemeScriptSha256Hash() string

Types

type ThemeData

type ThemeData struct {
	Theme                 string
	ResolvedTheme         string
	ResolvedThemeOpposite string
	HTMLClass             string
}

func GetThemeData

func GetThemeData(r *http.Request) ThemeData

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL