Cargo Features

[dependencies]
colorthis = { version = "0.1.1", default-features = false, features = ["compact", "tailwind", "unchecked", "clamp"] }
default = tailwind

The tailwind feature is set by default whenever colorthis is added without default-features = false somewhere in the dependency tree.

compact

if specified, allow color strings with 3 and 4 digits to be parsed.

e.g. "ABC" into 0xAABBCCFF, 0x1234 into 0x11223344.

tailwind default = parse-color

if specified, parse IdentNumber like Red400 as color names in TailwindCSS.

unchecked clamp?

If specified, disable checks for ints to be in 0..=255 and floats to be in 0.0..=1.0

clamp = unchecked

If specified, clamp ints in 0..=255 and floats in 0.0..=1.0.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

parse-color tailwind