Tailwind CSS

Every icon is drawn in currentColor, so Tailwind styles it with the classes you already use for text.

Size and color

size-* sets width and height, text-* sets the color. Classes win over the size prop.

Nav.tsx
import { Home, Search } from "@neaticons/react"

<Home className="size-5 text-zinc-900" />
<Search className="size-4 text-zinc-500" />

Keep to 16, 20, 24 or 32px (size-4, size-5, size-6, size-8) so the lines land on whole pixels. Line weight is the strokeWidth prop, not a class: <Home strokeWidth={2} />.

Hover, dark mode, active

Put the color on the parent and the icon follows it, together with the label:

Nav.tsx
<a className="flex items-center gap-2 text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-white">
  <Settings className="size-5" />
  Settings
</a>

For an active tab, swap Line for Solid of the same icon. Both are drawn to the same box, so nothing moves:

TabBar.tsx
import { Home } from "@neaticons/react"
import { Home as HomeSolid } from "@neaticons/react/rounded-solid"

{active ? <HomeSolid className="size-6 text-blue-600" /> : <Home className="size-6 text-zinc-500" />}

Right to left

Flip arrows, chevrons and back buttons in Arabic and Hebrew layouts. Leave every other icon as it is.

Back.tsx
<ArrowLeft className="size-5 rtl:-scale-x-100" />

Without React

In plain HTML, use the icon file as a mask and paint it with bg-current. It takes any text-* color like a React icon:

index.html
<span
  class="inline-block size-6 bg-current text-blue-600 mask-[url(https://neaticons.com/icons/svg/rounded-stroke/home.svg)] mask-contain mask-center mask-no-repeat"
  aria-hidden="true"
></span>

Hosted URLs exist for the free icons. For the rest, add the files with the CLI and point the URL at your own copy. More ways: HTML and CDN.