• 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

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

<div
className="text-slate-400 bg-slate-800 ... shadow-xl"
>
<p>
{modeLabel}
</p>
<RcRocketIcon
className="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