Skip to main content
Spreadsheet draws graphs the way a spreadsheet or a slide deck charts them: a white ground in a thin gray edge, a gray title, light gray rules for the values over one darker line under the plot, and square shapes in flat color.
Spreadsheet ships as its own package, @graphysdk/theme-spreadsheet, still on 0.x. A minor release may change its look, so pin a caret range (^0.1.0) to take only patches. Tell us what works and what doesn’t on Discord.

Install

Its peer dependencies are @graphysdk/react and React 19. Pass the theme to createGraphyKit; it is set in Arial, so there are no fonts to import:
Every graph drawn through kit.GraphProvider takes the theme. The spec is written as usual and names no theme:
Without a kit, pass the theme to the provider instead: <GraphProvider theme={spreadsheet}>. The provider reads the theme once, when it mounts. To switch themes, remount the provider, for example with a React key.

What the theme decides

Changing the look of one graph

A spec’s own styles(), scales and config() sit above the theme. Yellow and orange sit under 3:1 contrast against white, but keep their place in the palette because that order is the look. This graph keeps the look and draws its groups in blue, red and green only:
The theme is drawn for a graph about 600 pixels wide. style.graph({ textScale }) scales its type for a larger or smaller one.

With a geom package

Spreadsheet repaints no geom. A geom from a package, such as the dumbbell, is drawn in the theme’s colors and type like a built-in one.

Fonts

The theme is set in Arial, which every system has, so it loads no font and ships no fonts.css.