From 2dbb9ca1f5669616a84885025e7e483a6cc1d2c9 Mon Sep 17 00:00:00 2001 From: LitoMore Date: Tue, 8 Nov 2022 00:51:15 +0800 Subject: [PATCH] Add CDN usages for `cdn.simpleicons.org` (#8000) * Add usages for `cdn.simpleicons.org` * Fixes * Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 4ce6b7b1a78f..a3aabb541938 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,27 @@ Where `[ICON SLUG]` is replaced by the [slug] of the icon you want to use, for e These examples use the latest major version. This means you won't receive any updates following the next major release. You can use `@latest` instead to receive updates indefinitely. However, this will result in a `404` error if the icon is removed. +#### CDN with colors + +We also provide a CDN service which allows you to use colors. + +```html + + +``` + +Where `[COLOR]` is optional, and can be replaced by the [hex colors](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color) or [CSS keywords](https://www.w3.org/wiki/CSS/Properties/color/keywords) of the icon you want to you use. The color is defaulted to the HEX color of the icon shown in [simpleicons.org website](https://simpleicons.org). For example: + +```html + + + + + + + +``` + ### Node Usage NodeNode The icons are also available through our npm package. To install, simply run: