Skip to main content

Vue 3 Design System Component Library

Build a Vue 3 design system with themed components, tokens, documentation, and npm publishing — consistent UI across applications.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt

                                

What this prompt does

This prompt asks the AI to build a Vue 3 design system component library for [brand_name]. It starts with a design-token system using CSS custom properties for [tokens], builds [component_count] base components ([components]), and adds a theming engine supporting [theme_count] themes with runtime switching. Each component has a clear API — typed props, slots, emits, expose — and is built WCAG [wcag_level] compliant, with responsive behavior via [breakpoint_system].

The structure works because a design system is only worth adopting if it is consistent, accessible, and easy to consume, and this prompt bakes those in from the start. Tokens centralize design decisions so themes are just token swaps; built-in accessibility means components don't fight WCAG later. Storybook documentation, visual regression testing with [vrt_tool], tree-shakeable ESM and CJS exports via Vite library mode, and an npm package with auto-generated types and changelog make it shippable across apps and teams. A clear component API — typed props, slots, emits, and expose — is what determines whether consumers actually adopt the library: components that are easy to compose and extend get used, while opaque ones get worked around, so the prompt treats the public surface of each component as a first-class concern.

When to use it

  • You want consistent UI across multiple apps and teams from one shared library.
  • You need a token-driven theming engine with [theme_count] themes and runtime switching.
  • You want [component_count] accessible base components built to WCAG [wcag_level].
  • You are publishing to npm and need tree-shakeable ESM/CJS with generated TypeScript types.
  • You want Storybook docs and visual regression via [vrt_tool] so changes don't silently break UI.
  • You want design decisions centralized in [tokens] rather than scattered across components.

Example output

Expect a token system in CSS custom properties for [tokens], [component_count] typed Vue 3 components ([components]), a theming engine for [theme_count] themes with runtime switching, WCAG [wcag_level] accessibility, [breakpoint_system] responsiveness, Storybook docs with controls and an a11y addon, [vrt_tool] visual regression setup, tree-shakeable ESM/CJS via Vite library mode, and an npm package with auto-generated declarations and changelog.

Pro tips

  • Design [tokens] first and thoroughly — colors, spacing, typography — because every component and theme derives from them, and retrofitting tokens later is painful.
  • Keep [theme_count] themes as pure token overrides so runtime switching is a variable swap, not per-component branching.
  • Build accessibility into each component from the start; bolting WCAG [wcag_level] compliance on afterward usually means rewrites.
  • Verify tree-shaking actually works — import one component and check the bundle; barrel files can accidentally pull in the whole library.
  • Use [vrt_tool] snapshots to catch unintended visual changes; without them, a token tweak can silently shift dozens of components.
  • Match [breakpoint_system] to your apps' existing breakpoints (e.g. Tailwind-compatible) so consumers don't fight two responsive systems.

Frequently Asked Questions

Why build the token system before the components?
Every component and theme derives from the design tokens for `[tokens]`, so they form the foundation. Defining colors, spacing, and typography first means themes become simple token overrides, whereas retrofitting tokens after building components usually forces painful rewrites across the whole library.
How does runtime theme switching work?
Themes for `[theme_count]` are implemented as token overrides on CSS custom properties, so switching a theme swaps variable values rather than re-rendering branched component logic. Keep themes as pure token sets to make runtime switching a clean variable change instead of per-component conditionals.
Will the published package tree-shake properly?
It's configured for tree-shakeable ESM and CJS exports via Vite library mode. Verify it actually works by importing a single component and inspecting the bundle, since barrel files and side-effectful imports can accidentally pull the entire library into a consumer's build.
Are the components accessible out of the box?
Yes. Components are built to WCAG `[wcag_level]` compliance from the start, and Storybook includes an accessibility addon for ongoing checks. Building accessibility in early matters, because adding WCAG compliance after the components exist typically means reworking markup and interaction patterns.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in Vue.js & Angular Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support