Getting Started
Install
Section titled “Install”Install Huey with your favorite package manager:
pnpm i @hueycolor/vuenpm i @hueycolor/vuebun add @hueycolor/vueQuick Start
Section titled “Quick Start”Wrap your picker components in HueyRoot and bind a color with v-model:
<script setup>import { ref } from 'vue'import { HueyRoot, HueSlider, SaturationArea, AlphaSlider, HexInput, ColorPreview, hueyColor} from '@hueycolor/vue'
const color = ref(hueyColor('#ff6b35'))</script>
<template> <HueyRoot v-model="color"> <SaturationArea /> <HueSlider /> <AlphaSlider /> <HexInput /> <ColorPreview /> </HueyRoot></template>That’s it! A fully functional color picker. Every component inside HueyRoot automatically shares and updates the same color state.
Core Concepts
Section titled “Core Concepts”HueyRoot as Context Provider
Section titled “HueyRoot as Context Provider”HueyRoot is the entry point for every Huey picker. It accepts a v-model of type HueyColor and provides shared color state to all child components through Vue’s provide/inject pattern.
All Huey components must be descendants of a HueyRoot.
Color Formats
Section titled “Color Formats”HueyRoot accepts any color format that @hueycolor/core supports:
hueyColor('#ff6b35') // HexhueyColor('rgb(255, 107, 53)') // RGBhueyColor('hsl(18, 100%, 60%)') // HSLhueyColor('oklch(72% 0.19 45)') // OKLCHMinimally Styled Components
Section titled “Minimally Styled Components”Huey components ship with lightweight baseline styles. Just enough to be functional (positioning, gradients, sizing). Visual details like colors, borders, spacing, and layout are left to you. Customize them through CSS custom properties and attribute selectors. See the Styling guide for details.
Composable Components
Section titled “Composable Components”Pick only the components you need. A minimal picker might use just SaturationArea and HueSlider, while a full-featured one could include sliders, inputs, an area picker, swatches, and a preview. All composed freely within a single HueyRoot.
Using Core Standalone
Section titled “Using Core Standalone”The core package works independently of any framework. If you only need color parsing, conversion, and manipulation without UI components, see the @hueycolor/core docs.