themes-earthen/text_override.templ
Alex Dunmow 49401f1b41 initial: theme plugin earthen
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/earthen.

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

21 lines
609 B
Plaintext

package main
// earthenTextComponent renders body text with optional lede drop-cap.
templ earthenTextComponent(text, class, variant string) {
if variant == "lede" {
<div
class={ "earthen-text earthen-lede drop-cap-host max-w-none flex-1", class }
style={ "font-family: var(--font-body, \"Spectral\", Georgia, serif); color: hsl(var(--foreground));" }
>
@templ.Raw(text)
</div>
} else {
<div
class={ "earthen-text max-w-none flex-1", class }
style={ "font-family: var(--font-body, \"Spectral\", Georgia, serif); color: hsl(var(--foreground));" }
>
@templ.Raw(text)
</div>
}
}