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><FaCartPlusclassName="bg-white ..." /><FaCartPlusclassName="bg-red-200 ..." /><FaCartPlusclassName="bg-orange-200 ..." /><FaCartPlusclassName="bg-lime-200 ..." /></div>
Stroke Width
The outlined
icons can have their line width customized using the
stroke width Tailwind's utilities.
<div><FaCartPlusclassName="stroke-[0.2] ..." /><FaCartPlusclassName="stroke-[0.5] ..." /><FaCartPlusclassName="stroke-1 ..." /><FaCartPlusclassName="stroke-[1.5] ..." /><FaCartPlusclassName="stroke-2 ..." /><FaCartPlusclassName="stroke-[3px] ..." /></div>
Define border
Every border utility should work with no problems on rocketicons.
Border Radius You can define the border radius.
<div><FaCartPlusclassName="border border-slate-600 ..." /><FaCartPlusclassName="rounded border border-slate-600 ..." /><FaCartPlusclassName="rounded-md border border-slate-600 ..." /><FaCartPlusclassName="rounded-lg border border-slate-600 ..." /></div>
Border
Border width
You can define the border width.
<div><FaCartPlusclassName="border-2 border-slate-600 ..." /><FaCartPlusclassName="border-4 border-slate-600 ..." /><FaCartPlusclassName="border-8 border-slate-600 ..." /></div>
Borders
Border Style
You can define the border style.
<div><FaCartPlusclassName="border-solid border-slate-600 ..." /><FaCartPlusclassName="border-dashed border-slate-600 ..." /><FaCartPlusclassName="border-dotted border-slate-600 ..." /><FaCartPlusclassName="border-double border-slate-600 ..." /></div>
Outline
Define outline. Take a look on every outline available option.
<div><FaCartPlusclassName="outline outline-offset-2 outline-1 ..." /><FaCartPlusclassName="outline outline-offset-2 outline-2 ..." /><FaCartPlusclassName="outline outline-offset-2 outline-4 ..." /></div>
Ring
Define ring. Take a look on every ring.
<div><FaCartPlusclassName="ring-offset-2 ring ..." /><FaCartPlusclassName="ring-offset-2 ring-2 ..." /><FaCartPlusclassName="ring-offset-2 ring-4 ..." /></div>
Effects
Effects like shadow, opacity e mix bend can be applied.
<div><FaCartPlusclassName="shadow-md ..." /><FaCartPlusclassName="shadow-lg ..." /><FaCartPlusclassName="shadow-xl ..." /><FaCartPlusclassName="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><FaCartPlusclassName="animate-bounce ..." /><FaCartPlusclassName="animate-ping ..." /><FaCartPlusclassName="animate-pulse ..." /><FaCartPlusclassName="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><FaCartPlusclassName="scale-50 ..." /><FaCartPlusclassName="rotate-45 ..." /><FaCartPlusclassName="skew-y-12 ..." /></div>
Cursor
Use cursor on icons.
Hover over the icon and see changes
<div><FaCartPlusclassName="cursor-pointer ..." /><FaCartPlusclassName="cursor-move ..." /><FaCartPlusclassName="cursor-wait ..." /><FaCartPlusclassName="cursor-grab ..." /></div>
Filters
Filters and icons.
NativeWind doesn't support filters, therefore this functionality isn't available for React Native."
<div><FaCartPlusclassName="blur ..." /><FaCartPlusclassName="brightness-50 ..." /><FaCartPlusclassName="drop-shadow-lg ..." /><FaCartPlusclassName="saturate-200 ..." /></div>