Size and colour
Any size, your text colour, and dark mode.
Size
Icons are drawn on a 24-unit grid and stay sharp at any size. Set size, or size them with CSS, which wins over the prop. The outline stroke reads best from 16 to 48 pixels.
<Heart size={16} />
<Heart size="1.25em" /> {/* grows with the text around it */}
<Heart className="size-8" />Colour
outline
duotone
glass
On a dark background: outline, duotone and glass.
Outline, solid and duotone icons use currentColor. Set the text colour and the icon follows:
.nav a { color: #6b7280; }
.nav a:hover { color: #111827; } /* the icon changes with the link */Duotone
Duotone draws the outline at full strength over a 20% fill of the same colour, so one colour gives you both tones.
Glass
Glass has its own frosted materials: a dark piece behind a pale pane with a lit edge. It looks best at 24px and up, on light or dark backgrounds, and it does not take your text colour.
Dark mode
Because icons follow your text colour, dark mode works on its own when your text colour changes:
@media (prefers-color-scheme: dark) {
body { color: #f5f5f5; background: #0a0a0a; }
}