Dither Kit 是一个为 shadcn/ui 设计的可组合图表库,使用有序抖动画布引擎渲染面积图、折线图、柱状图、饼图和雷达图,并带有丰富的动画和交互效果。

Stars

71

7 天增长

暂无数据

Fork 数

11

开放 Issue

3

开源协议

暂无数据

最近更新

2026-07-14

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它通过独特的抖动美学赋予 shadcn/ui 图表新颖的视觉风格,结合类似 Recharts 的 API、入场动画、擦洗提示、选择、闪烁效果和色彩光晕——所有这些都由一个轻量级画布引擎驱动。

适合谁使用

  • 使用 shadcn/ui 和 Tailwind CSS 的 React 开发者
  • 寻求独特图表视觉风格的设计师和前端工程师
  • 构建具有复古/像素艺术风格仪表盘或数据可视化的团队

典型使用场景

  • 在基于 shadcn/ui 的仪表盘中添加动画抖动图表
  • 创建带有图表动画的视觉吸引人的作品集或营销页面
  • 构建支持选择和提示交互的数据探索工具
  • 通过支持锁文件的 CLI 快速原型化图表密集型界面

项目优势

  • 可组合的 children-as-config API,熟悉 Recharts 的用户易于上手
  • 支持多种图表类型(面积、折线、柱状、饼图、雷达图)以及独立的头像、按钮和渐变组件
  • 内置入场动画、擦洗提示、选择、闪烁效果和色彩光晕
  • 通过专用 CLI 或 shadcn CLI 安装简洁,自动处理依赖关系

使用前须知

  • 需要 Tailwind CSS 和 shadcn/ui 项目环境,否则组件将无样式渲染
  • 仅适用于 React 项目(无框架无关的支持)
  • 对于非常大的数据集或复杂动画,抖动画布引擎的性能可能需要权衡

README 快速开始

Dither Kit

Composable, dithered charts for shadcn/ui — area, line, bar, pie & radar rendered on a tiny ordered-dither canvas engine. Recharts-style children-as-config API, entrance animations, a gliding scrub tooltip, selection, winking sparkles, and colour bloom.

Live demos & docs → tripwire.sh/dither-kit

Requires Tailwind CSS. The components are styled with Tailwind — without it, they render unstyled. Set up Tailwind and a shadcn project (components.json) first.

Install

The recommended way is the Dither Kit CLI, which adds a lockfile so you can update and diff your components later:

npx @dither-kit/cli add area-chart     # add a component
npx @dither-kit/cli list               # see what's available
npx @dither-kit/cli update             # pull upstream changes into your copy

See packages/cli for the full command reference.

Or install straight from this repo with the shadcn CLI (zero config, no lockfile). Each chart pulls the shared core engine (and its deps like motion + d3) automatically:

npx shadcn@latest add Boring-Software-Inc/dither-kit/area-chart

Available items:

itemwhat you get
area-chartarea + line charts, includes Sparkline
bar-chartgrouped / stacked bars
pie-chartpie / donut
radar-chartradar
avatargenerative mirrored pixel avatars (standalone)
buttondithered buttons (standalone)
gradientdithered gradient washes (standalone)
coreshared chart engine (installed automatically by the charts)
dither-kiteverything at once
npx shadcn@latest add Boring-Software-Inc/dither-kit/dither-kit   # all of it

Pin a ref if you want: …/dither-kit/area-chart#main.

Files land in components/dither-kit/. Then:

import { AreaChart, Area, XAxis, YAxis, Legend, Tooltip } from "@/components/dither-kit/area-chart"

const data = [{ month: "Jan", desktop: 186 }, { month: "Feb", desktop: 240 }]
const config = { desktop: { label: "Desktop", color: "blue" } }


  
  
  
  
  

  • variant: gradient | dotted | hatched | solid
  • bloom: off | low | high | aura

Repo layout

  • registry/dither-kit/ — the component sources (sour

项目描述

Composable, dithered charts for shadcn/ui — area, line, bar, pie & radar. Docs: tripwire.sh/dither-kit

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

TanStack
精选
TanStack GitHub avatar

router

TanStack Router is a type-safe, data-driven React router with built-in caching, prefetching, and nested layouts, while TanStack Start extends it into a full-stack SSR framework.

Web 开发前端框架
14,861
vercel-labs
精选
vercel-labs GitHub avatar

scriptc

scriptc compiles ordinary TypeScript into small, fast native executables without needing Node.js, V8, or any JavaScript runtime in the binary.

开发者工具代码质量与构建
1,985
Jakubantalik
精选
Jakubantalik GitHub avatar

thinking-orbs

A React component library that renders six hand-tuned animated thought orb loading indicators on a plain 2D canvas, with two purpose-tuned sizes and automatic theme detection for AI and agent UIs.

AI 与机器学习AI 智能体
1,191