origam
origam
A Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.
📖 Full documentation & interactive theme builder: https://origam.dev (coming soon) · GitHub repository
Installation
npm install origam # or: pnpm add origam, or: yarn add origam
| Peer dependency | Required | Used by |
|---|---|---|
vue |
^3.5 |
Always. |
vue-i18n |
optional | Locale composable. |
vue-router |
optional | Link components. |
shiki |
optional | OrigamCode syntax highlight. |
Quick start
// main.ts
import { createApp } from 'vue'
import { createOrigam } from 'origam'
import 'origam/tokens/css/primitive'
import 'origam/tokens/css/light'
import 'origam/tokens/css/utilities'
import App from './App.vue'
const origam = createOrigam()
createApp(App).use(origam).mount('#app')
<template>
<origam-btn color="primary" text="Save" />
</template>
Nuxt
The package ships an official Nuxt module:
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['origam/nuxt']
})
Theming
- Multi-theme, two axes —
data-theme(brand) ×data-mode(light/dark), driven by design tokens (primitive → semantic → componenttiers).prefers-color-schemeis honoured in auto mode. - Props-first — a theme is an object configuring component props first (variant, rounded, density, elevation, …), then semantic tokens; raw CSS vars are the last resort.
- CSS-first components — modern CSS (
grid,:has(), container queries,color-mix()) before JavaScript, with feature-detection fallbacks.
Token stylesheets are exposed as dedicated entries: origam/styles
(full aggregate), origam/tokens/css/* and origam/tokens/scss/*
(granular), plus typed sub-exports (origam/components,
origam/composables, origam/enums, origam/types, …).
Links
- Documentation & theme builder (coming soon)
- Changelog
- Issues
License
MIT © Prioul Arnaud
Related Packages
DATAMETRIA Vue.js 3 Component Library with Multi-Brand Theming - 51 components +...
Design-token driven Vue 3 / Nuxt component library: one size scale, dark and lig...
eos design tokens: CSS custom properties, typed values and a theme generator wit...
Version History
| Version | Released | License |
|---|---|---|
| 2.37.10 | MIT | |
| 2.37.9 | MIT | |
| 2.37.8 | MIT | |
| 2.37.7 | MIT | |
| 2.37.6 | MIT | |
| 2.37.5 | MIT | |
| 2.37.4 | MIT | |
| 2.37.3 | MIT | |
| 2.37.2 | MIT | |
| 2.37.1 | MIT | |
| 2.37.0 | MIT | |
| 2.36.0 | MIT | |
| 2.35.1 | MIT | |
| 2.35.0 | MIT | |
| 2.34.0 | MIT | |
| 2.33.0 | MIT | |
| 2.32.2 | MIT | |
| 2.32.1 | MIT | |
| 2.32.0 | MIT | |
| 2.31.0 | MIT | |
| 2.30.0 | MIT | |
| 2.29.2 | MIT | |
| 2.29.1 | MIT | |
| 2.27.0 | MIT | |
| 2.26.2 | MIT | |
| 2.26.1 | MIT | |
| 2.26.0 | MIT | |
| 2.25.0 | MIT | |
| 2.24.0 | MIT | |
| 2.23.2 | MIT |
Showing the latest 30 of 94. See every release on npm