Vue projects use scoped styles, CSS custom properties, and composables for theming. A designtoken.md gives your coding agent the full design system — color scales, typography, spacing — so it generates consistent Vue components whether you're using Options API, Composition API, or Nuxt.
Three proven patterns for token consumption in Vue projects.
Vue's scoped styles work perfectly with CSS custom properties sourced from designtoken.md. Your agent generates var(--color-primary-500) in your <style scoped> blocks. Full color scales mean consistent theming.
For dynamic theming, your agent generates useTheme() composables that reference your token hierarchy. The Composition API makes token access reactive and type-safe.
Same approach, works with Nuxt 3's auto-imports and modules. designtoken.md sits in your project root, agent reads it for any page or component. Works with Nuxt UI and UnoCSS too.
Here's a Vue SFC that uses tokens correctly for a button component.
designtoken.md plays well with the tools and frameworks you're already using.
Auto-imports, file-based routing, same token file. Your agent reads designtoken.md and generates Nuxt 3 composables, auto-import compatible components, and uses Nuxt layers for theme configuration.
Token values map to Vuetify's theme configuration. Your agent can generate theme objects that pull colors, typography, and spacing from designtoken.md, ensuring Vuetify components stay in sync with your design system.
CSS variable theming compatible with designtoken.md output. Your agent generates PrimeVue theme customization that references your token scales, so all component variants inherit your design system.
Utility-first like Tailwind. designtoken.md outputs compatible config. Your agent generates UnoCSS utilities that map directly to your tokens, enabling utility-driven component development.
Create a designtoken.md for your Vue project, free, no signup.
Start generating →