themes-kindergarten/text_override.go
Alex Dunmow ffe46a146c initial: theme plugin kindergarten
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/kindergarten.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:35 +08:00

18 lines
432 B
Go

package main
import (
"bytes"
"context"
)
// KindergartenTextBlock renders text with Nunito body, 1.7 line-height,
// and the rounded ::selection highlight in primary yellow.
func KindergartenTextBlock(ctx context.Context, content map[string]any) string {
text := getString(content, "text")
class := getString(content, "class")
var buf bytes.Buffer
_ = kgTextComponent(text, class).Render(ctx, &buf)
return buf.String()
}