The colours of the charts that AshWorkflow.Charts.Dot draws, for each
theme. A backend that draws in colour reads them here, so every such chart
has the same look.
The palette has one class for each step kind, terminal outcome and edge kind.
:light is for a light page. :dark is for a dark page, with deep fills,
light strokes and light text.
Summary
Functions
The background colour of a chart, for a theme.
The colours of each class, for a theme: a keyword list from the class name to its colours. The classes are in this order
The colour of the edge label text, for a theme.
The class of a terminal step, from the kinds of the edges that reach it:
:failed for on_error only, :expired for timeouts only, :done for
transitions and on_success only, and :end for a mix or for no edge.
Types
Functions
The background colour of a chart, for a theme.
The colours of each class, for a theme: a keyword list from the class name to its colours. The classes are in this order:
:automatic,:manualand:wait_state, for the step kinds.:done,:failed,:expiredand:end, for terminal steps.:on_success,:on_error,:timeoutand:undo, for edges.
A step class has :fill and :stroke, and an edge class has :stroke.
In the dark theme a step class also has :text, the colour of its label.
The colour of the edge label text, for a theme.
@spec terminal_class(atom(), AshWorkflow.Charts.Graph.t()) :: :done | :failed | :expired | :end
The class of a terminal step, from the kinds of the edges that reach it:
:failed for on_error only, :expired for timeouts only, :done for
transitions and on_success only, and :end for a mix or for no edge.
Undo edges leave a step and do not count. A step that a person chooses is
:done, whatever its name.