prongs
GitHub

heading.page

The one title of a page: Settings, Sign in, Privacy policy, a profile name, a marketing headline

Component

Renders

<h1>

Profile

Comes from

starter
Read https://www.prongs.dev/docs/intents/heading/page.md and tell me whether heading.page fits what I am building.

Example

Preview

The quick brown fox

<Text intent="heading.page">The quick brown fox</Text>

Connections

Choosing between neighbours

  • If it is

    Use

  • The one title of a page: Settings, Sign in, Privacy policy, a profile name, a marketing headline

    heading.page
  • A second title on the same page

    heading.section
  • The title of an app page, sign in, settings or a document

    rather than heading.pitch
    heading.page

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 heading.page 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.title

    Page title type

    text-3xl font-bold tracking-tight text-balance
  • tone.default

    Main text colour

    text-foreground
  • heading.page

    The one title of a page: Settings, Sign in, Privacy policy, a profile name, a marketing headline

Final classes
text-3xl font-bold tracking-tight text-balance text-foreground
Definition
TS
'heading.page': {
kind: 'semantic',
description: 'The one title of a page: Settings, Sign in, Privacy policy, a profile name, a marketing headline',
refs: ['typography.title', 'tone.default'],
binding: { element: 'h1' },
notFor: [
{
context: 'a second title on the same page',
instead: 'heading.section',
},
],
},