Icon Use Case: Custom SVG
Custom SVG can be used instead to render an icon that is not available in the design system.
Important Notes:When creating a custom SVG, start with a 32px by 32px artboard in the design tool (Adobe Illustrator, Sketch, etc.).Make sure all layers have been converted to objects, meaning there is no stroke, only shapes with color fill.Combine all objects if they visually connect (i.e. create one big shape).Set the object’s fill color to #151619.Set the widest side to 32px and center the icon within the artboard.Save the SVG and then use imgoptim or another tool to minify it.Lastly, add the element class class="e-bolt-icon" and relevant modifier classes, and add the attribute aria-hidden="true" to the <svg> HTML element.
Demo