clay-0.14.0: CSS preprocessor as embedded Haskell.
Safe HaskellNone
LanguageHaskell2010

Clay.Color

Synopsis

Color datatype.

data Color Source #

Instances

Instances details
Eq Color Source # 
Instance details

Defined in Clay.Color

Methods

(==) :: Color -> Color -> Bool #

(/=) :: Color -> Color -> Bool #

Show Color Source # 
Instance details

Defined in Clay.Color

Methods

showsPrec :: Int -> Color -> ShowS #

show :: Color -> String #

showList :: [Color] -> ShowS #

IsString Color Source # 
Instance details

Defined in Clay.Color

Methods

fromString :: String -> Color #

Val Color Source # 
Instance details

Defined in Clay.Color

Methods

value :: Color -> Value Source #

Other Color Source # 
Instance details

Defined in Clay.Color

Methods

other :: Value -> Color Source #

None Color Source # 
Instance details

Defined in Clay.Color

Methods

none :: Color Source #

Inherit Color Source # 
Instance details

Defined in Clay.Color

Methods

inherit :: Color Source #

Auto Color Source # 
Instance details

Defined in Clay.Color

Methods

auto :: Color Source #

Background Color Source # 
Instance details

Defined in Clay.Background

Methods

background :: Color -> Css Source #

Color constructors.

Setting individual color components.

Color conversions.

Computing with colors.

(*.) :: Color -> Integer -> Color infixl 7 Source #

(+.) :: Color -> Integer -> Color infixl 6 Source #

(-.) :: Color -> Integer -> Color infixl 6 Source #

clamp :: Ord a => Num a => a -> a Source #

List of color values by name.