Skip to content

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 05 Jun 14:05
· 44 commits to main since this release
d364051

Minor Changes

  • #60 5fef8c5 Thanks @tenphi! - Breaking: glaze.color() value-shorthand changes:
    • Removed RGB tuple [r, g, b] — use { r, g, b } instead.
    • Added RgbColor ({ r, g, b }) and OklchColor ({ l, c, h }) object inputs (also accepted by glaze.shadow()).
    • Unified scaling for all value-shorthand (strings and literal objects): lightLightness: false, darkLightness: globalConfig.darkLightness (snapshotted). Strings no longer use the extended [darkLo, 100] dark window — the default #000 → white dark flip is gone unless you pass explicit scaling: { darkLightness: [lo, 100] }.
    • Object/tuple value-shorthand no longer remap light lightness through globalConfig.lightLightness (structured { hue, saturation, lightness } still does). Opt back in with scaling: { lightLightness: [10, 100], ... }.

Patch Changes

  • #58 9fdb6bb Thanks @tenphi! - Respect authored lightness direction when contrast auto-flip is disabled.