Skip to content

OpenNook v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Jun 12:48
· 4 commits to main since this release

Added

  • NookChromeTypography - a host-tunable token type for the framework's own
    fonts. Set via NookConfiguration.typography; defaults reproduce the framework
    exactly, and the resolved fontDesign still cascades over the roles. Restyles
    framework text without forking, the typography counterpart to the existing color
    (NookResolvedTheme) and layout (NookChromeMetrics) seams. Roles cover the
    top bar, compact pill, and status banner, plus the placeholder home, the
    built-in Settings panel, and the optional NookComponents add-ons.
  • NookChromeMetrics gained the element-level dimensions, corner radii, spacing,
    and emphasis-opacity values that were previously baked into the framework views -
    the chrome (header icons, leading brand mark, compact pill, status banner), the
    placeholder home, the Settings panel (rows, pickers, the shortcut key cap, the
    accent swatches, the disclosure section), and the NookComponents shelf,
    activity card, and volume glyph. All new fields default to today's values, so
    the change is additive and non-breaking.

Changed

  • The framework views now read every font, size, radius, spacing, and opacity from
    NookChromeTypography / NookChromeMetrics instead of inline literals - the
    chrome (top bar, header icons, compact pill, status banner), the placeholder
    home, the built-in Settings panel, and the NookComponents add-ons. No visual
    change at the defaults; a host can now restyle any of these surfaces through
    public API only. (A few intentionally-structural literals stay inline: motion
    spring/offset magnitudes, the breadcrumb gradient mask, the fixed severity and
    destructive-action colors, and zero-floor spacers.)
  • The GitHub repository moved to athledev-labs/opennook.
    Update your Swift package URL; GitHub redirects the old glendonC/opennook path
    for a transition period.