@bysages/charts

Token-themed charts for By Sages Elements — TanStack Charts dressed in the paper-and-ink system: one token bridge plus thin framework adapters
2,402 1
Install
npm install @bysages/charts
Latest Version:0.4.4
Vue:3
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: demomacro

@bysages/charts

npm version npm downloads npm license

Token-themed charts for By Sages Elements — TanStack Charts re-exported per framework, with the palette and surface variables bridged onto the paper-and-ink tokens.

Features

  • 🎨 Tokens as ink — marks carry var(--bs-color-*) straight through paint attributes; var() resolves against the live theme, so mode, accent, and scene retune the ink with no redraw
  • 🖌️ A fixed pigment palette — ink → danger → success → warning → info, the system's semantic order, handed to series that don't name their own colors
  • 🪟 Paper vessels — tooltips dress like every other popup vessel (surface, hairline, elevation), crosshairs and focus takes the primary ink
  • 🧩 The full grammar — marks, transforms, scales, and defineChart pass through from TanStack Charts, one entry per framework (/vue, /react, /solid, /svelte)

Installation

# pnpm
pnpm add @bysages/charts

# npm
npm install @bysages/charts

# yarn
yarn add @bysages/charts

# bun
bun add @bysages/charts

Quick Start

<script setup lang="ts">
import { Chart } from "@bysages/charts/vue";
import { bar } from "@tanstack/charts";

const definition = {
  axis: ["Region", "Units"],
  series: [{ type: bar(), label: "Sales", data: [42, 87, 63] }],
} as const;
</script>

<template>
  <Chart :definition="definition" />
</template>

The module side-effects bridge the theme once on import — no setup call of its own.

License

Related Packages

@bysages/nuxt

Nuxt module for By Sages Elements — auto-imports the paper-and-ink Vue component...

191 1
@bysages/docs-theme

Documentation theme for By Sages Elements — a Nuxt Content layer that turns a co...

177 1
@bysages/vue

By Sages Elements components for Vue — styled by the paper-and-ink design tokens

2,850 1
blessing-ui

Blessing UI — Themed Flat Interface. Flat by design, raised with Vue, blessed fo...

610 0
@saket.s/adkompas-ui

Adkompas UI — design tokens, Vuetify theme preset, framework-agnostic CSS, and p...

805

Version History

Version Released License
0.4.4 MIT
0.4.3 MIT
0.4.2 MIT
0.4.1 MIT
0.4.0 MIT