Documentation
¶
Index ¶
- Constants
- func ContrastText(bg string) string
- func Funcs(th Theme) template.FuncMap
- func Link(href, text string) template.HTML
- func ParseFS(th Theme, fsys fs.FS, file string, extra ...template.FuncMap) (*template.Template, error)
- func Render(t *template.Template, data any, th Theme, p Page) (string, error)
- func SafeColor(v, fallback string) string
- func Wrap(th Theme, p Page, body template.HTML) template.HTML
- type Overrides
- type Page
- type Theme
Constants ¶
View Source
const ( DefaultPrimary = "#8e44ad" DefaultPrimaryHover = "#732d91" DefaultText = "#2c3e50" DefaultMutedText = "#64748b" DefaultCardBG = "#ffffff" DefaultBorder = "#e2e8f0" DefaultBackground = "#f4f6f8" DefaultSuccess = "#10b981" DefaultWarning = "#f59e0b" DefaultError = "#ef4444" )
Variables ¶
This section is empty.
Functions ¶
func ContrastText ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.