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

PropTypeDescription
options{ value: string; label: string; color: string }[]Choices. color is any CSS color, written to --vd-swatch-color.
modelValuestringChecked option value. Use v-model.
shape"blade" | "dot"Default "blade". Blade is the flared Fibonacci paddle. Dot is the compact ring.
legendstringOptional hub caption, for example "Primary · 24".
ariaLabelstringRequired accessible name of the radiogroup.
hoveredstring | nullOptional hovered value owned by the parent. The hub follows it.

Events

EventPayloadDescription
update:modelValuevalue: stringThe option was chosen.
hovervalue: stringThe pointer entered an option. Does not commit.
leave—The pointer left the wheel.

Classes

ClassRole
.vd-color-rosetteThe wheel. role=radiogroup.
.vd-color-rosette.is-bladeFlared-paddle shape.
.vd-color-rosette.is-dotCompact dot ring.
.vd-color-rosette-itemOne option. role=radio. is-active, is-hovered, is-left.
.vd-color-rosette-shapeInline SVG of the golden-ratio paddle.
.vd-color-rosette-swatchSolid color circle.
.vd-color-rosette-hubCenter readout: swatch, label, legend.