Latitude ComponentsLibrary 0.1.0

Icon

Lumiere's own icons, drawn from the design system's files and inlined so each takes the color of the text around it. Icons sit a step below their text (UX-41): fg-secondary at rest, fg-default when selected. Never redraw an icon; ask for a new one if none fits. Rules: UX Elements & Rules → Iconography.

Add it to a page

Load the pinned file once in your Latitude Site or web page, then use the tag.

<script type="module" src="https://web-components.sites.latd.com/components/lat-icon/0.1.0/lat-icon.js"></script>

The file is an ES module. It loads Lit, the design-system tokens and the Roobert stylesheet from this catalog once per page, however many components you use.

Version0.1.0
File/components/lat-icon/0.1.0/lat-icon.js (65.5 KB gzipped)
SHA-25667a85e08acb5bed3c712690b2eae99f4687376548dc0e5a0b056009436b5be3c

Permutations

Sizes

Dark
Light
<lat-icon name="ai" size="16"></lat-icon>
<lat-icon name="ai" size="20"></lat-icon>
<lat-icon name="ai"></lat-icon>

Taking the text color

Dark
128 comments Selected
Light
128 comments Selected
<span style="color: var(--lat-fg-secondary)"><lat-icon name="comments"></lat-icon> 128 comments</span>
<span style="color: var(--lat-fg-default)"><lat-icon name="comments-filled"></lat-icon> Selected</span>

With a label, when the icon stands alone and means something

Dark
Light
<lat-icon name="alert-circle" label="Needs attention"></lat-icon>

All 175 Lumiere icons

Feather, the fallback set, isn't in this file yet.

Attributes

AttributeValuesNotes
nameAn icon name aboveAs in the design system's icons.json.
size24 (default), 20, 16Components use 24; buttons and menu items 20; small icon buttons 16.
labeltextGives the icon a name for screen readers. Leave it out when text beside the icon says the same thing.