0.2.8
  • Docs
  • Getting Started
  • Icons
Switch theme
GitHub
    Playground
  • Getting Started
    • Installation
    • Configuration
    • Customization
    • Contributing
  • Using The Icons
    • Adding Icons
    • Colors
    • Dark Mode
    • Responsive Design
    • Shortcuts
    • Sizing Icons
    • Hover, Focus and Other States
    • Styling
  • Icons
    • rocketicons
    • Ant Design Icons
    • BoxIcons
    • Bootstrap Icons
    • css.gg
  • 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>
<BiFirstPageclassName="bg-white ..." />
<BiFirstPageclassName="bg-red-200 ..." />
<BiFirstPageclassName="bg-orange-200 ..." />
<BiFirstPageclassName="bg-lime-200 ..." />
</div>

Stroke Width

The outlined icons can have their line width customized using the stroke width Tailwind's utilities.

<div>
<BiFirstPageclassName="stroke-[0.2] ..." />
<BiFirstPageclassName="stroke-[0.5] ..." />
<BiFirstPageclassName="stroke-1 ..." />
<BiFirstPageclassName="stroke-[1.5] ..." />
<BiFirstPageclassName="stroke-2 ..." />
<BiFirstPageclassName="stroke-[3px] ..." />
</div>

Define border

Every border utility should work with no problems on rocketicons.


Border Radius You can define the border radius.

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

Border

Border width

You can define the border width.

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

Borders

Border Style

You can define the border style.

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

Outline

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

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

Ring

Define ring. Take a look on every ring.

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

Effects

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

<div>
<BiFirstPageclassName="shadow-md ..." />
<BiFirstPageclassName="shadow-lg ..." />
<BiFirstPageclassName="shadow-xl ..." />
<BiFirstPageclassName="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>
<BiFirstPageclassName="animate-bounce ..." />
<BiFirstPageclassName="animate-ping ..." />
<BiFirstPageclassName="animate-pulse ..." />
<BiFirstPageclassName="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>
<BiFirstPageclassName="scale-50 ..." />
<BiFirstPageclassName="rotate-45 ..." />
<BiFirstPageclassName="skew-y-12 ..." />
</div>

Cursor

Use cursor on icons.

Hover over the icon and see changes

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

Filters

Filters and icons.

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

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

Copyright © 2024 rocketclimb

DiscordGitHub
<div>
<BiFirstPageclassName="icon-rose-500" />
</div>