react-colorful
Integrate ultra-lightweight, zero-dependency color pickers in React apps using react-colorful. Use when adding color pickers (Hex, RGB, HSL, HSV) with…
от siddu1004★ 43 звезды на GitHub
Установить react-colorful в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
react-colorful
A tiny (2.8 KB), dependency-free, accessible color picker component for React (omgovich/react-colorful). Supports HEX, RGB, RGBA, HSL, HSLA, HSV, and HSVA color formats.
Use This Skill When
- Adding color picker widgets to React dashboards, design tools, or theme editors.
- Replacing heavy, bloated legacy color pickers with a clean, bundle-efficient alternative.
- Ensuring full keyboard navigation (
Arrowkeys) and screen reader accessibility for color controls.
Installation
npm install react-colorful
Component Implementation
import React, { useState } from "react";
import { HexColorPicker, HexColorInput } from "react-colorful";
export function CustomColorPicker() {
const [color, setColor] = useState("#3b82f6");
return (
<div className="flex flex-col gap-2 p-4 bg-white rounded-lg shadow-sm border">
<HexColorPicker color={color} onChange={setColor} />
<div className="flex items-center gap-2">
<span className="text-xs font-mono text-gray-500">HEX:</span>
<HexColorInput
color={color}
onChange={setColor}
prefixed
className="px-2 py-1 border rounded text-xs font-mono uppercase"
/>
</div>
</div>
);
}
Checks & Best Practices
- Use
HexColorInputor an accessible text field alongside the graphical picker so keyboard and screen-reader users can type values directly. - For alpha channel transparency, import
RgbaColorPickerorHslaColorPickerinstead ofHexColorPicker. - Apply custom styling via standard CSS classes
.react-colorful,.react-colorful__saturation,.react-colorful__hue.
Sources
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- LICENSE
FAQ
Что делает скилл react-colorful?
Integrate ultra-lightweight, zero-dependency color pickers in React apps using react-colorful. Use when adding color pickers (Hex, RGB, HSL, HSV) with keyboard accessibility, custom styling, or alpha support to React interfaces.
Как установить скилл react-colorful?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл react-colorful запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…