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.
| Version | 0.1.0 |
|---|---|
| File | /components/lat-icon/0.1.0/lat-icon.js (65.5 KB gzipped) |
| SHA-256 | 67a85e08acb5bed3c712690b2eae99f4687376548dc0e5a0b056009436b5be3c |
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.
add-filterafter-videoaialert-circlealert-circle-filledalert-trianglearrow-downarrow-leftarrow-rightarrow-to-leftarrow-to-rightarrow-top-rightarrow-upback-1-framebefore-videoblockedbox-archivecalendarcaret-downcaret-rightcaret-upcarousel-horizontalcasestudychannelschannels-filledcheckcheck-circlecheckboxcheckbox-checkedchevron-downchevron-leftchevron-rightchevron-upchevrons-leftchevrons-rightcircleclockclosecloudcloud-savedcodecollectioncommentscomments-filledcomparecopycustom-field-setupdownloadeditemoji-filledexternal-linkeyeeye-offfeature/commentsfeature/comments-overriddenfeature/emojifeature/emoji-overriddenfeature/onetouchfeature/onetouch-overriddenfield-typefieldsfilefilterfilter-altfolderfolder-addfolder-filledfolder-openedforward-1-framegiftglobegobackward-1sgoforward-1sgooglegridgroupguestheartheart-filledhelphomeinfolightbulblightbulb-filledline-chartlinklistloadermatrix-questionmaximizemenuminimizeminusmore-horizontalmore-verticalmovenav-fieldsnav-fields-fillednav-settingsnav-settings-filledno-connectionnot-savingone-touchone-touch-filledonlinepausepause-filledpinpin-filledplayplay-filledplayback-speed-0-5xplayback-speed-1-5xplayback-speed-1xplayback-speed-2xplusquestionsquestions-filledradio-offradio-onreactionreaction-filledrearrangerefreshresetrocketrotateroundness-fullroundness-halfroundness-nonesad-facesavesearchsendsentimentsettingssettings-sliderssetupshareshufflesidebar-dock-leftsidebar-dock-rightskip-nextskip-previousslashslidersmilesparkstarstar-filledstatussubdirectorytest-tubetextthermometer-offthermometer-ontrash-binundouploaduseruser-plusvideovideo-filledvideo-playvideo-play-filledview-dockedview-floatingview-fullviewersviewers-filledvolume-0volume-1volume-3volume-mutewrench
Attributes
| Attribute | Values | Notes |
|---|---|---|
name | An icon name above | As in the design system's icons.json. |
size | 24 (default), 20, 16 | Components use 24; buttons and menu items 20; small icon buttons 16. |
label | text | Gives the icon a name for screen readers. Leave it out when text beside the icon says the same thing. |