Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 10:30
· 2 commits to main since this release
uv add "figkit @ git+https://github.com/BenBotsch/FigureKit@v0.5.0"

Added

  • figkit init copies the bundled tokens and their schema into a project and appends
    [tool.figkit] to its pyproject.toml. An existing tokens file is kept and checked; an
    existing table stops the command.
  • figkit style preview renders a specimen of every series, ramp and status colour in each
    theme of the project style or of --style.
  • Chart helpers: band shades an interval such as a confidence band in the colour of its
    series, error_bars draws thin bars without caps, callout points at a value with an arrow,
    small_multiples lays out panels on the canvas width with shared axes and ramp_cmap turns
    the ramp of a theme into a colormap.
  • The gallery shows small multiples with bands and a callout.
  • figkit check --a11y checks the colours of the style: text contrast after WCAG, the
    separation of neighbouring series with protanopia, deuteranopia and normal vision, and the
    steps of the ramp. It runs without a directory as well.

Changed

  • The dark ramp of the bundled style is stepped evenly in lightness. Three middle steps were
    less than 0.06 apart; dark heatmaps and the tiles of the dark card change their blues.
  • The example style in docs/examples/style orders its series teal, blue, amber, magenta, so
    that neighbours stay apart with deuteranopia.

Changes: v0.4.0...v0.5.0