Skip to content

v1.5.0 — JavaScript SDK & Color Spaces

Choose a tag to compare

@basiclines basiclines released this 09 Mar 09:37
· 37 commits to main since this release

JavaScript SDK & Color Spaces

Major Features

  • @basiclines/rampa-sdk — Full JavaScript SDK with fluent builder API

    • rampa('#hex').size(10).lightness(10,90).generate()
    • .toCSS(), .toJSON(), .format(), .add(), .tint()
    • rampa.mix() — OKLCH color mixing
    • rampa.readOnly() — Color conversion without ramp generation
    • color() utility with .rgb, .luminance, .format()
  • Color Spaces — Structured palettes from anchor colors

    • LinearColorSpace — 1D interpolated ramp between 2+ colors
    • CubeColorSpace — 3D trilinear interpolation with 8 corner colors
    • rampa colorspace CLI subcommand with --linear, --cube, --config
    • Supports OKLCH, LAB, and RGB interpolation modes
  • Ghostty integration — 256-color terminal palette generator using rampa-sdk

Infrastructure

  • npm trusted publishing via GitHub Actions (OIDC, no NPM_TOKEN needed)
  • Unified release script for CLI + SDK