# pastel-vue

> A pastel-toned Vue 3 component library for building calm, modern interfaces and AI-focused tooling.

Latest version **0.8.2** (published 2026-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install pastel-vue
pnpm add pastel-vue
yarn add pastel-vue
bun add pastel-vue
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.8.2 |
| Published | 2026-08-27 |
| First published | 2026-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 8 |
| Unpacked size | 623.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | nvms |
| Maintainers | nvmsy |
| Keywords | vue, vue3, components, component-library, ui, design-system, pastel |

## Links

- npm: https://www.npmjs.com/package/pastel-vue
- Repository: https://github.com/nvms/pastel-vue
- Homepage: https://nvms.github.io/pastel-vue/
- Issues: https://github.com/nvms/pastel-vue/issues
- npm.io page: https://npm.io/package/pastel-vue

## Dependencies (8)

- [diff](https://npm.io/package/diff.md) ^9.0.0
- [prismjs](https://npm.io/package/prismjs.md) ^1.30.0
- [reka-ui](https://npm.io/package/reka-ui.md) ^2.9.7
- [markdown-it](https://npm.io/package/markdown-it.md) ^14.3.0
- [@iconify/vue](https://npm.io/package/@iconify/vue.md) ^5.0.1
- [gpt-tokenizer](https://npm.io/package/gpt-tokenizer.md) ^3.4.0
- [@floating-ui/vue](https://npm.io/package/@floating-ui/vue.md) ^1.1.6
- [@internationalized/date](https://npm.io/package/@internationalized/date.md) ^3.12.1

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 0.8.2 (latest) — 2026-08-27
- 0.8.1 — 2026-08-27
- 0.8.0 — 2026-08-26
- 0.7.6 — 2026-08-01
- 0.7.5 — 2026-08-01
- 0.7.4 — 2026-07-08
- 0.7.3 — 2026-07-08
- 0.7.2 — 2026-07-08
- 0.7.1 — 2026-07-07
- 0.7.0 — 2026-07-07
- 0.6.4 — 2026-07-07
- 0.6.3 — 2026-07-06
- 0.6.2 — 2026-07-02
- 0.6.1 — 2026-06-25
- 0.6.0 — 2026-06-25
- … 7 more at https://npm.io/package/pastel-vue/versions

## README

<p align="center">
  <img src=".github/logo.svg" alt="pastel-vue" width="120" />
</p>

<h1 align="center">pastel-vue</h1>

<p align="center">
  <a href="https://github.com/nvms/pastel-vue/actions/workflows/ci.yml"><img src="https://github.com/nvms/pastel-vue/actions/workflows/ci.yml/badge.svg" alt="ci" /></a>
  <a href="https://www.npmjs.com/package/pastel-vue"><img src="https://img.shields.io/npm/v/pastel-vue" alt="npm" /></a>
</p>

pastel-vue is a Vue 3 component library with a soft, pastel-toned aesthetic. It covers the pieces an application UI actually needs: forms and inputs, overlays, navigation, data display, and a set of components aimed at AI and LLM tooling such as token views, cost estimators, diff viewers, and evaluation scorecards.

The full component showcase, with live variants for every component, is published at **[nvms.github.io/pastel-vue](https://nvms.github.io/pastel-vue/)**.

## Install

```
npm install pastel-vue vue
```

`vue` (3.4 or newer) is a peer dependency.

## Quick start

Import the stylesheet once, near your app entry, then use components anywhere.

```js
// main.js
import { createApp } from "vue"
import App from "./App.vue"
import "pastel-vue/style.css"

createApp(App).mount("#app")
```

```vue
<script setup>
import { ref } from "vue"
import { Button, Input, Field, Card } from "pastel-vue"

const email = ref("")
</script>

<template>
  <Card>
    <Field label="Work email" hint="We never share it.">
      <Input v-model="email" type="email" placeholder="you@company.com" />
    </Field>
    <Button variant="primary" :disabled="!email">Continue</Button>
  </Card>
</template>
```

## Examples

### A save button that shows progress

The `Button` animates its width as it swaps in a spinner, so the layout never jumps while a request is in flight.

```vue
<script setup>
import { ref } from "vue"
import { Button } from "pastel-vue"

const saving = ref(false)

async function save() {
  saving.value = true
  try {
    await fetch("/api/profile", { method: "PUT" })
  } finally {
    saving.value = false
  }
}
</script>

<template>
  <Button variant="primary" :loading="saving" loading-label="Saving" @click="save">
    Save changes
  </Button>
</template>
```

### Toasts without a provider

Mount `Notifications` once at the root of your app. Anywhere else, call `toast` and friends directly.

```vue
<!-- App.vue -->
<script setup>
import { Notifications } from "pastel-vue"
</script>

<template>
  <RouterView />
  <Notifications />
</template>
```

```js
import { toast } from "pastel-vue"

toast.success("Profile saved")
toast.error("Upload failed", {
  description: "The file was larger than 25 MB.",
  action: { label: "Retry", onClick: retryUpload },
})
```

### Estimating the cost of an LLM call

`CostEstimator`, `TokenView`, and the `tokenize` / `costOf` helpers turn a prompt into a token count and a dollar figure before you send it.

```vue
<script setup>
import { ref, computed } from "vue"
import { TokenView, tokenize, costOf, formatUSD } from "pastel-vue"

const prompt = ref("Summarize the attached recipe in three bullet points.")
const tokenCount = computed(() => tokenize(prompt.value).count)
const cost = computed(() => costOf("gpt-5", tokenCount.value, 0))
</script>

<template>
  <TokenView :text="prompt" />
  <p>{{ tokenCount }} tokens, about {{ formatUSD(cost?.total) }} per call</p>
</template>
```

## What's included

Roughly 90 components, grouped the way the showcase is:

- **Primitives** - Button, Badge, Card, Panel, Stat, Callout, Banner, Avatar, Spinner, Skeleton, ProgressBar, and more
- **Forms** - Input, Textarea, Select, Checkbox, Switch, RadioGroup, Field, Combobox, TagInput, PinInput
- **Controls** - NumberInput, Scrubber, ToggleGroup, Rating, Knob
- **Overlays** - Tooltip, Popover, Modal, Drawer, DropdownMenu, ContextMenu, Notifications
- **Data** - Slider, DatePicker, DateRangePicker, MultiSelect, Pagination, Tree, Accordion, Table, Breadcrumbs
- **Data viz and insight** - Timeline, Sparkline, Gauge, ActivityHeatmap, DiffViewer, CodeBlock, DistributionBar, ConfidenceMeter, EmbeddingMap
- **LLM tooling** - TokenView, Conversation, CostBreakdown, CostEstimator, ChunkedDocument, RetrievedChunks, CitedAnswer
- **Evaluation** - EvalSuite, EvalScorecard, EvalComparison, EvalRubricScore, EvalAssertion
- **Layout and navigation** - Tabs, AppLayout, ListDetail, SideNav, PageHeader, Toolbar, MenuBar, Wizard, SegmentedControl

Browse them all, with editable props, in the [showcase](https://nvms.github.io/pastel-vue/).

## Local development

The showcase runs on [Histoire](https://histoire.dev).

```
npm install
npm run dev      # start the showcase dev server
npm run build    # build the static showcase site
npm run preview  # preview the built site
```

## Status

This project is an experiment in AI-maintained open source - autonomously built, tested, and refined by AI with human oversight.

## License

MIT

---
_Source: https://npm.io/package/pastel-vue · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
