Color rosette
VdColorRosette is the Fibonacci-shape color picker used inside Theme Studio. shape="blade" is a 360-degree ring of flared paddles (stem, concave waist, circular bulb at about φ²). shape="dot" is the compact ring of solid circles. The component is a controlled radiogroup: pass options and v-model. It does not read or write the theme.
Open Color blades
Selected cyan
Fibonacci blades
Same keys and the same paddle. Each color is the Fibonacci step 6 (var(--vd-fib-*-6)), so the page palette stays Open Color.
Selected cyan
Compact dot ring
Usage
<script setup lang="ts">
import { ref } from "vue";
import { VdColorRosette } from "@vanduo-oss/vd3";
const hue = ref("cyan");
const options = [
{ value: "crimson", label: "Crimson", color: "#e03131" },
{ value: "cyan", label: "Cyan", color: "#15aabf" },
{ value: "cobalt", label: "Cobalt", color: "#3b5bdb" },
{ value: "gold", label: "Gold", color: "#f59f00" },
];
</script>
<template>
<VdColorRosette
v-model="hue"
ariaLabel="Brand color"
legend="Brand · 4"
:options="options"
/>
</template>API
Props
| Prop | Type | Description |
|---|---|---|
options | { value: string; label: string; color: string }[] | Choices. color is any CSS color, written to --vd-swatch-color. |
modelValue | string | Checked option value. Use v-model. |
shape | "blade" | "dot" | Default "blade". Blade is the flared Fibonacci paddle. Dot is the compact ring. |
legend | string | Optional hub caption, for example "Primary · 24". |
ariaLabel | string | Required accessible name of the radiogroup. |
hovered | string | null | Optional hovered value owned by the parent. The hub follows it. |
Events
| Event | Payload | Description |
|---|---|---|
update:modelValue | value: string | The option was chosen. |
hover | value: string | The pointer entered an option. Does not commit. |
leave | — | The pointer left the wheel. |
Classes
| Class | Role |
|---|---|
.vd-color-rosette | The wheel. role=radiogroup. |
.vd-color-rosette.is-blade | Flared-paddle shape. |
.vd-color-rosette.is-dot | Compact dot ring. |
.vd-color-rosette-item | One option. role=radio. is-active, is-hovered, is-left. |
.vd-color-rosette-shape | Inline SVG of the golden-ratio paddle. |
.vd-color-rosette-swatch | Solid color circle. |
.vd-color-rosette-hub | Center readout: swatch, label, legend. |