# `MishkaCmsCore.Activity.Calculations.Tone`
[🔗](https://github.com/mishka-group/mishka_cms_core/blob/v0.0.1/lib/mishka_cms_core/activity/__calculations/tone.ex#L5)

Ash calculation that exposes `:tone` (atom or `nil`) on a resource carrying an action name — the
content-change colour the activity timeline tints a create/update/destroy row by, parallel to
`MishkaCmsCore.Activity.Calculations.Severity`. Delegates to
`MishkaCmsCore.Activity.Helpers.tone_for/1`, so a create reads `:created`, an update `:updated`, a
destroy `:destroyed`, and anything else `nil` — a row the timeline then falls back to colouring by
`:severity`.

Wire it beside the `:severity` calculation, `:field` naming the attribute holding the action:

    calculate :tone, :atom,
              {MishkaCmsCore.Activity.Calculations.Tone, field: :action}

# `describe`

# `has_calculate?`

# `has_expression?`

# `load`

# `strict_loads?`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
