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

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

18 lines
438 B
Go

package main
import (
"bytes"
"context"
)
// PastelTextBlock renders text with pastel-dream styling: Nunito body with
// generous line-height (1.75) and wider tracking on small caps.
func PastelTextBlock(ctx context.Context, content map[string]any) string {
text := getString(content, "text")
class := getString(content, "class")
var buf bytes.Buffer
_ = pastelTextComponent(text, class).Render(ctx, &buf)
return buf.String()
}