Filament typography
Skill viru-janadri/philips-filament-design-toolkit/skills/filament-typography
Typography guidance for Philips Filament Design System. Helps choose the correct text component (Heading, Text, Paragraph) and variant for any context. TRIGGERS: 'which heading to use', 'typography', 'text component', 'font size', 'heading variant', 'what text style for', 'H1 vs H2', 'title vs subtitle'.From its SKILL.md
npx -y skills add viru-janadri/philips-filament-design-toolkit --skill filament-typographyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.0 KB, as published. Nobody here has run it
Filament Typography Guide
Helps you choose the correct Filament typography component and variant for any UI context.
Typography Components
Filament provides three core text components:
| Component | Import | Purpose |
|---|---|---|
Heading | import { Heading } from '@filament/react' | Titles, section headers, page headers |
Text | import { Text } from '@filament/react' | Inline text, labels, descriptions, captions |
Paragraph | import { Paragraph } from '@filament/react' | Block-level body text, multi-line content |
Heading Variants
import { Heading } from '@filament/react';
| Variant | Use Case | Renders as |
|---|---|---|
"page-title" | Main page heading, one per page | <h1> |
"title" | Section titles, dialog titles, card titles | <h2> |
"subtitle" | Sub-section headers, group labels, DataGrid headers | <h3> |
"label" | Form group labels, small section markers | <h4> |
Examples
<Heading variant="page-title">Alarm Management KPI Dashboard</Heading>
<Heading variant="title">Active Alarms</Heading>
<Heading variant="subtitle">Filter Options</Heading>
<Heading variant="label">Date Range</Heading>
Semantic level override
When visual hierarchy doesn't match document hierarchy, override the rendered element:
<Heading variant="title" elementType="h3">Visually large but semantically h3</Heading>
Text Variants
import { Text } from '@filament/react';
| Variant | Use Case |
|---|---|
"body" (default) | Standard inline text, descriptions |
"caption" | Small helper text, timestamps, metadata |
"label" | Form field labels, badge text |
"overline" | Category labels, section markers above headings |
Text props
<Text variant="body">Regular description text</Text>
<Text variant="caption">Last updated: 2 minutes ago</Text>
<Text variant="label">Status</Text>
<Text variant="overline">PATIENT MONITORING</Text>
{/* Styling props */}
<Text color="negative">Error message</Text>
<Text color="subtle">Muted helper text</Text>
<Text weight="bold">Emphasized text</Text>
Paragraph
import { Paragraph } from '@filament/react';
Use Paragraph for block-level multi-line content. It adds proper spacing between blocks.
<Paragraph>
This alarm configuration determines which alarms are escalated to the
clinical team. Adjusting these settings affects notification delivery
across all connected monitoring devices.
</Paragraph>
Decision Guide
Ask yourself these questions:
Is it a heading/title?
├── Yes → Use <Heading>
│ ├── Main page title? → variant="page-title"
│ ├── Section/dialog/card title? → variant="title"
│ ├── Sub-section header? → variant="subtitle"
│ └── Small group label? → variant="label"
│
Is it a block of body text (multi-sentence)?
├── Yes → Use <Paragraph>
│
Is it inline/short text?
└── Yes → Use <Text>
├── Regular description? → variant="body"
├── Small/helper text? → variant="caption"
├── Label for something? → variant="label"
└── Category marker? → variant="overline"
Common Mistakes
| Wrong | Right | Why |
|---|---|---|
<h1>Title</h1> | <Heading variant="page-title">Title</Heading> | Use Filament for consistent design tokens |
<p>Text</p> | <Paragraph>Text</Paragraph> or <Text>Text</Text> | Filament applies correct spacing/tokens |
<span className="caption"> | <Text variant="caption"> | Never use raw HTML + custom CSS for text |
<Heading variant="title"> for small labels | <Heading variant="label"> or <Text variant="label"> | Use semantically correct variant |
Multiple variant="page-title" on one page | One page-title, rest are title/subtitle | Only one h1 per page |
With Icons
import { Heading, Text, FlexBox } from '@filament/react';
import { WarningFill } from '@filament-icons/react';
<FlexBox alignItems="center" gap="xs">
<WarningFill />
<Heading variant="subtitle">Alarm Threshold Exceeded</Heading>
</FlexBox>
<FlexBox alignItems="center" gap="xs">
<InformationCircle />
<Text variant="caption">Configuration was last updated 3 hours ago</Text>
</FlexBox>
Verify Props
Always confirm available props by reading the declaration file:
node_modules/@filament/heading-react/dist/heading.d.ts
node_modules/@filament/text-react/dist/text.d.ts
node_modules/@filament/paragraph-react/dist/paragraph.d.ts
Or via MCP:
mcp__filament__search_api_members({ packageName: "@filament/react/heading", apiName: "Heading" })