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

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

18 lines
447 B
Go

package main
import (
"bytes"
"context"
)
// BrutalistTextBlock overrides the built-in text block with brutalist
// measure (wider, no max-w-prose), Inter body, and mono <code> styling.
func BrutalistTextBlock(ctx context.Context, content map[string]any) string {
text := getString(content, "text")
class := getString(content, "class")
var buf bytes.Buffer
_ = brutalistTextComponent(text, class).Render(ctx, &buf)
return buf.String()
}