Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 1.34 KB

readme.md

File metadata and controls

71 lines (52 loc) · 1.34 KB

Remix Icon for Mojo CSS

This capsule allows you to easily integrate RemixIcon, a popular icon library, into your Mojo CSS projects.

Usage

NPM

  1. Install the capsule package via npm:
npm install @mojocss/remixicon
  1. Import the remixiconCapsule function from the installed package:
import remixiconCapsule from "@mojocss/remixicon";
  1. Add the capsule to your Mojo config:
mojo({
  // Mojo CSS Config
  capsules: [remixiconCapsule],
});

Alternatively, you can configure specific options:

mojo({
  // Mojo CSS Config
  capsules: [
    {
      capsule: remixiconCapsule,
      options: {
        version: "5.3.2", // remixicon version
      },
    },
  ],
});

CDN

<script src="https://unpkg.com/@mojocss/remixicon"></script>

and then

mojo({
  // Mojo CSS Config
  capsules: [remixiconCapsule],
});

Usage

After importing the capsule, you can use its icons in your HTML markup:

<i class="ri-heart-fill"></i>

Additional Information