Skip to content

Installation

Prerequisites

Packages

PackageDescription
urcolorThe color engine on its own, under an unscoped name. Re-exports @urcolor/core
@urcolor/coreCore color logic and accessibility utilities
@urcolor/sharedFramework-agnostic picker behavior, WebGL rendering, and grid samplers shared by every binding
@urcolor/vueVue 3 components and composables
@urcolor/reactReact components and hooks
@urcolor/preactThe React components and hooks, compiled against preact/compat
@urcolor/svelteSvelte 5 components and rune hooks
@urcolor/angularAngular directives and signal stores
@urcolor/relativeOpt-in CSS Color 5 relative color syntax
@urcolor/i18nMultilingual color names and channel labels

Install

Vue

sh
bun add @urcolor/vue
sh
npm install @urcolor/vue
sh
pnpm add @urcolor/vue
sh
yarn add @urcolor/vue

React

sh
bun add @urcolor/react
sh
npm install @urcolor/react
sh
pnpm add @urcolor/react
sh
yarn add @urcolor/react

Preact

sh
bun add @urcolor/preact
sh
npm install @urcolor/preact
sh
pnpm add @urcolor/preact
sh
yarn add @urcolor/preact

Svelte

sh
bun add @urcolor/svelte
sh
npm install @urcolor/svelte
sh
pnpm add @urcolor/svelte
sh
yarn add @urcolor/svelte

Angular

sh
bun add @urcolor/angular
sh
npm install @urcolor/angular
sh
pnpm add @urcolor/angular
sh
yarn add @urcolor/angular

Every framework package depends on @urcolor/core and @urcolor/shared, so both come along with whichever binding you install. Nothing else does: the Vue package builds on Reka UI primitives, but bundles the parts it uses and ships no dependency on it, and the other bindings carry no third-party runtime dependency at all.

Core only

For the color utilities without a framework binding, install urcolor, the unscoped name for the same engine:

sh
bun add urcolor
sh
npm install urcolor
sh
pnpm add urcolor
sh
yarn add urcolor
ts
import { Color } from "urcolor";

urcolor holds no code of its own. It re-exports @urcolor/core and depends on it by the same range the framework packages use, so you get one copy of the engine and one Color class either way. Install whichever name you prefer. @urcolor/core is already present if you installed a framework binding, and mixing the two names in one project is safe.

Optional packages

@urcolor/relative adds CSS Color 5 relative color syntax, and @urcolor/i18n adds multilingual color naming:

sh
bun add @urcolor/relative @urcolor/i18n
sh
npm install @urcolor/relative @urcolor/i18n
sh
pnpm add @urcolor/relative @urcolor/i18n
sh
yarn add @urcolor/relative @urcolor/i18n