Rune Catalog

Runes are Markdoc tags that reinterpret standard Markdown. A heading inside {% nav %} becomes a group title; a list inside {% recipe %} becomes ingredients. Same primitives, different meaning based on context.

Runes are split into two categories: core runes that ship built-in with @refrakt-md/runes, and official packages that you install separately.

Core Runes

These runes are available out of the box — no extra installation needed. They cover universal content primitives, layout, code/data display, and site structure.

Content

RuneDescription
hintCallouts and admonitions for supplementary information
figureEnhanced images with captions, sizing, and alignment
sidenoteMargin notes and footnotes alongside main content
annotateContent with margin annotations and notes
pullquoteEditorial pull quotes with alignment and style variants
textblockStyled text blocks with drop caps, columns, and lead paragraphs
mediatextSide-by-side image and text layouts with configurable ratios
conversationChat and dialogue display with alternating speaker messages
revealProgressive disclosure where content appears step by step
embedEmbed external content like videos, tweets, and code demos
iconInline icons from the theme's icon registry

Layout

RuneDescription
gridGeneric grid layout for arranging content in columns
tabsTabbed content panels with heading-based tab labels
accordionCollapsible accordion sections for FAQ-style content
juxtaposeInteractive side-by-side comparison with slider, toggle, fade, and auto modes
detailsCollapsible disclosure blocks for supplementary content
sandboxIsolated HTML/CSS/JS rendering in an iframe

Code & Data

RuneDescription
codegroupTabbed code block with language tabs
compareSide-by-side code comparison panels
diffSide-by-side or unified diff view between two code blocks
datatableInteractive data table with sorting, filtering, and pagination
chartChart visualization from a Markdown table
diagramMermaid diagram rendering from code blocks
budgetTravel and project budgets with categories, line items, and totals
formAccessible HTML forms from Markdown with smart field type inference

Site

RuneDescription
layoutStructural runes for defining page layouts and named content regions (includes {% region %})
navNavigation structure for sidebar and site navigation
tocAuto-generated table of contents from page headings
breadcrumbNavigation breadcrumbs showing page hierarchy
errorInternal rune — displays validation errors as table rows (not used directly in content)

Official Packages

Official rune packages are maintained by the refrakt team and styled by the Lumina theme. Install the packages you need and add them to your config. Each package page includes installation instructions, a full rune reference, and documentation for any additional features like CLI commands or pipeline hooks.

@refrakt-md/marketing

Landing page and conversion runes for marketing sites and product pages.

RuneDescription
heroFull-width intro sections for landing pages with background support and action buttons
ctaFocused call-to-action blocks with headlines, descriptions, and action buttons
bentoMagazine-style bento grid where heading levels control cell size
featureFeature showcases with name, description, and optional icons
stepsStep-by-step instructions with numbered indicators
pricingPricing tables with tier comparison
testimonialCustomer testimonials and reviews
comparisonProduct and feature comparison matrices from Markdown

@refrakt-md/docs

Technical documentation runes for API references, code symbols, and changelogs.

RuneDescription
apiAPI endpoint documentation with method, path, and parameters
symbolCode construct documentation for functions, classes, interfaces, enums, and type aliases
changelogVersion history with release notes

@refrakt-md/storytelling

Worldbuilding and narrative runes for fiction, games, and creative writing.

RuneDescription
characterRich character profiles with sections for backstory, abilities, and more
realmLocation profiles for worldbuilding with geography and notable features
loreIn-world knowledge entries for myths, prophecies, and historical records
factionOrganizations and groups with ranks, holdings, and alignment
plotStory arcs and quest trackers with progress markers
bondRelationship connections between characters or entities
storyboardComic and storyboard layouts from images and captions

@refrakt-md/places

Event planning and location runes for travel guides and venue pages.

RuneDescription
eventEvent information with date, location, and agenda
mapInteractive map visualization from Markdown lists of locations
itineraryDay-by-day travel itineraries with timed stops and locations

@refrakt-md/business

Organizational runes for team directories, company profiles, and timelines.

RuneDescription
castPeople directory for team pages and speaker lineups
organizationStructured business or organization information
timelineChronological events displayed as a timeline

@refrakt-md/learning

Educational runes for tutorials, recipes, and instructional content.

RuneDescription
howtoStep-by-step how-to guide with tools and instructions
recipeStructured recipe with ingredients, steps, and chef tips

@refrakt-md/design

Design system runes for color palettes, typography specimens, and token visualization. Includes a cross-page pipeline for design token aggregation.

RuneDescription
swatchInline color chip for referencing colors in prose
paletteColor swatch grid with optional WCAG contrast and accessibility info
typographyFont specimen display with live Google Fonts loading
spacingSpacing scale, border radius, and shadow token display
previewComponent showcase with theme toggle, responsive viewports, and adjustable width
mockupDevice frame mockups for screenshots — browser, phone, tablet, laptop, and watch
design-contextUnified design token card composing palette, typography, and spacing runes

@refrakt-md/media

Audio and music runes for playlists, tracks, and audio players.

RuneDescription
playlistCurated playlist with track listing for albums, podcasts, and mixes
trackStandalone track or recording with metadata
audioAudio player with optional waveform and chapter markers

@refrakt-md/plan

Spec-driven project planning with AI-native workflows. Includes CLI commands and a workflow guide.

RuneDescription
specSpecification document with status tracking and versioning
workWork item with acceptance criteria, priority, and complexity tracking
bugBug report with structured reproduction steps and severity
decisionArchitecture decision record with context, options, and rationale
milestoneNamed release target with goals and status
backlogAggregation view of work items and bugs with filtering, sorting, and grouping
decision-logChronological view of architecture decision records
plan-progressProgress summary showing status counts per entity type
plan-activityRecent activity feed sorted by file modification time