0.0.14 • Published 1 year ago

shittyicons v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Documentation

Installation

CDN

Import Shitty Icons using CDN. The import-min.js file will automatically import all styles and JavaScript files into the <head>.

<script type="module" src="https://unpkg.com/shittyicons"></script>

🚧 Specific Version

<script type="module" src="https://unpkg.com/shittyicons@latest"></script>

NPM

Install Shity Icons using npm and node.

npm install shittyicons

Import

Import icon definitions from bashityicons.

index.js

import shittyIcons from 'shityicons';

document.addEventListener('DOMContentLoaded', () => {
  shittyIcons.replaceIcons();
});

Usage

Use the <icon-name> tag in HTML markup. Refer to the Icon Docs for more guidance on using each icon. That's it 🎉.

HTML

<!-- example icon -->
<i shitty-icon="archive"></i>

<!-- using vanilla js with no framework -->

<script>
  document.addEventListener('DOMContentLoaded', () => {
    window.shittyIcons.replaceIcons();
  });
</script>

Check out the demo on codepen.

Copyright and license

Licensed under the MIT License, Copyright © 2024-present GreenestGoat.

See LICENSE for more information.

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago