The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Package csscolor parses CSS color values shared by the html and svg
packages: named colors, hex, rgb()/rgba(), hsl()/hsla(), and
cmyk()/device-cmyk(). It has no opinion on the caller-specific
keywords "none", "currentcolor", "transparent", "inherit", or
"initial" — those stay in the calling package.
Lookup returns the RGB components (each 0-1, full float64 precision) of
a CSS named color. Callers must lowercase name first. ok is false for
unknown names.
type Color struct {
R, G, B, A float64 CMYK *[4]float64}
Color is a parsed CSS color. R, G, B, and A are in [0, 1]. CMYK is
non-nil only when the input was a cmyk()/device-cmyk() function;
callers that don't support CMYK should treat a non-nil CMYK as
unsupported.
Parse parses a CSS color value. Supports named colors, #RGB, #RGBA,
#RRGGBB, #RRGGBBAA, rgb()/rgba() (comma and CSS Color 4 space-separated
forms), hsl()/hsla() (comma and space forms), and cmyk()/device-cmyk().
Alpha defaults to 1.0 for formats that don't include it.