Promptary
Frontend ยท Content & Typography

Content & Typography developer concepts

Learn 36 Content & Typography concepts for Frontend development, with definitions, aliases, and ready-to-use AI prompts.

Type foundations

Typeface

The visual design shared by a family of fonts, shaping the voice of written content.

Also known as
Type design, Font design, Letterform style
AI prompt
Choose a highly legible typeface for a developer documentation interface. Match its personality to the product, verify distinct letterforms at small sizes, keep the type palette restrained, and provide dependable system fallbacks.

Font family stack

An ordered list of preferred and fallback fonts used when text is rendered.

Also known as
Font stack, Fallback fonts, Font family
AI prompt
Create a resilient CSS font-family stack for a web app, starting with the chosen interface font, then compatible local fallbacks and a generic family. Minimize layout shift and test accented characters, symbols and numerals.

Font size

The rendered scale of characters, chosen for readability and hierarchy.

Also known as
Text size, Type size, Font scale
AI prompt
Define readable font sizes for a responsive interface. Start body copy at a comfortable size, make hierarchy obvious without extreme jumps, use relative units, and confirm text remains usable when users zoom to 200 percent.

Font weight

The stroke thickness of text used to create emphasis and hierarchy.

Also known as
Text weight, Boldness, Font thickness
AI prompt
Use font weight to distinguish headings, labels and body copy without relying on weight alone. Choose available weights that remain legible, avoid faux bolding, and preserve contrast in light and dark themes.

Font style

A normal, italic or oblique treatment that changes the posture and emphasis of text.

Also known as
Italic style, Oblique text, Type style
AI prompt
Add semantic italic emphasis to a short phrase using an actual italic font style. Keep long passages upright, do not use italics as the only status cue, and preserve readability for dyslexic and low-vision readers.

Line height

The vertical distance between baselines that controls rhythm and reading comfort.

Also known as
Leading, Line spacing, Baseline spacing
AI prompt
Set a comfortable unitless line-height for body text and a tighter value for headings. Ensure user text-spacing overrides do not clip, overlap or hide content, including at narrow widths and 200 percent zoom.

Letter spacing

The added or reduced space between characters, also known as tracking.

Also known as
Tracking, Character spacing, Kerning adjustment
AI prompt
Tune letter spacing for an uppercase eyebrow label and normal body copy. Avoid tight tracking that harms recognition, use relative units, and let browser and user spacing overrides work without clipping.

Text color contrast

The luminance difference between text and its background that keeps content perceivable.

Also known as
Text contrast, Foreground contrast, Readable color
AI prompt
Choose text and background colors that meet WCAG contrast requirements in light and dark themes. Target at least 4.5 to 1 for normal text and 3 to 1 for large text, and never communicate meaning through color alone.

Variable font

A font file with adjustable axes such as weight, width or optical size.

Also known as
Variable type, Font variation, Variation axes
AI prompt
Implement a variable font with a useful weight axis, a safe fallback stack and font-display behavior that limits layout shift. Animate variation only when it adds meaning and respect reduced-motion preferences.

Hierarchy & text roles

Type scale

A coordinated set of text sizes that creates predictable visual hierarchy.

Also known as
Typographic scale, Size system, Text scale
AI prompt
Create a compact type scale for a responsive product interface, covering display, heading, body, label and caption roles. Use tokens and relative units, keep adjacent steps distinct, and reduce oversized headings on small screens.

Display text

Large, expressive text used for a page hero or major editorial statement.

Also known as
Display heading, Hero title, Large title
AI prompt
Create responsive display text for a product hero. Keep it brief, use balanced wrapping, scale it fluidly without becoming oversized, preserve strong contrast, and keep the HTML heading level semantically correct.

Headline style

A prominent heading treatment that labels a section and exposes its structure.

Also known as
Section heading, Title style, Heading treatment
AI prompt
Style section headings with clear hierarchy, concise wording and semantic heading order. Use size, weight and spacing together, avoid skipping levels for appearance, and let long localized headings wrap naturally.

Lead paragraph

An introductory paragraph with extra emphasis that summarizes what follows.

Also known as
Intro text, Standfirst, Deck
AI prompt
Create a lead paragraph below a page heading that summarizes the page in one or two readable sentences. Give it modest size or weight emphasis, constrain its measure, and keep sufficient contrast in every theme.

Body copy

The primary long-form text style optimized for sustained reading.

Also known as
Body text, Paragraph text, Reading text
AI prompt
Style body copy for comfortable long-form reading with a legible font, relative size, generous line-height, strong contrast and a line length near 45 to 75 characters. Preserve paragraphs and user text-spacing overrides.

Eyebrow text

A short label above a heading that supplies category or context.

Also known as
Overline, Kicker, Category label
AI prompt
Add a short eyebrow label above a heading to identify its category. Keep it optional, concise and high contrast; use moderate uppercase tracking only when the typeface supports it and do not replace semantic heading structure.

Caption text

Compact supporting text that explains an image, chart or media item.

Also known as
Figure caption, Media caption, Supporting caption
AI prompt
Create a concise figure caption that identifies what the media shows and provides useful context. Associate it semantically with the figure, keep the text readable rather than tiny, and include source or credit when needed.

Label text

Short text that names a field, control, value or content region.

Also known as
UI label, Control label, Field label
AI prompt
Write and style a persistent form label that clearly names its control. Connect it programmatically, use sentence case, avoid placeholder-only labels, mark optional or required status in text, and let long translations wrap.

Metadata text

Secondary details such as author, date, status or file size shown near primary content.

Also known as
Supporting data, Byline, Secondary text
AI prompt
Present author, date and reading-time metadata in a compact but readable style. Use separators that work with screen readers, preserve contrast, use semantic time elements, and avoid making essential information visually faint.

Reading & editorial styles

Readable measure

A controlled line length that keeps paragraphs comfortable to scan and read.

Also known as
Line length, Text measure, Reading width
AI prompt
Constrain long-form copy to a readable measure of roughly 45 to 75 characters per line while allowing the layout to shrink naturally. Use ch units as a guide and avoid fixed widths that break reflow or localization.

Paragraph spacing

Vertical space between paragraphs that separates ideas without disrupting reading rhythm.

Also known as
Paragraph rhythm, Block spacing, Text spacing
AI prompt
Create a consistent vertical rhythm for paragraphs using margins rather than empty lines. Keep related text grouped, allow user text-spacing overrides, and prevent margin collapse from producing surprising gaps.

Text alignment

How lines of text align to the start, center, end or both edges of a container.

Also known as
Type alignment, Paragraph alignment, Text justification
AI prompt
Align paragraphs to the logical start edge for comfortable reading and automatic right-to-left support. Reserve centered text for short content, avoid fully justified body copy unless hyphenation is excellent, and test narrow screens.

Emphasis

Semantic stress applied to words or phrases using weight, style or other cues.

Also known as
Strong text, Emphasized text, Text stress
AI prompt
Use strong and emphasis semantics to highlight only the most important words in a paragraph. Avoid excessive bold or italic text, keep emphasis visible at all contrast modes, and do not use styling alone to communicate status.

List typography

Text, marker and spacing rules that make ordered and unordered lists easy to scan.

Also known as
List styling, Bullet list, Ordered list
AI prompt
Style semantic ordered and unordered lists with clear indentation, aligned markers and comfortable item spacing. Keep markers visible in high contrast modes, support nested levels, and avoid using decorative characters as fake bullets.

Quotation style

A distinct treatment for quoted language and its attribution.

Also known as
Block quote, Pull quote, Quoted text
AI prompt
Create an accessible block quotation with semantic blockquote and cite elements, readable quotation marks, restrained visual emphasis and a clear attribution. Do not use quotation styling for ordinary callouts.

Code typography

A monospace treatment for code, commands, variables and keyboard input.

Also known as
Monospace text, Code font, Technical text
AI prompt
Style inline code and short code samples with a legible monospace stack, sufficient contrast and preserved whitespace. Keep the font size readable, allow horizontal scrolling only for code blocks, and expose copy controls clearly.

Numeral style

Proportional, tabular and oldstyle figure choices suited to different numeric content.

Also known as
Font figures, Tabular numerals, Number typography
AI prompt
Use tabular numerals for changing financial or tabular values so columns stay aligned, and proportional numerals for ordinary prose. Verify the chosen font supports the feature and preserve locale-aware separators.

Responsive & international text

Responsive typography

Text styles that adapt across viewport sizes without losing hierarchy or readability.

Also known as
Adaptive type, Responsive text, Breakpoint typography
AI prompt
Create responsive typography that preserves roles and readable measure from small phones to large desktops. Use relative units, reduce display sizes thoughtfully, avoid fixed-height containers, and test zoom, reflow and localization.

Fluid typography

Text sizing that scales smoothly between chosen minimum and maximum values.

Also known as
Fluid type scale, Clamp typography, Viewport type
AI prompt
Implement fluid heading size with CSS clamp using a readable minimum, a modest viewport-based preferred value and a controlled maximum. Keep body text stable, preserve browser zoom and avoid viewport units as the only sizing input.

Text resizing

The ability to enlarge text without losing content, controls or functionality.

Also known as
Zoom support, Scalable text, Font enlargement
AI prompt
Build the interface so text can be resized to 200 percent without clipping, overlap, missing controls or loss of information. Prefer relative units, flexible containers and content-driven height, then test real browser zoom.

Text reflow

Content wrapping into one readable dimension as the viewport or zoom level changes.

Also known as
Content reflow, Single-column reading, Responsive wrap
AI prompt
Make article text reflow at a 320 CSS-pixel viewport without horizontal page scrolling or two-dimensional navigation. Allow words and controls to wrap, preserve reading order and exempt only genuinely two-dimensional content.

Text wrapping

How lines break around spaces and long tokens when horizontal room runs out.

Also known as
Line wrapping, Word wrapping, Overflow wrapping
AI prompt
Configure text wrapping for long labels, URLs and identifiers. Prefer natural line breaks, use overflow-wrap for unbroken tokens, avoid breaking every word, and keep controls tall enough for two-line labels.

Hyphenation

Language-aware insertion of hyphens where words break across lines.

Also known as
Word hyphenation, Soft hyphens, Language breaks
AI prompt
Enable automatic hyphenation only for supported long-form languages, set the correct lang attribute, and balance it with readable measure. Avoid hyphenating short labels, names, URLs, code and user-entered identifiers.

Truncation

Deliberately shortening overflowed text while providing access to the full value.

Also known as
Text ellipsis, Clamped text, Shortened label
AI prompt
Truncate non-essential repeated text only when space is constrained. Preserve the full accessible value, provide a discoverable way to reveal it, avoid truncating unique identifiers or error messages, and support keyboard and touch users.

Bidirectional text

Mixed left-to-right and right-to-left content displayed in its correct reading order.

Also known as
Bidi text, RTL text, Mixed direction text
AI prompt
Support Arabic or Hebrew content beside Latin text using logical CSS properties, correct dir and lang attributes, and bidirectional isolation for dynamic values. Mirror directional layout cues without mirroring universal symbols.

Multilingual typography

A type system that supports different scripts, glyph coverage and language conventions.

Also known as
Global typography, Multi-script type, Localized text
AI prompt
Create a multilingual typography stack for Latin, Malay, Simplified Chinese and Arabic content. Choose compatible fallbacks with full glyph coverage, let line height adapt per script, set language and direction correctly, and test real translations.