Icons provide additional context to elements on the page.
Overview
Icon displays from a set of simple, square icons. Nebula includes a limited set which can be edited and expanded.
Edit live code
<>
<Iconname="caret-down"/>
<Iconname="caret-right"/>
<Iconname="chevron-left"/>
<Iconname="chevron-double-left"/>
<Iconname="chevron-right"/>
<Iconname="chevron-double-right"/>
<Iconname="chevron-up"/>
<Iconname="chevron-down"/>
<Iconname="cross"/>
<Iconname="check"/>
<Iconname="euro"/>
<Iconname="pound"/>
<Iconname="dollar"/>
<Iconname="new-window"/>
<Iconname="gas"/>
<Iconname="electricity"/>
<Iconname="link"/>
<Iconname="download"/>
<Iconname="plus"/>
<Iconname="minus"/>
<Iconname="calendar"/>
<Iconname="anytime"/>
<Iconname="evening-and-weekend"/>
<Iconname="heating"/>
<Iconname="interval"/>
<Iconname="smart"/>
<Iconname="shoulder"/>
<Iconname="solar"/>
<Iconname="peak"/>
<Iconname="offpeak"/>
<Iconname="info"/>
<Iconname="success"/>
<Iconname="error"/>
<Iconname="warning"/>
</>
Register icons
There are a set of icons which correspond to the timing categories of registers supported by Kaluza, which are part of the default set.
Note that 'interval' and 'smart' are the same icon, since smart meters in EU are known as 'interval' meters in the AP region.
Edit live code
<>
<Iconname="anytime"/>
<Iconname="peak"/>
<Iconname="offpeak"/>
<Iconname="evening-and-weekend"/>
<Iconname="solar"/>
<Iconname="shoulder"/>
<Iconname="interval"/>
<Iconname="smart"/>
<Iconname="heating"/>
</>
Usage
Icons should be paired with text, do not assume that the icon alone will be understood by everyone. On web it is recommended to use ems for icon sizes, so they should match the size of the text automatically (and responsively!).
Edit live code
<Heading3><Iconname="euro"/> Example</Heading3>
Accessibility
Icons cannot be “read” by screen readers so they should be paired them with text and considered as purely decorative.
Always include text with icons. Use VisuallyHidden if necessary.
Variations
Icons will generally inherit the colour and size of their parent, but these can also be set manually.
Custom colour
Edit live code
<Iconname="euro"color="#FF0000"/>
Custom size
Edit live code
<Iconname="euro"size={48}/>
Customising icons
All custom icons should be on a square canvas and use "currentColor" as the default fill color. Props should be spread on the "svg" element.
You can override existing icons or add new icons by adding the IconProvider around your app: