themes

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTheme = "github"

Variables

This section is empty.

Functions

func GetCSS

func GetCSS(themeName string) (string, error)

func IsBuiltinTheme

func IsBuiltinTheme(name string) bool

func ListThemes

func ListThemes() []string

func LoadCustomCSS

func LoadCustomCSS(path string) (string, error)

func Render

func Render(w io.Writer, data RenderData) error

Types

type RenderData

type RenderData struct {
	Title string
	CSS   template.CSS
	Body  template.HTML
}

Jump to

Keyboard shortcuts

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