Package Exports
- @mochicons/css
- @mochicons/css/mochicons.css
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mochicons/css) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@mochicons/css
Installation
Using a package manager
Add this package to your project using yarn:
$ yarn add @mochicons/css
Then, include the mochicons.css
file in your HTML file:
<link rel="stylesheet" href="node_modules/@mochicons/css/mochicons.css">
Using a public CDN
You can also use a public CDN like jsdelivr.net:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mochicons/css@latest/mochicons.css">
Usage
You can use the CSS classes defined in mochicons.css
to reference icons in your HTML:
<i class="m-star"></i>
You can use font-size
and color
style properties for customizing the icon:
<i class="m-tools" style="color:#025cca;font-size:24px;"></i>
License
Under the MIT LICENSE.