New to Claude Skills? Learn how to install them →

bklit on GitHub

Bklit UI

Free

Effortlessly create and customize charts for your projects.

by bklit1.5k stars on bklit/bklit-ui
4 views
Updated Jul 28, 2026
Get this skill

Free · Opens the source repo

What Bklit UI does

Bklit UI provides a set of composable chart components specifically designed for React applications. By utilizing the @bklit shadcn registry, developers can easily install and integrate various chart types into their projects. This skill is particularly useful for those working on data visualization, dashboards, or any project that requires dynamic charting capabilities. Each chart component is installed as source code, allowing for greater customization and control over the visualization process.

The installation process is straightforward, requiring the use of the shadcn CLI commands to add charts to your project. Once installed, developers can compose charts using a structured approach, ensuring that series and axes are properly nested within the root chart component. This compositional methodology not only enhances the visual integrity of the charts but also simplifies the management of complex data visualizations.

In addition to composition, Bklit UI emphasizes theming through the use of CSS variables, enabling developers to maintain a consistent design language across their charts. By leveraging chartCssVars and avoiding hardcoded colors, developers can create visually cohesive and adaptable charts that align with their application's branding. The skill also includes critical rules for animation and tooltip integration, ensuring that charts not only look good but also provide interactive and informative experiences for users.

Bklit UI is ideal for developers and designers who need to implement robust data visualization solutions without the hassle of building charts from scratch. Whether you're creating a simple line chart or a complex dashboard with multiple chart types, this skill provides the necessary tools and guidelines to achieve professional results efficiently.

When to use it

Use Bklit UI when you need to implement charts in a React project and want to leverage a structured, composable approach to data visualization.

When not to use it

This skill may not be suitable for projects that do not use React or require highly specialized charting libraries beyond what Bklit offers.

What you can build with it

Creating a Dashboard

Use Bklit UI to integrate multiple chart types into a cohesive dashboard for displaying key metrics and trends.

Custom Theming for Charts

Leverage the theming capabilities of Bklit UI to ensure all charts align with your application's branding and design guidelines.

Real-Time Data Monitoring

Implement live charts using Bklit UI to visualize streaming data, such as stock prices or sensor readings.

How to install Bklit UI

View source

1. Install with the skills CLI

npx skills add bklit/bklit-ui/bklit-ui --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by bklit

Bklit UI

Composable chart components for React, distributed via the @bklit shadcn registry. Charts are installed as source into the user's project.

IMPORTANT: Run shadcn CLI commands with the project's package runner: npx shadcn@latest, pnpm dlx shadcn@latest, or bunx --bun shadcn@latest.

Current Project Context

!`npx shadcn@latest info --json`

Use the JSON above for framework, aliases, Tailwind version, installed components, and resolved paths. Confirm the @bklit registry is configured before adding charts.

Principles

  1. Install before inventing. Use npx shadcn@latest add @bklit/<chart> — charts are registry components, not hand-rolled SVG.
  2. Compose, don't flatten. Root chart → Grid → series → axes → ChartTooltip. See composition.md.
  3. Theme with tokens. Use chartCssVars and --chart-* variables — never hardcode one-off colors. See theming.md.
  4. Read the doc page first. Each chart has props, data shape, and examples at https://ui.bklit.com/docs/components/<slug>.
  5. Browse variants. Gallery: https://ui.bklit.com/charts/<slug> — Studio: https://ui.bklit.com/studio?chart=<slug>.

Critical Rules

These rules are always enforced. Each links to Incorrect/Correct examples.

Composition → composition.md

  • Series and axes live inside the root chartLineChart, BarChart, AreaChart, etc.
  • One root per chart — use ComposedChart for mixed series types.
  • Grid before series so lines/bars render above grid lines.
  • ChartTooltip as a chart child — required for crosshair and hover context.

Theming → theming.md

  • Use chartCssVars from @bklitui/ui/charts instead of raw "var(--chart-…)" strings.
  • Series palette: --chart-1--chart-5 for multi-series charts.
  • Tooltip surfaces: bg-popover text-popover-foreground — avoids white-on-white in light mode.

Animation → animation.md

  • Default duration ~1100ms for cartesian enter animations unless the doc specifies otherwise.
  • Replay: change revealSignature or remount with a new key.
  • Live charts: use paused on LiveLineChart to debug without stopping the rAF loop manually.

Tooltips → tooltips.md

  • Custom content via ChartTooltip content prop or children patterns from docs.
  • indicatorColor function for candlestick / dynamic crosshair colors.
  • Custom indicators: use useChart() — do not track mouse globally outside chart context.

Installation → installation.md

  • Require @bklit registry in components.json.
  • Install: npx shadcn@latest add @bklit/<slug>.
  • Let the CLI install peer dependencies — do not pin @visx/* / motion manually unless resolving a conflict.

Chart Catalog

SlugUse whenInstallDocsGallery
area-chartTrends with filled regions under lines@bklit/area-chart/docs/components/area-chart/charts/area-chart
bar-chartCategory comparisons, stacked or grouped bars@bklit/bar-chart/docs/components/bar-chart/charts/bar-chart
line-chartTime series, multi-line trends, markers@bklit/line-chart/docs/components/line-chart/charts/line-chart
live-line-chartStreaming / real-time data@bklit/live-line-chart/docs/components/live-line-chart/charts/live-line-chart
composed-chartMixed bar + line (or similar) on one axis@bklit/composed-chart/docs/components/composed-chart/charts/composed-chart
scatter-chartCorrelation, distribution, bubble sizing@bklit/scatter-chart/docs/components/scatter-chart/charts/scatter-chart
candlestick-chartOHLC financial data, brushes@bklit/candlestick-chart/docs/components/candlestick-chart/charts/candlestick-chart
pie-chartPart-to-whole slices@bklit/pie-chart/docs/components/pie-chart/charts/pie-chart
ring-chartDonut / ring KPIs@bklit/ring-chart/docs/components/ring-chart/charts/ring-chart
radar-chartMulti-axis comparison@bklit/radar-chart/docs/components/radar-chart/charts/radar-chart
gauge-chartSingle-value KPI dial@bklit/gauge-chart/docs/components/gauge-chart/charts/gauge-chart
funnel-chartStage conversion funnels@bklit/funnel-chart/docs/components/funnel-chart/charts/funnel-chart
sankey-chartFlow between nodes@bklit/sankey-chart/docs/components/sankey-chart/charts/sankey-chart
choropleth-chartGeo regions colored by value@bklit/choropleth-chart/docs/components/choropleth-chart/charts/choropleth-chart

Workflow

  1. Run npx shadcn@latest info --json — verify @bklit registry and aliases.
  2. Pick a chart from the catalog (or ask the user what story the data tells).
  3. Open the doc URL for data shape and props.
  4. If not installed: npx shadcn@latest add @bklit/<slug>.
  5. Compose with grid, series, axes, tooltip — apply theming tokens.
  6. Point the user to the gallery or Studio URL for variant inspiration.

Quick Reference

# Project info
npx shadcn@latest info --json

# Add a chart
npx shadcn@latest add @bklit/line-chart

# Search registries (if configured)
npx shadcn@latest search @bklit
import { LineChart, Line, Grid, XAxis, ChartTooltip, chartCssVars } from "@bklitui/ui/charts";

<LineChart data={data} xDataKey="date">
  <Grid horizontal />
  <Line dataKey="users" stroke={chartCssVars.linePrimary} />
  <XAxis />
  <ChartTooltip />
</LineChart>

Utility docs

Detailed References

Frequently asked questions about Bklit UI

Similar skills