Ply typography is a type-scale directive: plyTypography="display|title|heading|subheading|body|caption|overline". plyHeadingText is the heading step. Copy typography in and put the attribute on native headings and paragraphs — it does not change the HTML tag.
Install with npx ply-ui-cli add typography.
Display
Title
Heading
Subheading
Body copy for paragraphs and helper text.
Caption
Overline
<h1 plyTypography="display">Display</h1> <p plyTypography="body">Body copy.</p> <h2 plyHeadingText>Section</h2>
TypeScript
import { Component } from '@angular/core';
// Install: npx ply-ui-cli add typography
// Paths are relative to aliases.components (default: src/app/components)
import { BaseHeadingDirective } from './typography/ply-heading.directive';
@Component({
selector: 'app-typography-example',
imports: [
BaseHeadingDirective
],
template: `...`
})
export class TypographyExampleComponent {}Install
npx ply-ui-cli add typography
npx ply-ui-cli add typography
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.
npx -y ply-ui-mcp
Ply provides standalone components. Import the exact elements you want to use into your component.
// Install: npx ply-ui-cli add typography
// Paths are relative to aliases.components (default: src/app/components)
import { BaseHeadingDirective } from './typography/ply-heading.directive';
@Component({
selector: 'app-your-component',
imports: [
BaseHeadingDirective
],
template: `...`
})
export class YourComponent {} API for typography — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
[plyHeadingText], [plyTypography] | class | string | '' | Additional host CSS classes (merged via cn()). |
[plyHeadingText], [plyTypography] | plyTypography | TypographyVariant | 'heading' | — |
On this page