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

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

18 lines
449 B
Go

package main
import (
"bytes"
"context"
)
// ScifiTextBlock renders body text with Inter via the --font-body variable.
// Inline numerals retain a tabular-nums treatment via the scifi-text class.
func ScifiTextBlock(ctx context.Context, content map[string]any) string {
text := getString(content, "text")
class := getString(content, "class")
var buf bytes.Buffer
_ = scifiTextComponent(text, class).Render(ctx, &buf)
return buf.String()
}