React icon library with 800+ duotone icons and 250+ flag icons. Fully typed, RTL-aware, and optimized SVGs.
This library was built to serve as the icon foundation for @andrsrxn/ui, an upcoming open-source, opinionated Design System and Component Library aimed at enterprise-grade products.
While @andrsrxn/icons is tightly coupled to that vision, it is intentionally published as a standalone package. This keeps it lightweight, independently versioned, and freely usable by anyone (regardless of whether they adopt @andrsrxn/ui). Icon documentation will be available at ui.andrsrxn.com/icons once the UI package is released.
The short answer: there are no free duotone icon sets with the right style.
Most libraries offer only outline or solid variants. Phosphor Icons does include free duotone variants, but its implementation applies a duotone layer to every icon unconditionally, even purely geometric ones like arrows or plus signs that have no meaningful background shape. This results in unnecessary visual noise and icons that feel semantically inconsistent.
@andrsrxn/icons takes a more deliberate approach:
- Duotone by default: Icons that have a meaningful path/fill distinction are always duotone.
- Outline when appropriate: Simple geometric icons such as
+,/, or×do not receive a decorative background layer that would only reduce clarity. - Filled on demand: A
filledvariant is included only for icons that have a meaningful active or selected state, such aslike,bookmark, orstar, not as a blanket alternative style.
You only need to be using react and react-dom version 19.
Warning: This is an ESM-only package, make sure your project is using Node
20.16.0,22.19.0,24.0.0or higher, and has the"type": "module"field in yourpackage.json.
pnpm add @andrsrxn/iconsThen add the minimal CSS to the root of your project
import '@andrsrxn/icons/styles.css'- UI: 800+ functional icons for apps, each with its own preview image. (aspect ratio 1:1)
- Flags: 250+ simple and minimal country flags, named with ISO 3166-1 alpha-2 code (
IconFlagUS,IconFlagMX), the exceptions areIconFlagLGTBand continent flags, which have aCprefix (IconFlagCAFfor Africa,IconFlagCNAfor North America, and so on); treated as image assets with country code astitleincluded. (aspect ratio 3:2)
Still tree-shakable, it will only import the icons you use.
import { IconRocket } from '@andrsrxn/icons'
import { IconFlagUS } from '@andrsrxn/icons/flags'
export function App() {
return (
<div className='flex h-screen w-full items-center justify-center'>
<IconRocket />
<IconFlagUS />
</div>
)
}Explicitly importing icons is also supported, giving you more granular control over imports.
import { IconRocket } from '@andrsrxn/icons/rocket'
import { IconFlagUS } from '@andrsrxn/icons/flags/us'
export function App() {
return (
<div className='flex h-screen w-full items-center justify-center'>
<IconRocket />
<IconFlagUS />
</div>
)
}The following UI icons automatically detect the dir attribute on the html or the closest parent element and add the transform: scaleX(-1) CSS property to the SVG element:
- arrow-end
- arrow-start
- arrow-up-end
- arrow-up-start
- chevron-end
- chevron-start
- chevron-end-double
- chevron-start-double
All of the categories have an Icon prefix to differentiate them from other components and be easily importable.
All of the icons have a specific className to style them globally or individualy
- UI icons:
ui-icon - Flag icons:
flag-icon
Or you can use the custom props as the next examples:
Note: If you want to keep proportions on Flag icons, only set the
width.
- Size prop
<IconRocket size={48} />
// Keep 3:2 proportions
<IconFlagUS width={48} />
// Square proportions
<IconFlagUS size={48} />- Classname
<IconRocket className='size-6' />
// Keep 3:2 proportions
<IconFlagUS className='w-6' />
// Square proportions
<IconFlagUS className='size-6' />
// To fill the entire square
<IconFlagUS className='size-6 object-cover' />By default, the UI icons have currentColor set as fill and stroke value.
- Color prop
<IconRocket color='gray' />- Classname
<IconRocket className='text-blue-500 dark:text-red-500' />
<IconFlagUS className='text-blue-500 dark:text-red-500' />It is not intended to change the stroke width of the icons (default 1.5). It could lead to inconsistent results in some cases.
We expose scoped types for each category:
import type { Icon, IconProps } from '@andrsrxn/icons/types'
import type { FlagIcon, FlagIconProps } from '@andrsrxn/icons/flags/types'- Icon, FlagIcon: The SVG element
- IconProps, FlagIconProps: Icon component props from SVG and custom props
Note: Named this way to avoid conficts with some Icon components names, such as
IconFlagfrom UI icons.
We currently do not accept contributions for new icons, but we appreciate suggestions and icon requests through GitHub issues.
If this project helps you, you can support its development through:
- Credit or debit card: https://app.recurrente.com/s/andrsrxn/pagar
- PayPal: https://paypal.me/andrsrxn
All of the icons were made by scratch on Figma but inspired on the following icon libraries:
The flag icons are adapted from FlagKit by Bowtie, used under the MIT License (Copyright (c) 2016 Bowtie AB). Only the 3:2 rectangular flag versions were used as source material and converted into tsx components.
See THIRD-PARTY-LICENSES.md for the full license text.
- Add more specific UI icons
- Keep optimizing the icon library size
- Consider adapting the icons to other frameworks (Svelte, Vue, Angular, etc.)
All icons are free to use, personal or commercial use allowed. MIT License - Copyright 2026 andrsrxn.
