package main // cyberpunkHeadingBaseClass returns default Tailwind classes for each heading level. func cyberpunkHeadingBaseClass(level int) string { switch level { case 1: return "text-4xl md:text-5xl font-bold tracking-tight" case 2: return "text-3xl md:text-4xl font-semibold tracking-tight" case 3: return "text-2xl font-semibold" case 4: return "text-xl font-semibold" case 5: return "text-lg font-medium" case 6: return "text-base font-medium" default: return "text-3xl font-semibold tracking-tight" } } // cyberpunkHeadingComponent renders the override for the built-in heading block. // H1 and H2 get the .glitch class which gives them the RGB-split text-shadow. // H3-H6 get the mono small-caps eyebrow class. templ cyberpunkHeadingComponent(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 }

} }