Установка
SKILL.md
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, orbunx --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
- Install before inventing. Use
npx shadcn@latest add @bklit/<chart>— charts are registry components, not hand-rolled SVG. - Compose, don't flatten. Root chart →
Grid→ series → axes →ChartTooltip. See composition.md. - Theme with tokens. Use
chartCssVarsand--chart-*variables — never hardcode one-off colors. See theming.md. - Read the doc page first. Each chart has props, data shape, and examples at
https://ui.bklit.com/docs/components/<slug>. - 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 chart —
LineChart,BarChart,AreaChart, etc. - One root per chart — use
ComposedChartfor mixed series types. - Grid before series so lines/bars render above grid lines.
ChartTooltipas a chart child — required for crosshair and hover context.
Theming → theming.md
- Use
chartCssVarsfrom@bklitui/ui/chartsinstead of raw"var(--chart-…)"strings. - Series palette:
--chart-1…--chart-5for 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
revealSignatureor remount with a newkey. - Live charts: use
pausedonLiveLineChartto debug without stopping the rAF loop manually.
Tooltips → tooltips.md
- Custom content via
ChartTooltipcontentprop or children patterns from docs. indicatorColorfunction for candlestick / dynamic crosshair colors.- Custom indicators: use
useChart()— do not track mouse globally outside chart context.
Installation → installation.md
- Require
@bklitregistry incomponents.json. - Install:
npx shadcn@latest add @bklit/<slug>. - Let the CLI install peer dependencies — do not pin
@visx/*/motionmanually unless resolving a conflict.
Chart Catalog
| Slug | Use when | Install | Docs | Gallery |
|---|---|---|---|---|
area-chart | Trends with filled regions under lines | @bklit/area-chart | /docs/components/area-chart | /charts/area-chart |
bar-chart | Category comparisons, stacked or grouped bars | @bklit/bar-chart | /docs/components/bar-chart | /charts/bar-chart |
line-chart | Time series, multi-line trends, markers | @bklit/line-chart | /docs/components/line-chart | /charts/line-chart |
live-line-chart | Streaming / real-time data | @bklit/live-line-chart | /docs/components/live-line-chart | /charts/live-line-chart |
composed-chart | Mixed bar + line (or similar) on one axis | @bklit/composed-chart | /docs/components/composed-chart | /charts/composed-chart |
scatter-chart | Correlation, distribution, bubble sizing | @bklit/scatter-chart | /docs/components/scatter-chart | /charts/scatter-chart |
candlestick-chart | OHLC financial data, brushes | @bklit/candlestick-chart | /docs/components/candlestick-chart | /charts/candlestick-chart |
pie-chart | Part-to-whole slices | @bklit/pie-chart | /docs/components/pie-chart | /charts/pie-chart |
ring-chart | Donut / ring KPIs | @bklit/ring-chart | /docs/components/ring-chart | /charts/ring-chart |
radar-chart | Multi-axis comparison | @bklit/radar-chart | /docs/components/radar-chart | /charts/radar-chart |
gauge-chart | Single-value KPI dial | @bklit/gauge-chart | /docs/components/gauge-chart | /charts/gauge-chart |
funnel-chart | Stage conversion funnels | @bklit/funnel-chart | /docs/components/funnel-chart | /charts/funnel-chart |
sankey-chart | Flow between nodes | @bklit/sankey-chart | /docs/components/sankey-chart | /charts/sankey-chart |
choropleth-chart | Geo regions colored by value | @bklit/choropleth-chart | /docs/components/choropleth-chart | /charts/choropleth-chart |
Workflow
- Run
npx shadcn@latest info --json— verify@bklitregistry and aliases. - Pick a chart from the catalog (or ask the user what story the data tells).
- Open the doc URL for data shape and props.
- If not installed:
npx shadcn@latest add @bklit/<slug>. - Compose with grid, series, axes, tooltip — apply theming tokens.
- 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
- Theming: https://ui.bklit.com/docs/theming
- Grid: https://ui.bklit.com/docs/utility/grid
- Legend: https://ui.bklit.com/docs/utility/legend
- Tooltip: https://ui.bklit.com/docs/utility/tooltip
- Custom indicator: https://ui.bklit.com/docs/utility/custom-indicator
- useChart: https://ui.bklit.com/docs/utility/use-chart
Detailed References
- composition.md
- theming.md
- animation.md
- tooltips.md
- installation.md
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: bklit-ui](https://darkplay.ru/ai/skills/bklit-bklit-ui-bklit-ui)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Лучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachatЛучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirton