defaultAccent
untyped stringValue
"#D9A441"
defaultBg
untyped stringValue
"#14161C"
defaultFg
untyped stringValue
"#F4EFE6"
DefaultLayout
untyped stringDefaultLayout is what renders when no layout slot is set. content/layout.md starts as a copy of it; push that slot to depart from it.
Value
":header:\n\n<gno-columns>\n\n<gno-columns-sep />\n:intro:\n\n:links:\n</gno-columns>\n\n## Now\n\n:now:\n\n## Previously\n\n:previously:\n\n## Stack\n\n:stack:\n\n## Before the rabbit hole\n\n:before:\n\n## Numbers\n"...
clockwork
typeValue
v0.clockwork
instance
*v0.clockwork- OID
- 0cb7b1…ee84:4
instance details
Instance
func() home.ThemeInstance returns the theme object, for a caller that would rather register it explicitly than rely on this realm's init having done it.
- OID
- 0cb7b1…ee84:6
Instance details
init.7
func()- OID
- 0cb7b1…ee84:8
init.7 details
header
func() string- OID
- 0cb7b1…ee84:9
header details
divider
func() string- OID
- 0cb7b1…ee84:10
divider details
footer
func() string- OID
- 0cb7b1…ee84:11
footer details
card
func(name string, tagline string, meta string) stringcard draws the header: name, tagline and a meta line on a rounded panel, with a gear on the right. Text is clipped, not wrapped, so keep the tagline to one line.
- OID
- 0cb7b1…ee84:12
card details
image
func(alt string, svg string) stringimage wraps an SVG document as a markdown image with a data: URI. gnoweb rejects every data: image except image/svg+xml, and gno.land's CSP allows data: in img-src, so this is the one way to draw without hosting anything.
- OID
- 0cb7b1…ee84:13
image details
color
func(key string, fallback string) stringcolor returns the style knob when it is a well-formed #RRGGBB, else the default. Knobs are admin-written, but a value is still pasted into markup, so the shape is checked rather than trusted.
- OID
- 0cb7b1…ee84:14
color details
isHexColor
func(s string) bool- OID
- 0cb7b1…ee84:15
isHexColor details
esc
func(s string) stringesc escapes text for an SVG element body or attribute.
- OID
- 0cb7b1…ee84:16