设计与多媒体

Slidev Antd Dashboard

试用

Build dashboard and admin-UI slides in Slidev using ant-design-vue (the Vue 3 implementation of Ant Design). Use when creating Slidev presentations that need dashboards

它能做什么

Build dashboard and admin-UI slides in Slidev using ant-design-vue (the Vue 3 implementation of Ant Design). Use when creating Slidev presentations that need dashboards, admin layouts, side menus, data tables, KPI/stat cards, charts, forms, or any Ant Design components. Covers full setup, every ant-design-vue component, composition rules, menu/navigation design specs, and ready-to-paste example slides.

技能文档

Slidev + Ant Design Dashboards

Build polished dashboard / admin-console mockups inside Slidev slides using ant-design-vue.

Read this first (critical context)

  1. Slidev is Vue 3. Use ant-design-vue, NOT React antd. The canonical antd package is React-only and cannot be dropped into Slidev. ant-design-vue is the official Ant Design implementation for Vue 3 — same design language, same component set, near-identical API. Every example here uses it.
  2. Globally-registered components use the a- prefix. After app.use(Antd), you write , , , , , etc. — not .
  3. ant-design-vue v4 uses CSS-in-JS. Component styles auto-inject; you do not need (and should avoid) globally importing ant-design-vue/dist/reset.css, because its global preflight overrides Slidev's slide typography. Theme via `` instead.
  4. Ant Design ships no charts. Use ECharts (vue-echarts) — see setup.md. @ant-design/charts is React-only; do not suggest it for Slidev.
  5. A slide is a fixed canvas (default 980×552 px). Real dashboards are designed for ~1440 px. Render at desktop density and let Slidev scale the slide down — set canvasWidth higher and/or use componentSize. See dashboard-rules.md.

Quickstart

# in a Slidev project (npm init slidev@latest)
npm i ant-design-vue@^4.2.6 @ant-design/icons-vue
npm i echarts vue-echarts          # charts (recommended)
  1. Copy assets/main.tssetup/main.ts (registers antd, all icons, and `` globally).
  2. Copy assets/AntdThemeProvider.vue.mdcomponents/AntdThemeProvider.vue.md (ConfigProvider + dark-mode sync + sane tokens).
  3. In slides.md headmatter, bump the canvas so dashboards aren't cramped:
    ---
    canvasWidth: 1280
    ---
    
  4. Wrap any dashboard slide content in `` and use a full layout. Paste an example from examples/ to start.

Full, annotated instructions: references/setup.md.

The 5 golden rules (details in dashboard-rules.md)

  1. One Layout shell per dashboard: a-layouta-layout-sider (nav) + a-layout-header (top bar) + a-layout-content (work area). Don't hand-roll flexbox for the frame.
  2. Everything sits on the 24-column grid (a-row/a-col with :gutter). KPI cards = 4–6 across; never free-position.
  3. 8 px spacing rhythm — gutters and margins in multiples of 8 (8/16/24). Use a-space instead of margin hacks.
  4. Color is semantic, not decorative — primary for the one main action per view; green/red/gold via a-tag/a-badge/Statistic only to encode meaning. ≤1 primary button per region.
  5. Show structure, not lorem — realistic labels and numbers; use a-skeleton/a-empty for loading/empty states in mockups.

What's in this skill

FileUse it for
references/setup.mdInstall, setup/main.ts, theming, dark mode, scaling, charts, the React-antd→ant-design-vue translation table, pitfalls.
references/components.mdEvery ant-design-vue component, grouped, with key props + "use-in-dashboard" guidance and the a- tag name.
references/dashboard-rules.mdComposition rules: layout, grid, spacing, color, density, KPI cards, tables, fitting onto a slide, do/don't.
references/navigation.mdMenu & navigation design spec: sider vs top nav, IA depth, Menu/Breadcrumb/Tabs/Steps patterns, responsive, do/don't.
assets/Drop-in main.ts, AntdThemeProvider.vue.md, styles.css.
examples/4 complete copy-paste dashboard slides: admin shell, analytics overview, data-table page, detail+form page.

Workflow when asked to "make a dashboard slide"

  1. Confirm the project is a Slidev project and the setup in setup.md is in place (or add it).
  2. Pick the closest example in examples/ as a skeleton.
  3. Choose the navigation pattern from navigation.md (sider menu is the default for admin dashboards).
  4. Lay out content on the grid per dashboard-rules.md; pick components from components.md.
  5. Wrap in ``, set the slide layout: full, verify it fits the canvas (npm run dev).

相关技能

Create and present web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, and interactive features. U...

3 次安装

Build large-screen data-visualization dashboards (大屏 / 数据大屏 / 可视化大屏) as Slidev presentations using the datav-vue3 (DataV) component library. Use when the user wants a data dashboard

1 次安装

Learn and look up how to use any ant-design-vue (Vue 3) component — its variants, runnable examples, Vue 3 SFC code, and key props/events/slots. Use when the user asks how to use an ant-design-vue

2 次安装

Query project-specific Arco Design usage patterns and generate Vue 3 admin page prototypes with mock data, scaffold files, and route snippets. Use when Codex...

18 次安装

A design-language assistant for Ant Design (antd). Use when the user wants to learn, apply, critique, or theme UIs according to Ant Design's design language — its four design values

1 次安装

Apply VueUse composables where appropriate to build concise, maintainable Vue.js / Nuxt features. Use when writing Vue/Nuxt code and need reactive utilities.

4 次安装