@skchr/color
    Preparing search index...

    Installation

    npm install @skchr/color
    
    yarn add @skchr/color
    
    bun add @skchr/color
    
    deno add jsr:@skchr/color
    

    Import functions from the package:

    import { token, colors, hueshift } from "@skchr/color";

    // Parse a color to hex
    token("cyan"); // "#00ffff"

    // Get Tailwind colors
    colors("red"); // ['#fef2f2', '#fee2e2', ...]

    // Generate a hue-shifted palette
    hueshift("#3e0000"); // ['#ffffe1', '#ffdca5', ...]
    • TypeScript 5.0+
    • ES Modules support