Skip to content

Typography

Semantic typography styles for long-form prose content.

The typography plugin provides a set of prose-* shortcuts that style long-form HTML content (articles, blog posts, documentation) with sensible typographic defaults.

sh
pnpm add -D @pikacss/plugin-typography
sh
npm install -D @pikacss/plugin-typography
sh
yarn add -D @pikacss/plugin-typography
ts
import { defineEngineConfig } from '@pikacss/core'
import { typography } from '@pikacss/plugin-typography'

export default defineEngineConfig({
  plugins: [typography()],
})

Available shortcuts:

ShortcutPurpose
proseBase prose styling — applies all component styles
prose-paragraphsParagraph spacing and line height
prose-linksLink colors and underline
prose-emphasisBold and italic styling
prose-kbdKeyboard input styling
prose-listsOrdered and unordered list styling
prose-hrHorizontal rule styling
prose-headingsHeading sizes and spacing
prose-quotesBlockquote styling
prose-mediaImage and video styling
prose-codeInline code and code block styling
prose-tablesTable styling

Size variants:

ShortcutPurpose
prose-smSmall prose sizing
prose-lgLarge prose sizing
prose-xlExtra large prose sizing
prose-2xlDouble extra large prose sizing

Usage:

ts
pika('prose')
pika('prose', 'prose-lg')

All prose styles use --pk-prose-* CSS variables for customization.

Config

PropertyDescription
variablesCSS variable overrides for typography styling using the --pk-prose-* namespace.

See API Reference — Plugin Typography for full type signatures and defaults.

Next

  • Icons — icon integration via Iconify.
  • Fonts — web font loading.