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

How to Enable Dark Mode

Using rocketicons to style icons on dark mode.

You can style icons differently when dark mode is enabled.

Light mode

Dark mode

<divclassName="text-slate-400 bg-slate-800 ... shadow-xl">
<p>
{modeLabel}
</p>
<BiLogoPinterestAltclassName="icon-sky-900-6xl dark:icon-sky-500-6xl" />
</div>

In action

Use dark mode variation

Use the variant dark: to define styles for dark mode.

Change the page theme and see it working.

You can find a complete reference of the dark mode use on the Tailwind documentation.

Copyright © 2024 rocketclimb

DiscordGitHub