SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%
317 B · 8 lines typescript
Raw Blame History
1import { divergingColor } from './scale';23/** Inline style for heat-table cells (diverging change). */4export function heatStyle(change: number | null | undefined, limit = 0.1): React.CSSProperties {5  if (change === null || change === undefined) return {};6  return { background: divergingColor(change, limit) };7}8