From 7add5debcd0fa99a8da4f3228c581537cce62eac Mon Sep 17 00:00:00 2001
From: Thomas Bui
-Some icons are really simple (like the Apple one), so the original version can be used as the plain version and as the icon font. In this case, you'll only need to make only one of the version (either "original" or "plain"). You can then add an alias in the devicon.json
so they can be found with either the "original" or "plain" naming convention.
+Some icons are really simple (like the Apple one), so the original version can be used as the plain version and as the icon font. In this case, you'll only need to make only one of the version (either "original" or "plain"). You can then add an alias in the devicon.json
so they can be found with either the "original" or "plain" naming convention. Note that this only applies to font icon versions only, not the SVG versions. SVG versions don't need aliases.
+ Here is what VersionString means: +
+Here is the AliasObj interface:
@@ -110,24 +120,14 @@ Some icons are really simple (like the Apple one), so the original version can b } - -- Here is what VersionString means: -
--As an example, let's assume you have created the svgs for Amazon Web Services and Redhat logos. +As an example, let's assume you have created the svgs for Redhat and Amazon Web Services logos.
-For the Amazon Web Services svgs, you have the following versions: "original", "original-wordmark", "plain-wordmark". However, the "original" version is simple enough to be a "plain" version as well. Note that we are not using the acronym AWS.
For the Redhat svg, you have the "original", "original-wordmark", "plain", and "plain-wordmark" versions.
+For the Amazon Web Services svgs, you have the following versions: "original", "original-wordmark", "plain-wordmark". The "original" version is simple enough to be a "plain" version as well. Note that we are not using the acronym AWS.
/icons
@@ -139,6 +139,33 @@ As an example, let's assume you have created the svgs for Amazon Web Services an
devicon.json
to include the icon (or variations)
redhat
, you would do this
+
+
+ {
+ "name": "redhat",
+ "tags": [
+ "server",
+ "linux"
+ ],
+ "versions": {
+ "svg": [ // here are the versions that are available in svgs
+ "original",
+ "original-wordmark",
+ "plain",
+ "plain-wordmark"
+ ],
+ "font": [ // here are the versions that will be used to create icons
+ "plain",
+ "plain-wordmark"
+ ]
+ },
+ "color": "#e93442", // note the '#' character
+ "aliases": [] // no aliases in this case
+ },
+
+
+ amazonwebservices
, you would do this
@@ -156,7 +183,7 @@ As an example, let's assume you have created the svgs for Amazon Web Services an
"plain-wordmark"
],
"font": [ // here are the versions that will be used to create icons
- "original", // original is simple enough to be used as plain
+ "original", // "original" is simple enough to be used as the plain icon so we'll add "plain" to the aliases below
"plain-wordmark",
// note that the alias "plain" is not listed here. It must be listed in the `aliases` attribute
]
@@ -164,41 +191,15 @@ As an example, let's assume you have created the svgs for Amazon Web Services an
"color": "#F7A80D", // note the '#' character
"aliases": [
{
- "base": "original", // here is the base version aka the one that we will upload to Icomoon
- "alias": "plain" // this is its alias. Our script will create a reference so we can search using "original" or "plain"
+ "base": "original", // here is the base version that we will upload to Icomoon
+ "alias": "plain" // this is its alias. Our script will create a reference so users can search using "original" or "plain" for this icon
+ // note that you don't provide aliases for the svg version. If "original" is not a font version (i.e can't be made into a font), there's no need to provide it with a plain alias
}
]
}
redhat
, you would do this
-
-
- {
- "name": "redhat",
- "tags": [
- "server",
- "linux"
- ],
- "versions": {
- "svg": [
- "original",
- "original-wordmark",
- "plain",
- "plain-wordmark"
- ],
- "font": [
- "plain",
- "plain-wordmark"
- ]
- },
- "color": "#e93442",
- "aliases": [] // no aliases
- },
-
-
-