fiftyone-voodo-design
БесплатноБез исполняемых скриптовНе проверенBuild FiftyOne UIs using VOODO (@voxel51/voodo), the official React component library. Use when building plugin panels, creating interactive UIs, styling…
от voxel51★ 49 звёзд на GitHubОб этом скилле
VOODO Design System for FiftyOne
VOODO (@voxel51/voodo) is the official React component library for FiftyOne applications. Source: https://github.com/voxel51/design-system. Storybook: https://voodo.dev.fiftyone.ai
Key Directive
Look up components in the installed package BEFORE writing any UI code. VOODO ships its own docs command, which reads the version your project installed:
npx @voxel51/voodo list # every component, one line each
npx @voxel51/voodo docs Button # one component's props, docs, and allowed token values
npx @voxel51/voodo tokens Spacing # one token group's values (all groups with no argument)
npx @voxel51/voodo icons # every icon component name
Run it from the project that depends on @voxel51/voodo (2.1.0 or later). Don't guess component names or prop values: docs prints the exact strings each prop accepts.
Rules
The docs say what exists. These rules say how to use it:
- Token props take plain strings:
variant="primary",size="sm",spacing="md". The const members (Size.Sm) still compile but are the older style. - Compose before you build. Check
npx @voxel51/voodo listbefore hand-rolling anything. Mid-level patterns usually exist:FormField,RichList,EmptyState,Toolbar,Modal. - Layout with
<Stack>(orientation="row"or"col",spacing,align,justify), not Tailwind flex classes. - Text with
<Text variant=…>roles:body-primary(15px, the default),body-secondary(14px),body-tertiary(12px),heading-xs…heading-xl,label,caption,code-primary. The size-only variants ("xs"…"xxl") are deprecated. Pick the role by size; don't reshapeTextwith font, leading, orstyleoverrides. - Colors are tokens: pass them as props (
color="text-secondary"). Outside VOODO components, use the exported helpersbgColorClass,textColorClass,borderColorClass, orgetColorCssVar. Never a hand-writtenvar(--color-…)or a raw hex. - Data colors:
viz-chart-*for charts and other UI;viz-overlay-*for labels drawn over images and video. - Icons are components:
<CheckIcon />,<EditIcon />(npx @voxel51/voodo icons).<Icon name=…>is deprecated. - Check both themes. The FiftyOne App defaults to dark mode, but surfaces differ in light mode (
bg-card-elevatedis white there).
Getting started
- Install it in your plugin or app:
{ "dependencies": { "@voxel51/voodo": "^2.1.0" } } - Import the theme CSS once in your entry point. Every component relies on its CSS variables:
import "@voxel51/voodo/theme.css"; - Render a first component. Everything imports from
@voxel51/voodo; see the panel below. - Read a component's docs with
npx @voxel51/voodo docs <Name>. It prints the component's TypeScript props with their docs, then the allowed values for every token type those props use:
Pass those strings as props. A// Token values used above type ButtonSize = "xs" | "sm" | "md"; type Variant = "primary" | "secondary" | "success" | "danger" | "icon" | "borderless" | "expressive";// deprecated:comment lists values that still work but don't belong in new code.
A first panel
import { useState } from "react";
import { useRecoilValue } from "recoil";
import * as fos from "@fiftyone/state"; // Standard FiftyOne alias
import { Button, FormField, Input, Stack, Text } from "@voxel51/voodo";
const MyPanel: React.FC = () => {
const dataset = useRecoilValue(fos.dataset);
const [query, setQuery] = useState("");
return (
<Stack orientation="col" spacing="md">
<Text variant="body-secondary" color="text-secondary">
{dataset?.name}
</Text>
<FormField
label="Filter"
control={
<Input
size="sm"
placeholder="Search..."
value={query}
onChange={(e) => setQuery(e.target.value)}
/>
}
/>
<Button variant="primary" size="sm" onClick={() => runSearch(query)}>
Process
</Button>
</Stack>
);
};
Patterns
These follow the shapes of FiftyOne's own similarity-search panel, written in the current style.
Panel header with actions
import {
AddIcon,
Button,
Heading,
IconAction,
RefreshIcon,
Stack,
Tooltip,
} from "@voxel51/voodo";
<Stack orientation="row" align="center" justify="between">
<Heading level="h2">Searches</Heading>
<Stack orientation="row" spacing="sm" align="center">
<Tooltip content="Refresh">
<IconAction icon={RefreshIcon} aria-label="Refresh" onClick={onRefresh} />
</Tooltip>
<Button variant="primary" size="sm" leadingIcon={AddIcon} onClick={onNew}>
New search
</Button>
</Stack>
</Stack>;
Icon-only buttons are IconAction, always with an aria-label.
List with an empty state
import
Установить fiftyone-voodo-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл fiftyone-voodo-design?
Build FiftyOne UIs using VOODO (@voxel51/voodo), the official React component library. Use when building plugin panels, creating interactive UIs, styling FiftyOne applications, or choosing components, text sizes, colors, and spacing. Looks up the installed version's components and token values with `npx @voxel51/voodo` before writing code.
Как установить скилл fiftyone-voodo-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл fiftyone-voodo-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic