Skip to content

AI-native design editor. Open-source Figma alternative.

485 B
Raw Blame
import { DEFAULT_SHAPE_FILL } from '@open-pencil/core/constants'

import { useColorVariableBinding } from '#vue/controls/color-variable-binding/use'

/**
 * Returns fill-related panel helpers and a reusable default fill value.
 *
 * This composable extends variable-binding behavior with SDK-level defaults for
 * fill editing UIs.
 */
export function useFillControls() {
  const ctx = useColorVariableBinding('fills')

  return {
    ...ctx,
    defaultFill: DEFAULT_SHAPE_FILL
  }
}