Icons

One set, drawn for Moonshot: a 24 grid, a 2.5 stroke, round ends and round corners. The same paths are in Figma, here and in the Flutter files.

Closeclose
Helphelp
Questionquestion
Infoinfo
Swapswap
Backback
Chevron RightchevronRight
Chevrons RightchevronsRight
Editedit
Checkcheck
Deletedelete
Locklock
Clockclock
Chevron DownchevronDown
Chevrons Up DownchevronsUpDown
Shareshare
Sendsend
Receivereceive
Bellbell
Homehome
Plusplus
Copycopy
Collectcollect
Usersusers
Walletwallet
Sparklesparkle

How they are drawn

RuleValue
Grid24 by 24, the drawing stays 1 to 2 inside the edge
Stroke2.5, centred, round caps and round joins. No fills
Corners4 on containers (lock, wallet, card, share tray, home), 2.5 on chevrons and the check, 2 on arrow heads
Arrowsthe shaft ends where the head's curve peaks, so the tip is one round shape
Ringed iconshelp, info and clock have a 9 ring, 1 further in than the grid allows. A ring reads larger than an open glyph in the same box
Sizes24 by default, 26 in an icon button and the tab bar, 16 next to a label (the info mark after Fees). Not every icon is the same size
In a round buttonuse the plain question mark (Question), not the ringed Help: a ring inside a round button is a circle in a circle
Collectone tilted card with a star. The star is a 1.5 line, the only thinner stroke in the set
Sizes20 in rows, 22 in menus and triggers, 26 in icon buttons and tabs, 28 on the keypad and the confirm handle
Colourone colour per icon, taken from the text colour around it
Namesby what the icon means here (Back, Collect, Swap), not by what it shows

Morphing

Where one control changes meaning in place, its icon turns into the next one instead of swapping: the swipe handle's chevrons become a check, an arrow flips when a gain becomes a loss. Press the icon to step through, or pick one.

RuleValue
Structureevery morph icon is three strokes, and every stroke is four points: a start, two on the way, an end, with a corner radius at each of the two. A stroke an icon does not need folds into the centre and fades
Same shapeplus and close, the four chevrons and the four arrows share their points. They turn, the short way round
Other pairsthe points move in a straight line to their new places; the corner radius moves with them, so the round look holds in every frame
Timinga 400ms spring with a little bounce (0.2). A change that arrives mid-way carries on from where the icon is
Which iconsthe line icons: plus, close, minus, check, the chevrons, the arrows, and copy (two sheets, drawn as three strokes). Icons with a body (bell, wallet, lock) swap; they do not morph
Copy to checkthe sheet behind and the top of the front sheet fold away, and the front sheet's bottom edge becomes the check. CopyButton does this by itself
Reduced motionthe icon changes at once
Dart
// A pose: three strokes of four points on the 24 grid, two corner radii and an opacity for each, and a turn.
// The points for every icon are in src/lib/morph.ts (SHAPES and MORPH); copy them as constants.
class MorphPose {
  const MorphPose(this.pts, this.r, this.o, this.rot, [this.scale = 1]);
  final List<Offset> pts;      // 12: four for each stroke
  final List<double> r;        // 6: the radius at the second and at the third point of each stroke
  final List<double> o;        // 3: one opacity a stroke
  final double rot, scale;     // degrees clockwise about (12, 12)

  static MorphPose lerp(MorphPose a, MorphPose b, double t) => MorphPose(
    [for (var i = 0; i < 12; i++) Offset.lerp(a.pts[i], b.pts[i], t)!],
    [for (var i = 0; i < 6; i++) lerpDouble(a.r[i], b.r[i], t)!],
    [for (var i = 0; i < 3; i++) lerpDouble(a.o[i], b.o[i], t)!.clamp(0.0, 1.0)],
    lerpDouble(a.rot, b.rot, t)!,
    lerpDouble(a.scale, b.scale, t)!,
  );
}

// Animates by itself whenever pose changes, from wherever it is.
// Before handing over a new pose, move its rot to the turn nearest the current one (the short way round).
class MorphIcon extends ImplicitlyAnimatedWidget {
  const MorphIcon(this.pose, {super.key, this.size = 24, this.color})
      : super(duration: const Duration(milliseconds: 400), curve: Curves.easeOutBack);
  final MorphPose pose;
  final double size;
  final Color? color;
  @override
  AnimatedWidgetBaseState<MorphIcon> createState() => _MorphIconState();
}

class _MorphIconState extends AnimatedWidgetBaseState<MorphIcon> {
  _PoseTween? _pose;
  @override
  void forEachTween(TweenVisitor<dynamic> visitor) =>
      _pose = visitor(_pose, widget.pose, (v) => _PoseTween(begin: v as MorphPose)) as _PoseTween?;
  @override
  Widget build(BuildContext context) => CustomPaint(
    size: Size.square(widget.size),
    painter: _MorphPainter(_pose!.evaluate(animation), widget.color ?? IconTheme.of(context).color!),
  );
}

class _PoseTween extends Tween<MorphPose> {
  _PoseTween({super.begin});
  @override
  MorphPose lerp(double t) => MorphPose.lerp(begin!, end!, t);
}

// In _MorphPainter.paint: scale by size / 24, turn about the centre, then draw each stroke with its corner rounded.
canvas.scale(size.width / 24);
canvas.translate(12, 12);
canvas.rotate(pose.rot * math.pi / 180);
canvas.scale(pose.scale);
canvas.translate(-12, -12);
for (var s = 0; s < 3; s++) {
  final p = pose.pts.sublist(s * 4, s * 4 + 4);
  final path = Path()..moveTo(p[0].dx, p[0].dy);
  for (var i = 1; i < 4; i++) {
    final r = i < 3 ? pose.r[s * 2 + i - 1] : 0.0;
    final la = i < 3 ? (p[i - 1] - p[i]).distance : 0.0, lc = i < 3 ? (p[i + 1] - p[i]).distance : 0.0;
    if (r < .05 || la < .01 || lc < .01) { path.lineTo(p[i].dx, p[i].dy); continue; }
    final u = (p[i - 1] - p[i]) / la, v = (p[i + 1] - p[i]) / lc;
    final angle = math.acos((u.dx * v.dx + u.dy * v.dy).clamp(-1.0, 1.0));
    if (angle < .05 || angle > math.pi - .02) { path.lineTo(p[i].dx, p[i].dy); continue; }   // straight or folded: no corner
    // a radius never eats more than its share of an arm: up to nine tenths, less when the next point has a corner too
    double share(int j) => (j == 0 || j == 3) ? .9 : math.min(.9, r / (r + pose.r[s * 2 + j - 1]));
    final t = math.min(r / math.tan(angle / 2), math.min(la * share(i - 1), lc * share(i + 1)));
    path
      ..lineTo(p[i].dx + u.dx * t, p[i].dy + u.dy * t)
      ..arcToPoint(p[i] + v * t, radius: Radius.circular(t * math.tan(angle / 2)), clockwise: u.dx * v.dy - u.dy * v.dx < 0);
  }
  canvas.drawPath(path, Paint()
    ..style = PaintingStyle.stroke
    ..strokeWidth = 2.5 / pose.scale
    ..strokeCap = StrokeCap.round
    ..strokeJoin = StrokeJoin.round
    ..color = color.withValues(alpha: pose.o[s]));
}

In Flutter

Copy flutter/assets/icons and moonshot_icons.dart into the app. The widget tints the file with the IconTheme colour, so an icon inside a button or a tab follows it like text does.

Dart
// pubspec.yaml: flutter_svg under dependencies, and "- assets/icons/" under flutter: assets:
const MoonshotIcon(MoonshotIcons.collect, size: 26)

// alone, it needs a name; next to a label it stays silent
MoonshotIcon(MoonshotIcons.close, size: 26, semanticLabel: 'Close')

// its own colour
MoonshotIcon(MoonshotIcons.check, size: 22, color: c.textPrimary)

A new icon is drawn in scripts/build-icons.mjs; pnpm icons writes the set for this site, the SVG files and the Dart names. Add the same paths to Figma page 13.