themeservice

package
v0.2.49 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LightName = "gf-light"
	DarkName  = "gf-dark"
)

Variables

This section is empty.

Functions

func BuildCSS

func BuildCSS(config pageConfig.SiteThemeConfig) string

func ClearCaches

func ClearCaches()

func Defaults

func Defaults() pageConfig.SiteThemeConfig

func LoadConfig

func LoadConfig() pageConfig.SiteThemeConfig

Types

type RuntimeTheme

type RuntimeTheme struct {
	Enabled bool
	Colors  RuntimeThemeColors
	CSS     string
	ETag    string
	Href    string
}

func BuildRuntime

func BuildRuntime(rawConfig pageConfig.SiteThemeConfig) RuntimeTheme

func Runtime

func Runtime() RuntimeTheme

type RuntimeThemeColors

type RuntimeThemeColors struct {
	Light string
	Dark  string
}

func (RuntimeThemeColors) Payload

func (colors RuntimeThemeColors) Payload() map[string]string

Jump to

Keyboard shortcuts

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