# Icon

An icon is an inline svg consisting of a single color.

# Usage

Use the icon prop to choose the icon you want. This will correspond to an svg with the same name.

See the full list of icons on Github (opens new window).

# Naming Convention

Icons should follow a naming convention that is clear to all and helps us identify them. Semantic naming is problematic at scale, because icons with a semantic name often end up getting used outside of their originally intended purpose. For that reason, we have adopted this convention:

{ cricle / round / triangle }-{ descriptive-name }-{ modifier }-{size}
  • Icons should be named based on what they look like
  • If an icon is surrounded by a circular line, prefix it with circle-
  • If an icon is contained in a solid circle, prefix it with round-
  • If an icon is contained in a triangle, prefix it with triangle-
  • If an icon comes in multiple size it, add a size suffix of -sm, -md or -lg
  • If an icon has modifiers, add a descriptive suffic

# 🚫 Don't

email
big-email
send
info
warning
back-arrow

# ✅ Do

envelope
envelope-lg
paper-airplane
circle-i
triangle-exclamation
arrow-back
Last Updated: 3/28/2025, 4:22:32 PM