npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-color-pikr

v1.1.2

Published

A modern, customizable React color picker component library with 8-digit HEX alpha support

Readme

React Color Pikr 🎨

A modern, accessible, and feature-rich React color picker component library with comprehensive alpha channel support

npm version License: MIT TypeScript Bundle Size Downloads

🚀 Live Demo | 📚 Documentation | 📦 npm Package

✨ Why React Color Pikr?

React Color Pikr stands out as the most comprehensive color picker solution for modern React applications. Unlike other libraries, it provides native 8-digit HEX alpha support, zero external dependencies, and built-in accessibility features.

🎯 Perfect For

  • Design Systems: Integrate seamlessly with your design system
  • Content Management: Rich color selection for CMS interfaces
  • Creative Applications: Professional-grade color tools
  • Mobile Applications: Touch-optimized for mobile-first design
  • Accessibility-First Projects: WCAG 2.1 compliant out of the box

🚀 Features

🎨 Advanced Color Support

  • 8-Digit HEX Alpha: Full transparency control with #RRGGBBAA format
  • Multiple Formats: HEX, RGB, HSV, and HSL with seamless conversion
  • Precision Control: High-resolution color selection and alpha blending
  • Real-time Preview: Instant visual feedback with alpha transparency

Accessibility Excellence

  • Keyboard Navigation: Full keyboard support with intuitive controls
  • Screen Reader: ARIA labels and announcements for all interactions
  • High Contrast: Optimized focus indicators and visual cues
  • Touch Accessibility: 44px minimum touch targets for mobile users

📱 Mobile-First Design

  • Touch Optimized: Smooth gesture handling and responsive interactions
  • Cross-Platform: Works flawlessly on iOS, Android, and desktop
  • Performance: 60fps interactions with optimized rendering

🛠 Developer Experience

  • TypeScript First: Complete type definitions and IntelliSense support
  • Zero Dependencies: Lightweight bundle with no external requirements
  • Framework Agnostic: Easy integration with any React application
  • Customizable: Extensive theming and styling options

Installation

npm install react-color-pikr
yarn add react-color-pikr
pnpm add react-color-pikr

Quick Start

import React, { useState } from 'react';
import { ColorPicker } from 'react-color-pikr';

function App() {
  const [color, setColor] = useState('#3498db80'); // 8-digit HEX with alpha

  return (
    <ColorPicker
      value={color}
      onChange={setColor}
      format="hex"
      showAlpha={true}
      showPresets={true}
    />
  );
}

Note: No CSS imports required! All styles are included automatically.

Documentation

| Guide | Description | |-------|-------------| | Getting Started | Installation, setup, and basic usage | | API Reference | Complete component and utility documentation | | Examples | Real-world usage examples and patterns | | Customization | Advanced styling and theming guide | | Migration Guide | Migrate from other color picker libraries |

Quick Examples

Basic Usage

const [color, setColor] = useState('#ff6b6b');
return <ColorPicker value={color} onChange={setColor} />;

With Alpha Channel

<ColorPicker 
  value="#3498db80" 
  onChange={setColor} 
  showAlpha={true} 
  format="hex" 
/>

Custom Presets

const presets = ['#e74c3c', '#3498db', '#2ecc71', '#f39c12'];
<ColorPicker 
  value={color} 
  onChange={setColor} 
  presetColors={presets} 
/>

Multiple Formats

<ColorPicker 
  value={color} 
  onChange={setColor} 
  format="rgb" // Returns: rgba(52, 152, 219, 0.8)
  showColorFormat={true}
/>

Key Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | value | string | #FF0000 | Current color value | | onChange | (color: string) => void | - | Color change callback | | format | 'hex' \| 'rgb' \| 'hsv' \| 'hsl' | 'hex' | Output format | | showAlpha | boolean | false | Enable alpha channel | | showPresets | boolean | true | Show preset colors | | width | number | 280 | Picker width | | height | number | 200 | Picker height |

→ See complete API reference

Why Choose React Color Pikr?

vs. react-color (deprecated)

  • 50% smaller bundle (15KB vs 30KB+)
  • No CSS imports required
  • Better TypeScript support
  • Active maintenance and updates
  • Better alpha support with 8-digit HEX

vs. react-colorful

  • More features (presets, format selector, alpha)
  • Better accessibility
  • TypeScript included
  • Customizable sizing and styling

vs. @uiw/react-color

  • Simpler API with consistent return values
  • Better mobile support
  • No CSS conflicts with inline styles

→ See migration guide

Browser Support

  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+
  • Mobile browsers

Contributing

Contributions are welcome! Please read our Contributing Guide for details.

Development Setup

# Clone repository
git clone https://github.com/ssunils/react-color-pikr.git

# Install dependencies
npm install

# Start development server
npm run dev

# Build library
npm run build:lib

# Validate before release
npm run validate-release

Release Process

# Create releases using GitHub Actions (recommended)
# Go to Actions → Release → Run workflow

# Or use npm scripts
npm run release:patch  # Bug fixes
npm run release:minor  # New features  
npm run release:major  # Breaking changes
npm run release:beta   # Prerelease

License

MIT © Sunil Soundarapandian

Support


Star this repo if React Color Pikr helped you build something awesome!