AI-native design editor. Open-source Figma alternative.
import type { Component } from 'vue'
import IconHash from '~icons/lucide/hash'
import IconPalette from '~icons/lucide/palette'
import IconToggleLeft from '~icons/lucide/toggle-left'
import IconType from '~icons/lucide/type'
import type { VariableType } from '@open-pencil/scene-graph'
/** One icon per variable type, shared by the add menu, the list rows, and the type filter. */
export const VARIABLE_TYPE_ICONS: Record<VariableType, Component> = {
COLOR: IconPalette,
FLOAT: IconHash,
STRING: IconType,
BOOLEAN: IconToggleLeft
}
export const VARIABLE_TYPES: readonly VariableType[] = ['COLOR', 'FLOAT', 'STRING', 'BOOLEAN']