The library is useful for Minecraft-related web projects or user interfaces that need blocky, retro icons. You can drop in an icon with a single line of HTML, no extra JS required.
1. Download the McIcons package and include the stylesheet in your HTML document:
<link rel="stylesheet" href="/css/mcicons.css">
<!-- OR FROM CDN --> <link rel="stylesheet" href="https://cdn.mcicons.dev/releases/v1.0.0/css/all.css">
2. Browse the official McIcons library to find your desired icon.
3. Add an <i> tag (or <span>) with the appropriate classes to your HTML:
<i class="mc mc-acacia-chest-boat"></i>
4. Available utility classes for sizing. The default size with just .mc is 1.5rem.
.mc-sm: 1rem.mc: 1.5rem (default).mc-xl: 2rem.mc-2xl: 2.5rem.mc-3xl: 3rem.mc-4xl: 4rem.mc-5xl: 5rem<i class="mc mc-acacia-chest-boat mc-xl"></i>
5. If you prefer not to use CSS classes or need more control, the downloaded package contains all icons as PNG files (in the public/icons/ directory). You can embed these using standard <img> tags:
<img src="/path/to/mcicons/public/icons/acacia-chest-boat.png" alt="Acacia Chest Boat">
The post 1300+ Handcrafted, Pixel-style Minecraft UI Icons – McIcons.css appeared first on CSS Script.
Future These Companies Say AI Is Reviving Entry-Level Jobs, Not Killing ThemLindsay Ellis | The…
Marketing has always been about timing, relevance, and consistency. The challenge is that most teams…
Marketing has always been about timing, relevance, and consistency. The challenge is that most teams…
Artificial intelligence is often associated with language models, robotics, or financial forecasting. Yet one of…
Artificial intelligence is often associated with language models, robotics, or financial forecasting. Yet one of…
Most sales teams today are not short on leads or effort. They’re short on timely execution. Leads are coming…
This website uses cookies.