Installation
Pick your style and accent in the header first. The commands on this site then use them.
With the CLI
For React, Vue and Svelte. Run this in your project folder. It reads your framework from package.json, asks for a style, an accent colour and a folder, then writes vin.json and vin.css. It also puts data-vin-style on your <html> tag when it can find it (index.html, app/layout.tsx, src/app.html or app.vue); if it can't, it tells you what to add.
npx @vinish/ui initThen add components. Each one is copied into your project, with any component it needs.
npx @vinish/ui add button card dialogWhat's left is importing vin.css once and using the components, which differs a little per framework.
React
React 18 or newer. Works with Vite, Next.js (App Router or Pages) and React Router. Components go in src/components/vin. The interactive ones start with "use client", so they work in Server Components pages.
import "./vin.css";import { Button } from "@/components/vin/button";
export function App() {
return <Button>Save</Button>;
}Vue
Vue 3.4 or newer, as single-file components (.vue). Works with Vite and Nuxt. Components go in src/components/vin.
import "./vin.css";<script setup lang="ts">
import Button from "@/components/vin/button.vue";
</script>
<template>
<Button>Save</Button>
</template>A component with parts exports them from the same file: import Card, { CardHeader, CardTitle } from "@/components/vin/card.vue".
Svelte
Svelte 5.29 or newer (runes). Works with SvelteKit and Vite. In SvelteKit, components go in src/lib/components/vin, so you import them from $lib.
<script>
import "../vin.css";
let { children } = $props();
</script>
{@render children()}<script lang="ts">
import Button from "$lib/components/vin/button.svelte";
</script>
<Button>Save</Button>Svelte has one component per file, so parts have their own files: card-header.svelte, card-title.svelte. add card copies them all.
Vue and Svelte use v-model and bind:, slots and snippets where React uses props. Frameworks lists the differences.
Plain HTML
No build step and no CLI. Link one stylesheet for your style, set the style on <html>, and copy any component's HTML from its page.
<html data-vin-style="precision" style="--vin-accent: #5b5bd6">
<head>
<link rel="stylesheet" href="https://vinish.dev/ui/v1/precision.css">
<!-- Only for interactive components (Select, Tabs, Dropdown Menu…) -->
<script src="https://vinish.dev/ui/v1/vinui.js" defer></script>
</head>Each component page says whether it needs vinui.js. Dialog, Accordion, Popover and others use the browser's own elements and work without it. vinui.js finds components when the page loads; for markup you add later, call VinUI.init(element).
You own the code
Nothing runs from our servers. Edit the files as much as you like; npx @vinish/ui diff shows what changed in VinUI since you added a component, and add --overwrite takes the new version.
Next: Theming, Frameworks, the CLI and AI tools.
Customize
Saved in this browser. Style and accent are in the header.