Title and legend
Titles¶
A title card with a kicker, title, subtitle and source, placed anywhere and styled with Tailwind words.
Keywords¶
| Keyword | Shows |
|---|---|
title= |
the title; *starred* words take the accent colour |
subtitle= |
a quieter line under the title |
source= |
a small "Source:" line under a rule |
kicker= |
a small uppercase line above the title, with an accent dot |
title_style= |
a card style: place, background, type |
All work on kh.map and kh.Map. An exported page takes the title as its browser tab name.
Basic¶
Editorial: above the map, with an accent word¶
The site-report look: the title sits above the map in a large serif with one word in coral, a kicker line on top, and the legend runs in a row under the map.

kh.map(roads, "theme-silver stroke-[road_class] ramp-zoning width-[rank] width-max-3",
title="Street *types.*", kicker="Layer 08: Streets",
subtitle="Who each street is for, from footpaths to through traffic.",
title_style="above bg-transparent shadow-none p-0 font-serif text-5xl accent-[#e6745c]",
legend={"counts": False, "title": ""}, legend_style="below flex-row bg-transparent shadow-none p-0")
Bold on dark¶
uppercase, italic, weights and tracking- touch the title line only; the subtitle and source keep their normal case.
kh.map(states, "theme-charcoal fill-[density] ramp-terracotta scheme-q5",
title="Density: *where people* crowd", subtitle="People per km2, 2008",
title_style="bottom-left uppercase font-black text-3xl accent-[#d97a5c] rounded-none w-96",
legend={"style": "bar", "title": "People per km2"}, legend_style="top-right rounded-none")

