# `LedgerUI.Components.Logo`
[🔗](https://github.com/devaction-labs/ledger_ui/blob/v0.2.0/lib/ledger_ui/components/logo.ex#L1)

The Ledger UI mark. By default the chart glyph of the design canvas (an axis with a rising
line) on a rounded tile: `tone="accent"` is a teal tile, `tone="mono"` the `inverse` tile.
`mark="hexagon"` draws the README mark instead: a drop inside a hexagon (the ring follows the
page ink, the drop takes the theme accent, or silver with `tone="mono"`).

    <.logo />
    <.logo size={28} wordmark />
    <.logo tone="mono" size={56} />
    <.logo mark="hexagon" id="hero-logo" size={96} />

The tile is styled by `.lu-logomark` in `ledger_ui.css` (`--s` is the side). With `mark="hexagon"`
and an `id` the drop gets a soft gradient named after it (`<id>-drop`); without one it is flat,
so the markup stays deterministic and logos never borrow each other's gradient.

# `logo`

## Attributes

* `id` (`:string`) - Names the gradient of the drop; without one the drop is flat. Defaults to `nil`.
* `mark` (`:string`) - Defaults to `"chart"`. Must be one of `"chart"`, or `"hexagon"`.
* `size` (`:integer`) - The side of the mark, in px. Defaults to `32`.
* `tone` (`:string`) - Defaults to `"accent"`. Must be one of `"accent"`, or `"mono"`.
* `wordmark` (`:boolean`) - Adds "Ledger UI" after the mark. Defaults to `false`.
* `word_size` (`:integer`) - Size of the word in px (default 0.6 x size, at most 30). Defaults to `nil`.
* `name` (`:string`) - Your brand's name, written after the mark (it implies `wordmark`) and used as its accessible name. Defaults to `nil`.
* `context` (`:string`) - A muted line under the `name`: the workspace or the product line. Defaults to `nil`.
* `label` (`:string`) - The accessible name (the `name`, or "Ledger UI"). Defaults to `nil`.
* `class` (`:any`) - Defaults to `nil`.
* Global attributes are accepted.

---

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