ELECT

Data-viz design system

One color in.An accessible chart system out.

One color or your design tokens in. A checked palette, eight customizable charts and the code to use them out.

Open the playground

01

It starts with one color.

Yours. The brand color you already have — ELECT never "corrects" it.

02

It becomes a palette.

The engine grows five companions around it: distinct hues, balanced lightness, nothing that fights your brand. Don't like one? Keep the rest and roll again.

03

It becomes charts.

Real ELECT charts, in your colors. Bars grow from an honest baseline and keep a fixed width; a missing value stays missing — never drawn as zero.

04

And a whole dashboard.

KPIs, lines, bars, donuts, heatmaps — all wearing the same theme, all keyboard-reachable, each with a data table for screen readers. Change the color above: all of it follows.

Make it yours in the playground

05

Checked for everyone.

The top row is your palette as most people see it. Below, the same palette as people with color blindness see it — the colors have to stay distinct for them too. Last row: each mark's outline against the surface, where 3:1 is the bar (⚠ passes, only just). Measured live, not promised.

The playground

This page shows the idea. The playground is where you use it.

Take one, or take it all

Drop it into what you already have.

Use ELECT's charts, or wire the --elect-* tokens into your own renderer. No build step, no framework lock-in — plain HTML, React, anything that renders the DOM.

<link rel="stylesheet" href="elect/tokens/base.css">
<script src="elect/components/elect-core-paint.js"></script>
<script src="elect/components/elect-core.js"></script>
<script src="elect/components/elect-bar-chart.js"></script>

<elect-bar-chart data='[{"label":"Q1","value":120},{"label":"Q2","value":98}]'></elect-bar-chart>