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.
OREGON, Ill. (WTVO) – The number of houses for sale in the Northern Illinois region…
2019’s Ready or Not was a breath of fresh air: a simple, savage game of…
The fact that Slay the Spire 2's Early Access debut plays so similarly to the…
In honor and support of Women’s History Month, state Rep. Joanna McClinton, the first woman…
The Live Nation-Ticketmaster trial is back on. Dozens of states are expected to move forward…
Less slop please. | Image: Spotify Spotify Premium users in New Zealand will be the…
This website uses cookies.