package styled-ppx

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type direction = [
  1. | Angle.t
  2. | `Bottom
  3. | `BottomLeft
  4. | `BottomRight
  5. | `Left
  6. | `Right
  7. | `Top
  8. | `TopLeft
  9. | `TopRight
]
type color_stop_list = ([ Color.t | Var.t ] option * Length.t option) array
type shape = [
  1. | `ellipse
  2. | `circle
]
type radial_size = [
  1. | `closestSide
  2. | `closestCorner
  3. | `farthestSide
  4. | `farthestCorner
]
type t = [
  1. | `linearGradient of direction option * color_stop_list
  2. | `repeatingLinearGradient of direction option * color_stop_list
  3. | `radialGradient of shape option * radial_size option * Position.t option * color_stop_list
  4. | `repeatingRadialGradient of shape option * radial_size option * Position.t option * color_stop_list
  5. | `conicGradient of direction option * color_stop_list
]
val linearGradient : 'a -> 'b -> [> `linearGradient of 'a option * 'b ]
val repeatingLinearGradient : 'a -> 'b -> [> `repeatingLinearGradient of 'a option * 'b ]
val radialGradient : shape -> radial_size -> Position.t -> color_stop_list -> [> `radialGradient of shape option * radial_size option * Position.t option * color_stop_list ]
val repeatingRadialGradient : shape -> radial_size -> Position.t -> color_stop_list -> [> `repeatingRadialGradient of shape option * radial_size option * Position.t option * color_stop_list ]
val conicGradient : 'a -> 'b -> [> `conicGradient of 'a option * 'b ]
val string_of_color : [< `colorMix of Color.t Color.colorMix | `currentColor | `hex of string | `hsl of Color.hsl | `hsla of Color.hsla | `rgb of Color.rgb | `rgba of Color.rgba | `transparent | `var of Js.String.t | `varDefault of Js.String.t * string ] -> string
val string_of_stops : ([< `colorMix of Color.t Color.colorMix | `currentColor | `hex of string | `hsl of Color.hsl | `hsla of Color.hsla | `rgb of Color.rgb | `rgba of Color.rgba | `transparent | `var of Js.String.t | `varDefault of Js.String.t * string ] option * [< `calc of [< `add of [< `calc of 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'c * 'c | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'c * 'c | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'c * 'c | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'b & [< `add of [< `calc of 'd | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'e * 'e | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'e * 'e | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'e * 'e | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'd | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ch cm em ex inch mm pc percent pt px pxFloat rem vh vmax vmin vw zero ] as 'a option) Belt.Array.t -> string
val direction_to_string : [< `Bottom | `BottomLeft | `BottomRight | `Left | `Right | `Top | `TopLeft | `TopRight | `deg of Js.Float.t | `grad of Js.Float.t | `rad of Js.Float.t | `turn of Js.Float.t ] -> string
val string_of_shape : [< `circle | `ellipse ] -> string
val string_of_size : [< `closestCorner | `closestSide | `farthestCorner | `farthestSide ] -> string
val string_of_position : [< `bottom | `calc of [ `add of Length.calc_value * Length.calc_value | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `mm of Js.Float.t | `mult of Length.calc_value * Length.calc_value | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of Length.calc_value * Length.calc_value | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] | `center | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `left | `max of Length.t Belt.Array.t | `min of Length.t Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `right | `top | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] -> string
val maybe_string_of_shape : [< `circle | `ellipse ] option -> string
val maybe_string_of_size : [< `closestCorner | `closestSide | `farthestCorner | `farthestSide ] option -> string
val maybe_string_of_position : [< `bottom | `calc of [ `add of Length.calc_value * Length.calc_value | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `mm of Js.Float.t | `mult of Length.calc_value * Length.calc_value | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of Length.calc_value * Length.calc_value | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] | `center | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `left | `max of Length.t Belt.Array.t | `min of Length.t Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `right | `top | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] option -> string
val string_of_radialGradient : ([< `circle | `ellipse ] option * [< `closestCorner | `closestSide | `farthestCorner | `farthestSide ] option * [< `bottom | `calc of [ `add of Length.calc_value * Length.calc_value | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `mm of Js.Float.t | `mult of Length.calc_value * Length.calc_value | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of Length.calc_value * Length.calc_value | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] | `center | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `left | `max of Length.t Belt.Array.t | `min of Length.t Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `right | `top | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] option * ([< `colorMix of Color.t Color.colorMix | `currentColor | `hex of string | `hsl of Color.hsl | `hsla of Color.hsla | `rgb of Color.rgb | `rgba of Color.rgba | `transparent | `var of Js.String.t | `varDefault of Js.String.t * string ] option * [< `calc of [< `add of [< `calc of 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'c * 'c | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'c * 'c | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'c * 'c | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'b & [< `add of [< `calc of 'd | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'e * 'e | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'e * 'e | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'e * 'e | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'd & [< `add of [< `calc of 'f | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'g * 'g | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'g * 'g | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'g * 'g | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'f & [< `add of [< `calc of 'h | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'i * 'i | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'i * 'i | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'i * 'i | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'h | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ch cm em ex inch mm pc percent pt px pxFloat rem vh vmax vmin vw zero ] as 'a option) Belt.Array.t) -> string
val string_of_repeatingRadialGradients : ([< `circle | `ellipse ] option * [< `closestCorner | `closestSide | `farthestCorner | `farthestSide ] option * [< `bottom | `calc of [ `add of Length.calc_value * Length.calc_value | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `mm of Js.Float.t | `mult of Length.calc_value * Length.calc_value | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of Length.calc_value * Length.calc_value | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] | `center | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `left | `max of Length.t Belt.Array.t | `min of Length.t Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `right | `top | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] option * ([< `colorMix of Color.t Color.colorMix | `currentColor | `hex of string | `hsl of Color.hsl | `hsla of Color.hsla | `rgb of Color.rgb | `rgba of Color.rgba | `transparent | `var of Js.String.t | `varDefault of Js.String.t * string ] option * [< `calc of [< `add of [< `calc of 'b | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'c * 'c | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'c * 'c | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'c * 'c | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'b & [< `add of [< `calc of 'd | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'e * 'e | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'e * 'e | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'e * 'e | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'd & [< `add of [< `calc of 'f | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'g * 'g | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'g * 'g | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'g * 'g | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'f & [< `add of [< `calc of 'h | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `num of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'i * 'i | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `mult of 'i * 'i | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `sub of 'i * 'i | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ] as 'h | `ch of Js.Float.t | `cm of Js.Float.t | `em of Js.Float.t | `ex of Js.Float.t | `inch of Js.Float.t | `max of 'a Belt.Array.t | `min of 'a Belt.Array.t | `mm of Js.Float.t | `pc of Js.Float.t | `percent of Js.Float.t | `pt of Js.Int.t | `px of Js.Int.t | `pxFloat of Js.Float.t | `rem of Js.Float.t | `vh of Js.Float.t | `vmax of Js.Float.t | `vmin of Js.Float.t | `vw of Js.Float.t | `zero ch cm em ex inch mm pc percent pt px pxFloat rem vh vmax vmin vw zero ] as 'a option) Belt.Array.t) -> string
val toString : t -> string
OCaml

Innovation. Community. Security.