ContentComponentBeta

Typography.

Give every word its own weight.

Expressive headings. Comfortable reading. A small type system that separates visual hierarchy from semantic meaning.

Make it yours

Preparing the example…

PROPERTIES3

A place to start

Usage

Import the stylesheet once at your application root. This complete example reflects the properties selected above.

Loading example…

Details that make a difference

Examples & states
Meaning comes before size.

Change the visual scale without skipping heading levels. The example stays an h3 at every size.

The finer details

API reference

Generated from Dixy’s local TypeScript interfaces. Native HTML attributes and refs are forwarded. The table covers Dixy’s own options.

Text

PropType / descriptionDefault
as"div" | "p" | "span"

The semantic HTML element.

p
variantTextVariant

A complete semantic type style. Overrides size when supplied.

body.md
size"sm" | "md" | "lg"

Convenience size within the body family.

md
tone"default" | "accent" | "muted"

The text emphasis.

default

Heading

PropType / descriptionDefault
as"h1" | "h2" | "h3" | "h4" | "h5" | "h6"

The semantic heading level, independent of visual size.

h2
variantHeadingVariant

A complete visual style, independent of the heading level.

heading.md
size"sm" | "md" | "lg"

Convenience size within the heading family.

md

Built from the same foundations

Styling tokens

Change Theme settings above to compare appearance, accent, neutral, radius, spacing density, motion and direction. Override component aliases on a Theme root so custom properties follow portaled content too. The wrapper merges className, style, refs and render composition with its owning primitive.

TokenPurpose
--dixy-font-body-mdThe component-specific starting point.
--dixy-font-label-mdControl label font and line height; body roles remain readable in text inputs.
--dixy-color-background-selectedSelected surfaces use semantic color across appearances.
--dixy-color-border-focusFocus indication remains visible independently of shadows.
--dixy-spacing-inset-smDensity-aware component padding.
--dixy-motion-transition-feedbackShort state feedback, reduced by the inherited motion setting.
Explore theme customization

Consider everyone

Accessibility

Choose the heading element for document structure, then choose its size for visual hierarchy. Keep body text readable at zoom. Font families inherit from theme tokens and can be overridden by the consuming app.

Target: WCAG 2.2 AA. Automated tests cover selected behavior; manual screen-reader, contrast, and zoom validation remain part of the release checklist.

THE THINKING BEHIND IT

Build it. Then understand it.

A heading’s semantic level and its visual size are independent. A component library should make correct HTML easier without imposing a page outline.

A token to follow--dixy-font-body-md

Nothing up our sleeves

Source
UP NEXTCheckbox