package tw

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Overflow.HandlerSource

Sourcetype t

The utility type

Sourcetype Utility.base +=
  1. | Self of t
    (*

    Extension of the base utility type

    *)
Sourceval name : string

Name of this utility handler.

Sourceval to_style : Scheme.t -> t -> Style.t

to_style theme u converts utility u to a style, reading any theme values it needs from theme.

Sourceval priority : t -> int

priority u is the primary ordering key for utility u. Usually a module constant (let priority _ = n); modules whose variants span several canonical families (e.g. layout) return per-variant values.

Sourceval suborder : t -> int

suborder u is the suborder within the same priority.

Sourceval of_class : Scheme.t -> string -> (t, [ `Msg of string ]) result

of_class theme name parses class name into a utility, consulting theme for custom token validation (e.g. named colors and opacities).

Sourceval to_class : t -> string

to_class u is the CSS class name for utility u.