Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CssColorFormat

import { CssColorFormat } from "https://raw.githubusercontent.com/i-xi-dev/color.es/5.2.10/mod.ts";

The CSS color value format.

CSS Color Level 3 values are supported except for the following values:

  • <system-color>
  • currentcolor
  • inherit
  • initial
  • revert
  • unset
  • var()
  • ...

§Functions

CssColorFormat.format

Creates CSS color value from an instance of RgbColor.

CssColorFormat.parse

Creates a new instance of RgbColor from a CSS color value.

§Type Aliases

CssColorFormat.FormatOptions