Skip to main content

Icons

Nine starter icons for contact details and what they belong to - phone, mobile, email, web, location, person, company, document and vehicle - drawn as one outlined set that one style recolours.

  • Nine outlined icons. Phone, mobile, email, web, location, person, building, document and truck, each drawn on a 24-unit square in lines with round caps and joins.
  • Placed in the flow. A use places one, most often in a table cell beside the text it marks.
  • One set, two styles. Every icon draws in iconInk (a 2-unit slate stroke, no fill) and takes its width from iconSize (11 by default), so declaring those two restyles the whole set.
  • Named for a screen reader. Each svg carries a title, such as "Phone" or "Website", that a screen reader announces.
ComponentDrawsRead as
icon-phonea handsetPhone
icon-mobilea mobile phoneMobile phone
icon-emailan envelopeEmail
icon-weba globeWebsite
icon-locationa map pinAddress
icon-persona head and shouldersPerson
icon-buildingan office buildingCompany
icon-documenta page with a folded cornerDocument
icon-trucka delivery truckVehicle

Place one where it belongs, most often in a table cell beside the text it marks:

{ "table": { "widths": [1, 12], "rows": [ [ { "use": { "name": "icon-phone" } }, { "p": "+237 6 55 01 20 40" } ] ] } }

Every icon draws its lines in a style named iconInk and takes its width from one named iconSize, so declaring those two restyles the whole set at once: the Engagement Letter draws them in purple, the Reference Letter in blue, the consignment notes in slate at 9 points. Each is an svg with its name as its title, which a screen reader announces. See Customizing a component.

Features used: SVG

The component on a sheet of its ownTry in Playground →