Package-level declarations
The Outfit-based type scale (JengaTypography) and rememberJengaFontFamily. Swap the family to re-theme typography while keeping the scale.
Types
Link copied to clipboard
class JengaTypography(val display: TextStyle, val headingLarge: TextStyle, val headingMedium: TextStyle, val headingSmall: TextStyle, val titleLarge: TextStyle, val titleMedium: TextStyle, val titleSmall: TextStyle, val bodyLarge: TextStyle, val bodyMedium: TextStyle, val bodySmall: TextStyle, val label: TextStyle, val caption: TextStyle, val button: TextStyle, val mono: TextStyle = bodyMedium.copy(fontFamily = FontFamily.Monospace))
Typography token set: the Jenga type scale.
Link copied to clipboard
object JengaTypographyDefaults
Recommended per-tier caps on the system font scale. Larger type is capped tighter (it scales the layout more); body and label allow the full range. Pass these to JengaText(maxFontScale = …).
Functions
Link copied to clipboard
fun jengaTypography(fontFamily: FontFamily = FontFamily.Default, displayFontFamily: FontFamily = fontFamily, bodyFontFamily: FontFamily = fontFamily, monoFontFamily: FontFamily = FontFamily.Monospace): JengaTypography
Builds the default Jenga type scale.
Link copied to clipboard
The Outfit typeface, Jenga's default brand font, bundled with the library so consumers get it automatically.
Link copied to clipboard
Returns this style with tabular (fixed-width) figures, so digits line up in columns of amounts, counts and timers. Keeps any other feature settings and replaces an existing tnum setting, including one that turns it off.