culler
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

culler

culler is a color utility library that helps users create, manipulate, convert, and apply colors. culler is written in TypeScript and ships with full type safety, and maintains backward compatibility with commonJS imports.

NOTE: culler is in early active development, and will see many breaking changes before version 1.0.0

Features

  • Generate a random rgb, rgba, or hex color string using gen()
  • Convert Color values between formats, including from semi-transparent to solid colors using convert()
  • Provide a clean syntax to apply a color to a CSS selector string, HTML Element, or an iterable containing HTML Elements with apply()
  • It's TINY. This library is significantly smaller than 1 GB 🔥

Todo

  • [x] CI
  • [x] Unit tests
    • [x] convert()
    • [x] gen()
  • [ ] DOM testing
    • [ ] apply()
  • [ ] Generate gradients
  • [ ] Presets for gen()
    • [ ] e.g. gen({preset: "pastel"})
  • [ ] Generate color palettes
  • [ ] Debug
    • [ ] Type exports inferred as any (e.g. Color)

Package Sidebar

Install

npm i culler

Weekly Downloads

11

Version

0.7.2

License

ISC

Unpacked Size

19 kB

Total Files

5

Last publish

Collaborators

  • shawa.dev