basecoat-charts
Basecoat Charts skill for ApexCharts and SVG data visualization. Maps colors to CSS tokens (--chart-1..5) with zero React dependencies and 5-framework mounts.
- License 许可
- MIT
- 最近更新
- 2026-10-31
- Stars
- ★ 18
- Forks
- 0
01 前言 Front Matter
- name
- basecoat-charts
- description
- Basecoat Charts skill for ApexCharts and SVG data visualization. Maps colors to CSS tokens (--chart-1..5) with zero React dependencies and 5-framework mounts.
02 资源文件 7
03 SKILL.md 正文
Basecoat Charts: Master Visualization Protocol
Basecoat Charts provides robust, theme-aware chart blueprints designed to integrate seamlessly with Basecoat CSS and Tailwind CSS v4.
Core Directives
- Theme-Token Color Mapping: All series colors must bind directly to CSS variables (
var(--chart-1)throughvar(--chart-5)) or surface tokens (var(--foreground),var(--muted-foreground),var(--border)). - Container Sizing & Responsive Footprint: Chart viewport wrappers must specify the standard responsive layout footprint:
w-full aspect-[4/3] md:aspect-[16/9] lg:aspect-[2/1] min-h-[240px]. Outer containers specifychart-container card p-6 flex flex-col gap-4 w-fullwithrole="img"and descriptivearia-label. - Glassmorphic Tooltip Markup: Interactive chart tooltips must feature Basecoat glassmorphic styling:
<div class="rounded-lg border border-border bg-background/95 p-2.5 text-xs shadow-xl backdrop-blur-sm" data-chart-tooltip>...</div>with indicator dot/line/dashed/badge and numeric value formatting withtabular-nums. - Screen-Reader Data Fallback: Every chart blueprint embeds an accessible table fallback for assistive technology:
<table class="sr-only"><caption>${title}</caption><thead>...</thead><tbody>...</tbody></table>. - Zero Framework Wrappers: Do not require heavy framework wrappers like
react-apexcharts. Initialize charts directly with client-side vanilla ApexCharts mounts across all 5 supported frameworks (vanilla,astro,react,vue,svelte). - SVG Fallback & Macro Dashboard Binding: For offline dashboards without third-party dependencies, declarative Basecoat SVG area charts (
svg-area-chart) and layout blocks likedashboard-01bind directly todata-chart-id="area-interactive".
Chart Categories
| Type | Guide | Best For |
|---|---|---|
| Area | area.md | Magnitude, cumulative volume, filled trends |
| Bar | bar.md | Leaderboards, discrete rank comparison |
| Line | line.md | Continuous time-series trends |
| Pie / Donut | pie.md | Part-to-whole proportions and shares |
| Radar | radar.md | Multi-axis assessment and skill matrices |
| Radial | radial.md | Progress percentage dials and gauges |
| Tooltip | tooltip.md | Custom Basecoat popover tooltip styling |
| Audit | audit/checklist.md | Quality inspection and validation gate |
04 同仓库更多 Skills
basecoat
Master UI/UX protocol and 57-component reference for Basecoat UI (pure Basecoat CSS, headless Tailwind CSS v4, Kanso minimalism, and mandatory FSM data-state contracts).
basecoat-page-types
Master blueprints for Dashboards 01-07, Auth Split-Screens, Settings, and Reading Views.
basecoat-foundations
Design system foundations, tokens, typography, and optical rhythm for Basecoat dashboards.
basecoat-content-strategy
Information architecture, cognitive budget, and realistic content strategy for Basecoat interfaces.
basecoat-block-patterns
Macro layout block patterns for Basecoat dashboards.
basecoat-dashboard-audit
Quality inspection and audit protocol for Basecoat dashboards.