Getting started Guide
A five-minute path to a VD3 UI-styled page with Vue 3 — Vite or Nuxt, one CSS import, the VanduoVue plugin, and a named VdCard / VdButton. For plugin options, Nuxt, Nuxt UI, and the canvas bundle, use Installation & Integration.
Scaffold a Vue project
# Vite (Vue 3 + TypeScript)
pnpm create vite my-app --template vue-ts
cd my-app
pnpm add @vanduo-oss/vd3
# Or Nuxt
npx nuxi@latest init my-app
cd my-app
pnpm add @vanduo-oss/vd3Register VD3 UI & its styles
Add the VanduoVue plugin and the stylesheet once in your entry file. The plugin applies theme defaults and a storage prefix — it does not register components globally.
// main.ts — register VD3 UI and its styles
import { createApp } from 'vue';
import { VanduoVue } from '@vanduo-oss/vd3';
import '@vanduo-oss/vd3/css';
import App from './App.vue';
createApp(App).use(VanduoVue).mount('#app');What tree-shakes. Named JS imports (
VdButton, useToast) tree-shake. @vanduo-oss/vd3/css is the full stylesheet — not a PurgeCSS slice. Use @vanduo-oss/vd3/css/core only if you want the same tree without bundled icon fonts. Use the components
Import each Vd* you use from @vanduo-oss/vd3:
Build fast with VD3 UI
First-class Vue 3 components.
<script setup lang="ts">
import { VdCard, VdButton } from '@vanduo-oss/vd3';
</script>
<template>
<VdCard>
<h1>Build fast with VD3 UI</h1>
<p class="vd-text-lg vd-text-muted">First-class Vue 3 components.</p>
<VdButton variant="primary" size="lg">Get started</VdButton>
</VdCard>
</template> Add @vanduo-oss/vd3-charts or @vanduo-oss/vd3-flowchart for data visualization or diagram editing.