v0.5.0
Minor Changes
-
#10
79253fcThanks @tenphi! - Add CSS custom property export method for themes and palettes -
#10
79253fcThanks @tenphi! - Add shadow color support and standalone shadow/format APIs- Shadow colors via
ShadowColorDef(type: 'shadow') with OKHSL-native algorithm usingtanhalpha curve glaze.shadow()standalone factory for one-off shadow computationglaze.format()to format anyResolvedColorVariantas CSSopacityfield onRegularColorDeffor fixed alpha on regular colorsalphafield onResolvedColorVariant(default 1)shadowTuningonGlazeConfigfor global shadow defaultsResolvedColor.modeis now optional (omitted for shadow colors)- Intensity is clamped to
[0, 100] - Validation: shadow bg/fg cannot reference other shadows; regular color base cannot reference a shadow
- Shadow colors via
-
#10
79253fcThanks @tenphi! - SwitchformatRgbandformatHslfrom comma syntax to modern CSS space syntaxrgb(R, G, B)→rgb(R G B)andhsl(H, S%, L%)→hsl(H S% L%).rgboutput now uses rounded integers instead of fractional values. This enables alpha support via the/ alphaseparator and aligns with modern CSS (supported since Chrome 65+, Firefox 52+, Safari 12.1+).Downstream code that parses Glaze's CSS output using comma-separated patterns must update to space-separated syntax.