theme

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var SystemThemeScript, SystemThemeScriptSha256Hash = mustGetSystemThemeScript()

Functions

This section is empty.

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