/zondicons-css

A small plugin to easily use zondicons in your front-end projects.

Primary LanguageCSS

Zondicons css

A small plugin to easily use Zondicons on your front-end projects.

Install

npm -i zondicons-css

Copy the icons folder and the css to your public directory

cp ./node_modules/zondicons-css/src/svg public/zondicons

cp ./node_modules/zondicons-css/dist/zendicons.css public/zendicons.css

Add the css file to your view

<link href="/zendicons.css" rel="stylesheet">

Using less

    // on your main.less file
    @import './../../node_modules/zondicons-css/src/less/main.less';

Usage

You just need to add the zi zi-{icon} classes to your HTML elements:

<style>
.bg-red {
    background-color: red;
}
</style>

<i class="zi zi-arrow-thin-up bg-red"></i>

Use the same icon-name from the original icons reference website: https://www.zondicons.com/icons.html

The icon-color will change depending on the element's background color.