Repository navigation
v0.31.0
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
andtype.viewportMaxset the range; everysize.*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
fluidtoken group carriesratio(the viewport's place) andprogress
(that place at the theme's strength). The ratio istan(atan2()), exact and
below the palette's browser floor.type.fluiddefaults 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 useTheme.fluidTypefor theirvwclamps.Theme.containerFluidProgress()and
Theme.fluidType({ min, max, container: true })measure fluid type on the
nearestinline-sizecontainer rather than the window./create's previews
now follow their own frame, and the CMS hero uses its page container; the
CMS's remainingcqipadding clamp is spacing, not type.Theme.role('display', { fluid: true })growsdisplay,titleand
subtitlein both size and leading;Typographyuses it, whilebody,
captionandmicrostay on the control ladder.foldkit-mixins/foldkit-mixins-ui: areadingknob group.
reading.measure(inch) capsProseand thebody,leadandquote
levels ofTypography;reading.headingWrapandreading.bodyWrapchoose
balance,prettyorwrap;reading.alignchoosesstart,center,
endorjustify.Prose.style({ align })adds a per-container override,
and/createdraws the four reading controls in its Type pane, below the
fluid knobs.