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 whenevercolorthis
is added without
somewhere in the dependency tree.default-features = false - compact
-
if specified, allow color strings with 3 and 4 digits to be parsed.
e.g.
"ABC"
into0xAABBCCFF
,0x1234
into0x11223344
. - tailwind default = parse-color
-
if specified, parse
IdentNumber
likeRed400
as color names inTailwindCSS
. - unchecked clamp?
-
If specified, disable checks for ints to be in
0..=255
and floats to be in0.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.