Skip to main content

Font Chooser MDX Components

BAZWEAVE·FONT
// portable font-specimen components for MDX hosts

Font Chooser

@ragbaz/bazweave-font/mdx

Variable-font specimen deck, family matrix, axis examples, and interactive theme previews — usable in Docusaurus and other MDX hosts without mounting the full Next.js chooser.

SPECIMENS · THEME DECK · FAMILIES · AXES · MDX

These examples use the RAGBAZ sub-theme direction with Intel One Mono for command/data surfaces and a clean neo-grotesque layer for readable prose. The font chooser provides MDX-safe components that let documentation pages show live font specimens, compare families, and explain variable axes.


Live Theme Deck

The theme deck lets readers switch between four background surfaces and see how font specimens read in each context.

MDX specimen
Slate
RAGBAZ Intel Mono + neo-grotesque examples

Neutral reading layer for Docusaurus pages, product UI, and long examples.

Click a theme card to update the specimen. Each theme controls the background surface for font previews:

ThemeIDStyleAccent
SlateslateWarm gruvbox-dark#f3c46c
ElegantelegantLow-gloss amber dark#e2a55f
TuftetuftePaper-proof light#9d5b1d
FormalformalExecutive dark#f3c46c

Custom Specimens

The FontChooserSpecimen component accepts theme, family, label, text, and size props, making it suitable for inline use in prose-heavy documentation.

Editorial proof
Tufte
Readable docs still need instrument-grade type.

Neutral reading layer for Docusaurus pages, product UI, and long examples.

Command surface
Formal
wght 620 / opsz 14 / wdth 100

RAGBAZ control labels, code, axis values, and compact technical copy.

Text Scale Comparison

Reading size
Slate
The quick brown fox jumps over the lazy dog.

Neutral reading layer for Docusaurus pages, product UI, and long examples.

Code size
Elegant
fn main() -> Result<()>

RAGBAZ control labels, code, axis values, and compact technical copy.

Display size
Formal
Bazweave

A warmer display option when examples need more texture.


Family Matrix

Use the family matrix when documenting the base pairing rules across the three RAGBAZ font families.

command / data
Aa Rr 012
Intel One Mono

RAGBAZ control labels, code, axis values, and compact technical copy.

neo-grotesque body
Aa Rr 012
Noto Sans

Neutral reading layer for Docusaurus pages, product UI, and long examples.

expressive grotesque
Aa Rr 012
Bricolage Grotesque

A warmer display option when examples need more texture.


Variable Axis Examples

For pages that teach variable font controls, use a compact axis strip rather than mounting the full chooser.

wght620

Use this pattern in MDX docs when explaining a variable axis without mounting the full chooser.

opsz48

Use this pattern in MDX docs when explaining a variable axis without mounting the full chooser.

wdth85

Use this pattern in MDX docs when explaining a variable axis without mounting the full chooser.


Copyable MDX Example

This component demonstrates how an MDX page can expose an interactive sample and a copyable import pattern together.

MDX specimen
Slate
RAGBAZ builds readable command surfaces.

Neutral reading layer for Docusaurus pages, product UI, and long examples.

import { FontChooserThemeDeck } from '@ragbaz/bazweave-font/mdx';

<FontChooserThemeDeck active="slate" />

Font Catalog

The built-in catalog includes 16 Google Fonts across 4 categories:

CategoryFonts
Sans-serifInter, Roboto Flex, Bricolage Grotesque, Commissioner, Manrope, Space Grotesk, Sora, Outfit
SerifFraunces, Playfair Display, Cormorant Garamond, DM Serif Display
MonospaceSpace Mono, IBM Plex Mono
HandwritingDancing Script, Caveat

Import Reference

import {
FontChooserThemeDeck,
FontChooserSpecimen,
FontChooserFamilyMatrix,
FontChooserAxisExample,
FontChooserMdxExample,
} from '@ragbaz/bazweave-font/mdx';

See also: Theme Editor MDX Components — typography presets, interactive workbench, and full-surface specimen suites.