package main // earthenHeadingBaseClass returns base classes for each heading level. func earthenHeadingBaseClass(level int) string { switch level { case 1: return "earthen-h1 text-5xl md:text-6xl font-semibold tracking-tight leading-tight" case 2: return "earthen-h2 text-3xl md:text-4xl font-semibold leading-snug crayon-underline" case 3: return "earthen-h3 text-2xl md:text-3xl font-semibold leading-snug" case 4: return "earthen-h4 text-xl md:text-2xl font-semibold" case 5: return "earthen-h5 text-lg font-semibold" case 6: return "earthen-h6 text-base font-semibold uppercase tracking-wider" default: return "earthen-h2 text-3xl md:text-4xl font-semibold" } } // earthenHeadingComponent renders a heading with Earthen styling. templ earthenHeadingComponent(level int, text, textClass string) { switch level { case 1:

{ text }

case 2:

{ text }

case 3:

{ text }

case 4:

{ text }

case 5:
{ text }
case 6:
{ text }
default:

{ text }

} }