text.lead
Introductory paragraph directly under the title of a page, section or dialog
Read https://www.prongs.dev/docs/intents/text/lead.md and tell me whether text.lead fits what I am building.Text intents
Example
Pack my box with five dozen liquor jugs.
<Text intent="text.lead">Pack my box with five dozen liquor jugs.</Text>Connections
Choosing between neighbours
If it is
Use
Introductory paragraph directly under the title of a page, section or dialog
text.leadThe introduction right under a page title
rather thantext.bodytext.lead
For registry authors
Starter intents. These are the intents prongs add puts in your registry, shown in this site’s theme. Yours are your own registry.ts: rename, restyle and add to them, and see them with prongs add gallery.
What this intent is built from and its entry in components/prongs/registry.ts. You only need this to change how it looks or to add an intent like it.
How text.lead resolves, and its definition
Each layer adds to the one before it; a later class wins over an earlier one that sets the same thing.
typography.leadLarge reading type
text-lg leading-8
tone.mutedSecondary text colour, readable on every surface
text-surface-muted
text.leadIntroductory paragraph directly under the title of a page, section or dialog
text-lg leading-8 text-surface-muted
'text.lead': {
kind: 'semantic',
description: 'Introductory paragraph directly under the title of a page, section or dialog',
refs: ['typography.lead', 'tone.muted'],
binding: { element: 'p' },
},