diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 363f7b86..a3751c9a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -47,10 +47,10 @@ jobs: - name: Get release title and body id: release run: | - COMMIT_MSG="$(echo "${{ steps.commit.outputs.git-message }}")" - RELEASE_TITLE="$(echo "$COMMIT_MSG" | head -n 1)" + COMMIT_MSG="$(printf "${{ steps.commit.outputs.git-message }}")" + RELEASE_TITLE="$(printf "$COMMIT_MSG" | head -n 1)" echo "::set-output name=title::$RELEASE_TITLE" - RELEASE_BODY="$(echo "$COMMIT_MSG" | tail -n +3)" + RELEASE_BODY="$(printf "$COMMIT_MSG" | tail -n +3)" echo "::set-output name=body::$RELEASE_BODY" - name: Get release version id: get-version @@ -78,6 +78,17 @@ jobs: - name: Trigger simple-icons-font release run: | curl -X POST \ - -H "Authorization: Bearer ${{ secrets.SIMPLE_ICONS_FONT_TOKEN }}" \ + -H "Authorization: Bearer ${{ secrets.REMOTE_DISPATCH_TOKEN }}" \ -d '{"ref":"develop"}' \ https://api.github.com/repos/simple-icons/simple-icons-font/actions/workflows/auto-release.yml/dispatches + website: + name: Trigger simple-icons-website update + needs: npm + runs-on: ubuntu-latest + steps: + - name: Trigger simple-icons-website update + run: | + curl -X POST \ + -H "Authorization: Bearer ${{ secrets.REMOTE_DISPATCH_TOKEN }}" \ + -d '{"ref":"master"}' \ + https://api.github.com/repos/simple-icons/simple-icons-website/actions/workflows/auto-release.yml/dispatches diff --git a/.jsonlintschema b/.jsonlintschema index 6477aa04..c6d9fc28 100644 --- a/.jsonlintschema +++ b/.jsonlintschema @@ -25,6 +25,12 @@ "type": "string", "pattern": "^https?://[^\\s]+$", "required": true + }, + "guidelines": { + "description": "The brand guidelines for the icon and/or color", + "type": "string", + "pattern": "^https?://[^\\s]+$", + "required": false } }, "required": true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3dba6e7f..cba023b9 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -189,13 +189,16 @@ Icon metadata should be added to the `_data/simple-icons.json` file. Each icon i * A `hex` color value that matches the brand's primary color. All uppercase and without the `#` pound symbol.) * The `source` URL of the logo being used. There are [more details below](#source-guidelines). +There is also an optional field that may be used to specify the brand guidelines/presskit/etc. This is useful if the SVG file was sourced from a different place. + Here is the object for The Movie Database as an example: ```json { "title": "The Movie Database", "hex": "01D277", - "source": "https://www.themoviedb.org/about/logos-attribution" + "source": "https://www.themoviedb.org/about/logos-attribution", + "guidelines": "https://www.themoviedb.org/about/logos-attribution" } ``` diff --git a/README.md b/README.md index 2d4ff0a2..36bbf14e 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,18 @@ console.log(icon); */ ``` +Lastly, the `simpleIcons` object is also enumerable. +This is useful if you want to do a computation on every icon: + +```javascript +const simpleIcons = require('simple-icons'); + +for (const title in simpleIcons) { + const icon = simpleIcons.get(title); + // do stuff +} +``` + #### TypeScript Usage There are also TypeScript type definitions for the Node package. To use them, simply run: diff --git a/_data/simple-icons.json b/_data/simple-icons.json index 1490f106..44e6af29 100644 --- a/_data/simple-icons.json +++ b/_data/simple-icons.json @@ -75,6 +75,11 @@ "hex": "A100FF", "source": "https://www.accenture.com/" }, + { + "title": "Acclaim", + "hex": "26689A", + "source": "https://www.youracclaim.com/" + }, { "title": "Accusoft", "hex": "A9225C", @@ -293,13 +298,18 @@ { "title": "AliExpress", "hex": "FF4747", - "source": "https://doc.irasia.com/listco/hk/alibabagroup/annual/2020/ar2020.pdf" + "source": "https://www.alibabagroup.com/en/ir/reports" }, { "title": "Alipay", "hex": "00A1E9", "source": "https://gw.alipayobjects.com/os/rmsportal/trUJZfSrlnRCcFgfZGjD.ai" }, + { + "title": "Alitalia", + "hex": "006643", + "source": "https://www.alitalia.com/it_it/fly-alitalia/in-flight/ulisse-magazine.html" + }, { "title": "AlliedModders", "hex": "1578D3", @@ -335,6 +345,11 @@ "hex": "232F3E", "source": "https://upload.wikimedia.org/wikipedia/commons/9/93/Amazon_Web_Services_Logo.svg" }, + { + "title": "Amazon DynamoDB", + "hex": "4053D6", + "source": "https://aws.amazon.com/architecture/icons/" + }, { "title": "Amazon Fire TV", "hex": "FC4C02", @@ -937,8 +952,8 @@ }, { "title": "Bing", - "hex": "008373", - "source": "https://commons.wikimedia.org/wiki/File:Bing_logo_(2016).svg" + "hex": "258FFA", + "source": "https://www.bing.com/covid/" }, { "title": "Bit", @@ -1030,6 +1045,11 @@ "hex": "1D439C", "source": "https://commons.wikimedia.org/wiki/File:Boeing_full_logo.svg" }, + { + "title": "Bookmeter", + "hex": "64BC4B", + "source": "https://bookmeter.com/" + }, { "title": "Boost", "hex": "F7901E", @@ -1165,6 +1185,11 @@ "hex": "00599C", "source": "https://github.com/isocpp/logos" }, + { + "title": "Cachet", + "hex": "7ED321", + "source": "https://cachethq.io/press" + }, { "title": "Cairo Metro", "hex": "C10C0C", @@ -1618,13 +1643,20 @@ { "title": "Corona Engine", "hex": "F96F29", - "source": "https://coronalabs.com/" + "source": "https://coronalabs.com/", + "guidelines": "https://coronalabs.com/presskit.pdf" }, { "title": "Corona Renderer", "hex": "E6502A", "source": "https://corona-renderer.com/about" }, + { + "title": "Corsair", + "hex": "000000", + "source": "https://www.corsair.com", + "guidelines": "https://www.corsair.com/press" + }, { "title": "Couchbase", "hex": "EA2328", @@ -1685,6 +1717,11 @@ "hex": "000000", "source": "https://www.cryengine.com/brand" }, + { + "title": "Crystal", + "hex": "000000", + "source": "https://crystal-lang.org/media/" + }, { "title": "CSS Wizardry", "hex": "F43059", @@ -1827,8 +1864,8 @@ }, { "title": "Delicious", - "hex": "3399FF", - "source": "https://en.wikipedia.org/wiki/Delicious_(website)" + "hex": "0000FF", + "source": "http://del.icio.us/" }, { "title": "Deliveroo", @@ -2070,6 +2107,11 @@ "hex": "000000", "source": "https://www.ea.com" }, + { + "title": "Eagle", + "hex": "0072EF", + "source": "https://en.eagle.cool/" + }, { "title": "easyJet", "hex": "FF6600", @@ -2473,7 +2515,8 @@ { "title": "Firebase", "hex": "FFCA28", - "source": "https://firebase.google.com/brand-guidelines/" + "source": "https://firebase.google.com/brand-guidelines/", + "guidelines": "https://firebase.google.com/brand-guidelines/" }, { "title": "Firefox", @@ -2610,6 +2653,11 @@ "hex": "F94877", "source": "https://foursquare.com/about/logos" }, + { + "title": "Foxtel", + "hex": "EB5205", + "source": "https://www.foxtel.com.au/" + }, { "title": "Fozzy", "hex": "F15B29", @@ -2783,7 +2831,8 @@ { "title": "GitHub", "hex": "181717", - "source": "https://github.com/logos" + "source": "https://github.com/logos", + "guidelines": "https://github.com/logos" }, { "title": "GitHub Actions", @@ -2827,8 +2876,8 @@ }, { "title": "Gmail", - "hex": "D14836", - "source": "https://material.io/guidelines/resources/sticker-sheets-icons.html#sticker-sheets-icons-components" + "hex": "EA4335", + "source": "https://fonts.gstatic.com/s/i/productlogos/gmail_2020q4/v8/192px.svg" }, { "title": "GNOME", @@ -2923,7 +2972,7 @@ { "title": "Google Calendar", "hex": "4285F4", - "source": "https://commons.wikimedia.org/wiki/File:Google_Calendar_icon.svg" + "source": "https://fonts.gstatic.com/s/i/productlogos/calendar_2020q4/v8/192px.svg" }, { "title": "Google Cardboard", @@ -3475,6 +3524,11 @@ "hex": "054ADA", "source": "https://www.ibm.com/design/language/elements/logos/8-bar/" }, + { + "title": "IBM Watson", + "hex": "BE95FF", + "source": "https://www.ibm.com/brand/systems/watson/brand/" + }, { "title": "iCloud", "hex": "3693F3", @@ -4030,6 +4084,11 @@ "hex": "6AA127", "source": "http://newsroom.komoot.com/media_kits/219423/" }, + { + "title": "Kongregate", + "hex": "990000", + "source": "https://www.kongregate.com/pages/logos-and-branding" + }, { "title": "Kotlin", "hex": "0095D5", @@ -4158,7 +4217,8 @@ { "title": "LG", "hex": "A50034", - "source": "https://en.wikipedia.org/wiki/LG_Corporation" + "source": "https://en.wikipedia.org/wiki/LG_Corporation", + "guidelines": "https://www.lg.com/global/about-lg-brand-identity" }, { "title": "LGTM", @@ -4320,6 +4380,11 @@ "hex": "E74430", "source": "https://lumen.laravel.com/" }, + { + "title": "Lydia", + "hex": "0180FF", + "source": "https://lydia-app.com/en/info/press.html" + }, { "title": "Lyft", "hex": "FF00BF", @@ -4840,6 +4905,11 @@ "hex": "48AC98", "source": "https://n26.com/" }, + { + "title": "Namecheap", + "hex": "DE3723", + "source": "https://www.namecheap.com/" + }, { "title": "National Grid", "hex": "00148C", @@ -5240,6 +5310,11 @@ "hex": "FF1B2D", "source": "https://github.com/operasoftware/logo" }, + { + "title": "OPNSense", + "hex": "D94F00", + "source": "https://github.com/opnsense/core/blob/06b1804a3d358041607ec3a963ab90b720564cc3/src/opnsense/www/themes/opnsense/build/images/icon-logo.svg" + }, { "title": "Opsgenie", "hex": "172B4D", @@ -6695,6 +6770,11 @@ "hex": "FB6022", "source": "https://www.sogou.com/" }, + { + "title": "Solidity", + "hex": "363636", + "source": "https://docs.soliditylang.org/en/v0.7.4/brand-guide.html" + }, { "title": "SoloLearn", "hex": "1ABC9C", @@ -6730,6 +6810,11 @@ "hex": "F80046", "source": "http://blog.songkick.com/media-assets" }, + { + "title": "Songoda", + "hex": "FC494A", + "source": "https://songoda.com/branding" + }, { "title": "SonicWall", "hex": "FF791A", @@ -7178,7 +7263,7 @@ { "title": "Taobao", "hex": "E94F20", - "source": "https://doc.irasia.com/listco/hk/alibabagroup/annual/2020/ar2020.pdf" + "source": "https://www.alibabagroup.com/en/ir/reports" }, { "title": "Tapas", @@ -7443,7 +7528,8 @@ { "title": "Toyota", "hex": "EB0A1E", - "source": "https://www.toyota.com/brandguidelines/logo/" + "source": "https://www.toyota.com/brandguidelines/logo/", + "guidelines": "https://www.toyota.com/brandguidelines/" }, { "title": "TP-Link", @@ -7662,7 +7748,7 @@ }, { "title": "Umbraco", - "hex": "00BEC1", + "hex": "3544B1", "source": "https://umbraco.com/" }, { diff --git a/icons/acclaim.svg b/icons/acclaim.svg new file mode 100644 index 00000000..b186a14d --- /dev/null +++ b/icons/acclaim.svg @@ -0,0 +1 @@ +Acclaim icon \ No newline at end of file diff --git a/icons/alitalia.svg b/icons/alitalia.svg new file mode 100644 index 00000000..a6f9c23e --- /dev/null +++ b/icons/alitalia.svg @@ -0,0 +1 @@ +Alitalia icon \ No newline at end of file diff --git a/icons/amazondynamodb.svg b/icons/amazondynamodb.svg new file mode 100644 index 00000000..36c1287e --- /dev/null +++ b/icons/amazondynamodb.svg @@ -0,0 +1 @@ +Amazon DynamoDB icon \ No newline at end of file diff --git a/icons/bing.svg b/icons/bing.svg index 472bd0b3..e2261d38 100644 --- a/icons/bing.svg +++ b/icons/bing.svg @@ -1 +1 @@ -Bing icon \ No newline at end of file +Bing icon \ No newline at end of file diff --git a/icons/bookmeter.svg b/icons/bookmeter.svg new file mode 100644 index 00000000..70b73aa8 --- /dev/null +++ b/icons/bookmeter.svg @@ -0,0 +1 @@ +Bookmeter icon \ No newline at end of file diff --git a/icons/cachet.svg b/icons/cachet.svg new file mode 100644 index 00000000..5b4e08d0 --- /dev/null +++ b/icons/cachet.svg @@ -0,0 +1 @@ +Cachet icon \ No newline at end of file diff --git a/icons/corsair.svg b/icons/corsair.svg new file mode 100644 index 00000000..1932d5e8 --- /dev/null +++ b/icons/corsair.svg @@ -0,0 +1 @@ +Corsair icon \ No newline at end of file diff --git a/icons/crystal.svg b/icons/crystal.svg new file mode 100644 index 00000000..8f581bc8 --- /dev/null +++ b/icons/crystal.svg @@ -0,0 +1 @@ +Crystal icon \ No newline at end of file diff --git a/icons/delicious.svg b/icons/delicious.svg index f79ffa4f..e0af81ac 100644 --- a/icons/delicious.svg +++ b/icons/delicious.svg @@ -1 +1 @@ -Delicious icon \ No newline at end of file +Delicious icon diff --git a/icons/eagle.svg b/icons/eagle.svg new file mode 100644 index 00000000..c5942adb --- /dev/null +++ b/icons/eagle.svg @@ -0,0 +1 @@ +Eagle icon \ No newline at end of file diff --git a/icons/foxtel.svg b/icons/foxtel.svg new file mode 100644 index 00000000..c37fc30b --- /dev/null +++ b/icons/foxtel.svg @@ -0,0 +1 @@ +Foxtel icon \ No newline at end of file diff --git a/icons/gmail.svg b/icons/gmail.svg index d6ef11e3..995b920e 100644 --- a/icons/gmail.svg +++ b/icons/gmail.svg @@ -1 +1 @@ -Gmail icon \ No newline at end of file +Gmail icon \ No newline at end of file diff --git a/icons/googleassistant.svg b/icons/googleassistant.svg index b5d4fcd4..3981b757 100644 --- a/icons/googleassistant.svg +++ b/icons/googleassistant.svg @@ -1 +1 @@ -Google Assistant icon +Google Assistant icon \ No newline at end of file diff --git a/icons/googlecalendar.svg b/icons/googlecalendar.svg index 8e8d488a..7c2a188d 100644 --- a/icons/googlecalendar.svg +++ b/icons/googlecalendar.svg @@ -1 +1 @@ -Google Calendar icon \ No newline at end of file +Google Calendar icon \ No newline at end of file diff --git a/icons/ibmwatson.svg b/icons/ibmwatson.svg new file mode 100644 index 00000000..1b930dae --- /dev/null +++ b/icons/ibmwatson.svg @@ -0,0 +1 @@ +IBM Watson icon \ No newline at end of file diff --git a/icons/klook.svg b/icons/klook.svg index 3fec344d..65be5c71 100644 --- a/icons/klook.svg +++ b/icons/klook.svg @@ -1 +1 @@ -Klook icon \ No newline at end of file +Klook icon \ No newline at end of file diff --git a/icons/kongregate.svg b/icons/kongregate.svg new file mode 100644 index 00000000..16562523 --- /dev/null +++ b/icons/kongregate.svg @@ -0,0 +1 @@ +Kongregate icon \ No newline at end of file diff --git a/icons/lydia.svg b/icons/lydia.svg new file mode 100644 index 00000000..90d8d206 --- /dev/null +++ b/icons/lydia.svg @@ -0,0 +1 @@ +Lydia icon \ No newline at end of file diff --git a/icons/namecheap.svg b/icons/namecheap.svg new file mode 100644 index 00000000..1b9a681d --- /dev/null +++ b/icons/namecheap.svg @@ -0,0 +1 @@ +Namecheap icon \ No newline at end of file diff --git a/icons/opnsense.svg b/icons/opnsense.svg new file mode 100644 index 00000000..c453178c --- /dev/null +++ b/icons/opnsense.svg @@ -0,0 +1 @@ +OPNSense icon \ No newline at end of file diff --git a/icons/solidity.svg b/icons/solidity.svg new file mode 100644 index 00000000..1ff08daa --- /dev/null +++ b/icons/solidity.svg @@ -0,0 +1 @@ +Solidity icon diff --git a/icons/songoda.svg b/icons/songoda.svg new file mode 100644 index 00000000..28497d50 --- /dev/null +++ b/icons/songoda.svg @@ -0,0 +1 @@ +Songoda icon \ No newline at end of file diff --git a/icons/umbraco.svg b/icons/umbraco.svg index a2265fe1..b5265669 100644 --- a/icons/umbraco.svg +++ b/icons/umbraco.svg @@ -1 +1 @@ -Umbraco icon \ No newline at end of file +Umbraco icon \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 41e72206..7dff7e35 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "simple-icons", - "version": "4.7.0", + "version": "4.8.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e0bef670..aa0b57ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-icons", - "version": "4.7.0", + "version": "4.8.0", "description": "SVG icons for popular brands https://simpleicons.org", "homepage": "https://www.simpleicons.org", "keywords": [