@xeplr/rules
Conditional formatting, as a condition language. Renderer-agnostic: it answers whether a rule matches a value and how to format one. What to DO about a match belongs to whatever is drawing.
Install
npm install @xeplr/rulesThe idea
The same rule set colours a table cell and a chart series, because it never knew which one it was for.
Where it sits
Part of Primitives — no framework, no I/O, no opinions about your stack. Data in, data out — the parts everything else is assembled from.
Documentation for @xeplr/rules is in its README on npm.
These packages are what Xeplr Analytics is made of
If you are assembling this yourself, it may be worth seeing the assembled version first.