Skip to contentGet startedTokensComponents@hackclub/theme@hackclub/tokens@hackclub/css-base@hackclub/components@hackclub/meta GitHub
<hc-icon glyph="github"></hc-icon>
<hc-icon glyph="slack" style="color: var(--hc-purple)"></hc-icon>
<hc-icon glyph="code" style="color: var(--hc-blue)"></hc-icon>
<hc-icon glyph="rep" style="color: var(--hc-red)" size="48"></hc-icon>
<hc-icon glyph="flag" style="color: var(--hc-orange)" size="48"></hc-icon>
<hc-icon glyph="emoji" size="64" label="Smiley"></hc-icon>
Call registerGlyphs({ name: "<path …/>" }) to add your own glyphs, and set HcIcon.cdn to load unregistered glyphs from somewhere else.

API

Attributes

NameTypeDefaultDescription
glyphGlyphName"like"Icon name from icons.hackclub.com
sizenumber32Width and height in px
labelstringAccessible name; omit for decorative icons

CSS parts

NameDescription
svgThe <svg> (or mask <span>)
Next: Navigation

The design system behind hackclub.com.
Made with <3 by Lamparter.

Get startedTokensComponents@hackclub/theme@hackclub/tokens@hackclub/css-base@hackclub/components@hackclub/metaWebsiteBrand guideIconshackclub/site