Skip to content

v0.31.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 01:34
· 3520 commits to main since this release

Readable type that follows the page. foldkit-mixins 0.19.0 adds fluid type
(type.fluid, type.viewportMin, type.viewportMax), a container-measured
progress, and a reading knob group (measure in ch, headingWrap,
bodyWrap, align); Typography's display, title and subtitle grow in
size and leading while body, caption and micro stay on the control
ladder. foldkit-mixins-ui 0.20.0 uses them. /create draws the new knobs in
its Type pane, and the site, design-system, CMS and richtext playground use
Theme.fluidType. Packages that pin either republish with a patch, and
foldkit-plus is 0.13.0.

Added

  • foldkit-mixins/theme: fluid type. type.fluid (0 to 1), type.viewportMin
    and type.viewportMax set the range; every size.* token grows from its
    current value to a larger one across it, headings more than body text.
    Theme.fluidType({ min, max }) writes the same blend for one value, and the
    fluid token group carries ratio (the viewport's place) and progress
    (that place at the theme's strength). The ratio is tan(atan2()), exact and
    below the palette's browser floor. type.fluid defaults to 0, so existing
    themes render unchanged.
  • /create: the Type pane draws the three fluid knobs, and the presets, looks
    and shuffle set them.
  • examples/site, examples/design-system, the CMS and the richtext
    playground use Theme.fluidType for their vw clamps.
  • Theme.containerFluidProgress() and
    Theme.fluidType({ min, max, container: true }) measure fluid type on the
    nearest inline-size container rather than the window. /create's previews
    now follow their own frame, and the CMS hero uses its page container; the
    CMS's remaining cqi padding clamp is spacing, not type.
  • Theme.role('display', { fluid: true }) grows display, title and
    subtitle in both size and leading; Typography uses it, while body,
    caption and micro stay on the control ladder.
  • foldkit-mixins / foldkit-mixins-ui: a reading knob group.
    reading.measure (in ch) caps Prose and the body, lead and quote
    levels of Typography; reading.headingWrap and reading.bodyWrap choose
    balance, pretty or wrap; reading.align chooses start, center,
    end or justify. Prose.style({ align }) adds a per-container override,
    and /create draws the four reading controls in its Type pane, below the
    fluid knobs.