create-vue-design-lab

Scaffold a Vue-flavored design lab where designers learn HTML/CSS/Vue by typesetting real poster materials.
493 1
Install
npm install create-vue-design-lab
Latest Version:0.1.6
License:MIT
Last Updated:Sep 16, 2026
Links: GitHub  ·  npm
Maintainer: hnroebrt

Vue Design Lab

A poster-workbench scaffold for designers: drop a .vue file and get a poster, tweak design tokens from a panel that writes straight back to source, export PNG / PDF in one click. The bundled sample materials promote the brand itself — typeset in the official Vue style, you learn HTML / CSS / Vue while making real things.

Quick start

pnpm create vue-design-lab my-lab
# or
npm create vue-design-lab@latest my-lab
cd my-lab
pnpm install
pnpm dev

Open http://localhost:5173 — your material list starts empty; the Templates page has eight branded starters (business card, A4/A5 posters, rollup banner, 16:9 slide, social square / link card / story, plus a blank canvas) ready to materialize into real files.

The three conventions

Convention How
Add a material On the Templates page: pick a starter, set size in px or mm + DPI, choose single file or folder — the .vue file is written into src/pages/ for real
Declare export size On the page root element: data-export data-export-w="850" data-export-h="2000" (px)
Tune design tokens Edit --c-* variables in the top-right panel; live preview, writes back to src/styles/tokens.css

Keep the look consistent

The visual contract ships with every scaffold as DESIGN.md next to your package.json — feed it to your AI when vibe coding, and new pages keep the same character as the samples: the Vue palette, the type hierarchy, and a list of banned patterns.


Repository layout (for maintainers)

Two packages live in this repo: the workbench library (vue-design-lab, in template/) and the CLI (create-vue-design-lab, at the root) that scaffolds a host app consuming it. Hosts keep only their materials — src/pages/ — plus a four-line main.ts; every shell update flows through the package.

.
├── index.mjs            # create-vue-design-lab CLI (copies host-template, rewrites deps)
├── host-template/       # the host app scaffold: main.ts, tokens.css, vite.config, DESIGN.md
└── template/            # the vue-design-lab library: shell, components, starters, vite plugin
pnpm install     # install the whole workspace from the repo root
pnpm build       # vue-tsc type-check of the library
# develop against a live host:
node index.mjs ../my-lab --lab "link:$(pwd)/template"

Maintaining this repository? The architecture, dev workflow, scaffolder testing, and publishing steps live in DEVELOPMENT.md.

Related Packages

create-kestrel

Scaffold a Kestrel site on the kestrel-web Nuxt layer: `pnpm create kestrel my-s...

2,978 0
create-swdg-frontend

Scaffold a new SWDG frontend project

1,414
create-clarity-theme

Create a ready-to-run Nuxt blog powered by Clarity Theme.

990 0
@dengzhibo/create-vue3-template

基于 create-vue 的 Vue 3 项目模板

814
vue-mdl-snackbar

An MDL Snackbar plugin for Vue.

612 1

Version History

Version Released License
0.1.6 MIT
0.1.5 MIT
0.1.0 MIT