Usage
Styling and changing the Icon Appearance
Here are some possibilities and tips for customizing icons. But there are so many options that they wouldn't all fit here.
If it's available in Tailwind, you can try it with rocketicons
Loading...
Defining background
Use the Tailwind utilities to set the icons background.
<div><FaItchIoclassName="bg-white ..." /><FaItchIoclassName="bg-red-200 ..." /><FaItchIoclassName="bg-orange-200 ..." /><FaItchIoclassName="bg-lime-200 ..." /></div>
Stroke Width
The outlined
icons can have their line width customized using the
stroke width Tailwind's utilities.
<div><FaItchIoclassName="stroke-[0.2] ..." /><FaItchIoclassName="stroke-[0.5] ..." /><FaItchIoclassName="stroke-1 ..." /><FaItchIoclassName="stroke-[1.5] ..." /><FaItchIoclassName="stroke-2 ..." /><FaItchIoclassName="stroke-[3px] ..." /></div>
Define border
Every border utility should work with no problems on rocketicons.
Border Radius You can define the border radius.
<div><FaItchIoclassName="border border-slate-600 ..." /><FaItchIoclassName="rounded border border-slate-600 ..." /><FaItchIoclassName="rounded-md border border-slate-600 ..." /><FaItchIoclassName="rounded-lg border border-slate-600 ..." /></div>
Border
Border width
You can define the border width.
<div><FaItchIoclassName="border-2 border-slate-600 ..." /><FaItchIoclassName="border-4 border-slate-600 ..." /><FaItchIoclassName="border-8 border-slate-600 ..." /></div>
Borders
Border Style
You can define the border style.
<div><FaItchIoclassName="border-solid border-slate-600 ..." /><FaItchIoclassName="border-dashed border-slate-600 ..." /><FaItchIoclassName="border-dotted border-slate-600 ..." /><FaItchIoclassName="border-double border-slate-600 ..." /></div>
Outline
Define outline. Take a look on every outline available option.
<div><FaItchIoclassName="outline outline-offset-2 outline-1 ..." /><FaItchIoclassName="outline outline-offset-2 outline-2 ..." /><FaItchIoclassName="outline outline-offset-2 outline-4 ..." /></div>
Ring
Define ring. Take a look on every ring.
<div><FaItchIoclassName="ring-offset-2 ring ..." /><FaItchIoclassName="ring-offset-2 ring-2 ..." /><FaItchIoclassName="ring-offset-2 ring-4 ..." /></div>
Effects
Effects like shadow, opacity e mix bend can be applied.
<div><FaItchIoclassName="shadow-md ..." /><FaItchIoclassName="shadow-lg ..." /><FaItchIoclassName="shadow-xl ..." /><FaItchIoclassName="shadow-2xl ..." /></div>
Animations
Animations and transitions can be used with icons, but this functionality is only available for React. Custom animations can be created, learn how on Tailwind documentation.
React Native has some limited features. See the official documentation of NativeWind for more information.
<div><FaItchIoclassName="animate-bounce ..." /><FaItchIoclassName="animate-ping ..." /><FaItchIoclassName="animate-pulse ..." /><FaItchIoclassName="animate-spin ..." /></div>
Usage
Styling and changing the Icon Appearance
Here are some possibilities and tips for customizing icons. But there are so many options that they wouldn't all fit here.
If it's available in Tailwind, you can try it with rocketicons
<div><FaItchIoclassName="scale-50 ..." /><FaItchIoclassName="rotate-45 ..." /><FaItchIoclassName="skew-y-12 ..." /></div>
Cursor
Use cursor on icons.
Hover over the icon and see changes
<div><FaItchIoclassName="cursor-pointer ..." /><FaItchIoclassName="cursor-move ..." /><FaItchIoclassName="cursor-wait ..." /><FaItchIoclassName="cursor-grab ..." /></div>
Filters
Filters and icons.
NativeWind doesn't support filters, therefore this functionality isn't available for React Native."
<div><FaItchIoclassName="blur ..." /><FaItchIoclassName="brightness-50 ..." /><FaItchIoclassName="drop-shadow-lg ..." /><FaItchIoclassName="saturate-200 ..." /></div>