Installation
Set up useVyre in your React or Vue 3 project. Import the tokens and styles once, then import components anywhere.
Install packages
You need two packages: the framework adapter (@usevyre/react or @usevyre/vue)
and the shared design tokens (@usevyre/tokens).
Want everything in one command?
Use a meta-package to get tokens + AI tooling (MCP server, ESLint plugin, validate CLI, prompt templates) bundled together.
# React only
npm i @usevyre/react-all
# Vue only
npm i @usevyre/vue-all
# React + Vue + everything
npm i @usevyre/all
Import from the specific sub-packages as usual — tree-shaking still works.
Import styles
Add these two imports at your app entry point. Order matters — tokens must come before component styles.
Vue: add ToastViewport
In Vue, place ToastViewport once in your root layout. This is where toast notifications
will be rendered.
<!-- App.vue — place ToastViewport once in the layout -->
<script setup lang="ts">
import { ToastViewport } from "@usevyre/vue";
</script>
<template>
<RouterView />
<ToastViewport />
</template> Usage
Import components directly from the package — no registration or plugin required.
Local development
To run the docs site locally or contribute to useVyre:
# Clone the repo
git clone https://github.com/gapra/usevyre.git
cd usevyre
# Install dependencies
pnpm install
# Build packages
pnpm --filter @usevyre/tokens build
# Run docs site locally
SITE_MODE=live pnpm --filter @usevyre/docs dev