Module Cascade.Variables_intfSource

CSS variables interface types

Custom Property Syntax

Sourcetype 'a syntax =
  1. | Length : Values.length syntax
  2. | Color : Values.color syntax
  3. | Number : float syntax
  4. | Integer : int syntax
  5. | Percentage : Values.percentage syntax
  6. | Length_percentage : Values.length_percentage syntax
  7. | Angle : Values.angle syntax
  8. | Time : Values.duration syntax
  9. | Resolution : string syntax
  10. | Custom_ident : string syntax
  11. | String : string syntax
  12. | Url : string syntax
  13. | Image : Properties.background_image syntax
  14. | Transform_function : string syntax
  15. | Transform_list : string syntax
  16. | Universal : string syntax
  17. | Or : 'a syntax * 'b syntax -> ('a, 'b) Either.t syntax
  18. | Plus : 'a syntax -> 'a list syntax
  19. | Hash : 'a syntax -> 'a list syntax
  20. | Ident_keyword : string -> unit syntax
    (*

    Literal ident keyword in a @property syntax disjunction (e.g. auto in <length> | auto). The keyword has no value-level data; matching the spelling is enough.

    *)

Type-safe CSS @property syntax descriptors per CSS Properties and Values API 1 sec. 2 (https://drafts.css-houdini.org/css-properties-values-api-1/). The spec admits only the named <...> type references below, the universal *, bare <ident> keywords, and the +/# multipliers; alternatives are joined by |.

Sourcetype any_syntax =
  1. | Syntax : 'a syntax -> any_syntax

Existential wrapper for syntax of any type

Types

Sourcetype nonrec custom_value = Values.custom_value

CSS custom-property token stream.

Sourcetype any_var =
  1. | V : 'a Values.var -> any_var
    (*

    Existential wrapper for CSS variables of any type

    *)