• Docs
  • Getting Started
  • Icons
Switch theme
GitHub
  • Getting Started
    • Installation
    • Configuration
    • Customization
    • Contributing
  • Using The Icons
    • Adding Icons
    • Colors
    • Dark Mode
    • Responsive Design
    • Sizing Icons
    • Hover, Focus and Other States
    • Styling
  • Icons
    • rocketicons
    • Ant Design Icons
    • BoxIcons
    • Bootstrap Icons
    • css.gg
    • Circum Icons
    • Devicons
    • Font Awesome 5
    • Font Awesome 6
    • Flat Color Icons
    • Feather
    • Game Icons
    • Github Octicons icons
    • Grommet-Icons
    • Heroicons
    • Heroicons 2
    • IcoMoon Free
    • Ionicons 4
    • Ionicons 5
    • Icons8 Line Awesome
    • Lucide
    • Material Design icons
    • Phosphor Icons
    • Remix Icon
    • Radix Icons
    • Simple Icons
    • Simple Line Icons
    • Tabler Icons
    • Themify Icons
    • Typicons
    • VS Code Icons
    • Weather Icons
  • Roadmap

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>
<RcRocketIcon
className="bg-white ..."
/>
<RcRocketIcon
className="bg-red-200 ..."
/>
<RcRocketIcon
className="bg-orange-200 ..."
/>
<RcRocketIcon
className="bg-lime-200 ..."
/>
</div>

Define border

Every border utility should work with no problems on rocketicons.


Border Radius You can define the border radius.

<div>
<RcRocketIcon
className="border border-slate-600 ..."
/>
<RcRocketIcon
className="rounded border border-slate-600 ..."
/>
<RcRocketIcon
className="rounded-md border border-slate-600 ..."
/>
<RcRocketIcon
className="rounded-lg border border-slate-600 ..."
/>
</div>

Border

Border width

You can define the border width.

<div>
<RcRocketIcon
className="border-2 border-slate-600 ..."
/>
<RcRocketIcon
className="border-4 border-slate-600 ..."
/>
<RcRocketIcon
className="border-8 border-slate-600 ..."
/>
</div>

Borders

Border Style

You can define the border style.

<div>
<RcRocketIcon
className="border-solid border-slate-600 ..."
/>
<RcRocketIcon
className="border-dashed border-slate-600 ..."
/>
<RcRocketIcon
className="border-dotted border-slate-600 ..."
/>
<RcRocketIcon
className="border-double border-slate-600 ..."
/>
</div>

Outline

Define outline. Take a look on every outline available option.

<div>
<RcRocketIcon
className="outline outline-offset-2 outline-1 ..."
/>
<RcRocketIcon
className="outline outline-offset-2 outline-2 ..."
/>
<RcRocketIcon
className="outline outline-offset-2 outline-4 ..."
/>
</div>

Ring

Define ring. Take a look on every ring.

<div>
<RcRocketIcon
className="ring-offset-2 ring ..."
/>
<RcRocketIcon
className="ring-offset-2 ring-2 ..."
/>
<RcRocketIcon
className="ring-offset-2 ring-4 ..."
/>
</div>

Effects

Effects like shadow, opacity e mix bend can be applied.

<div>
<RcRocketIcon
className="shadow-md ..."
/>
<RcRocketIcon
className="shadow-lg ..."
/>
<RcRocketIcon
className="shadow-xl ..."
/>
<RcRocketIcon
className="shadow-2xl ..."
/>
</div>

Animations

Animations and transitions can be used with icons, but this functionality is only available for React.

React Native has some limited features. See the official documentation of NativeWind for more information.

<div>
<RcRocketIcon
className="animate-bounce ..."
/>
<RcRocketIcon
className="animate-ping ..."
/>
<RcRocketIcon
className="animate-pulse ..."
/>
<RcRocketIcon
className="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>
<RcRocketIcon
className="scale-50 ..."
/>
<RcRocketIcon
className="rotate-45 ..."
/>
<RcRocketIcon
className="skew-y-12 ..."
/>
</div>

Cursor

Use cursor on icons.

Hover over the icon and see changes

<div>
<RcRocketIcon
className="cursor-pointer ..."
/>
<RcRocketIcon
className="cursor-move ..."
/>
<RcRocketIcon
className="cursor-wait ..."
/>
<RcRocketIcon
className="cursor-grab ..."
/>
</div>

Filters

Filters and icons.

NativeWind doesn't support filters, therefore this functionality isn't available for React Native."

<div>
<RcRocketIcon
className="blur ..."
/>
<RcRocketIcon
className="brightness-50 ..."
/>
<RcRocketIcon
className="drop-shadow-lg ..."
/>
<RcRocketIcon
className="saturate-200 ..."
/>
</div>

Copyright © 2024 rocketclimb

DiscordGitHub
<div>
<RcRocketIcon
className="icon-rose-500"
/>
</div>