# Contributing to Simple Icons [![](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Fsearch%2Fissues%3Fq%3Drepo%3Asimple-icons%2Fsimple-icons%2520label%3A%2522good%2520first%2520issue%2522%2520is%3Aopen%2520-linked%3Apr&query=%24.total_count&suffix=%20open&logo=github&label=good%20first%20issues&color=228f6c&labelColor=228f6c&logoColor=white&style=flat-square)](https://github.com/simple-icons/simple-icons/issues?q=is%3Aopen+label%3A%22good+first+issue%22+-linked%3Apr) [![](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Fsearch%2Fissues%3Fq%3Drepo%3Asimple-icons%2Fsimple-icons%2520label%3A%2522update%2520icon%2Fdata%2522%2C%2522new%2520icon%2522%2520is%3Aopen%2520-linked%3Apr&query=%24.total_count&suffix=%20open&logo=svg&logoColor=333&label=icon%20issues&labelColor=FFB13B&color=FFB13B&style=flat-square)](https://github.com/simple-icons/simple-icons/issues?q=is%3Aissue+is%3Aopen+label%3A%22new+icon%22%2C%22update+icon%2Fdata%22) [![](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Fsearch%2Fissues%3Fq%3Drepo%3Asimple-icons%2Fsimple-icons%2520is%3Aissue%2520is%3Aopen%2520label%3Ameta%2Cpackage%2520-linked%3Apr&query=%24.total_count&suffix=%20open&logo=typescript&logoColor=white&label=code%20issues&labelColor=3178C6&color=3178C6&style=flat-square)](https://github.com/simple-icons/simple-icons/issues?q=is%3Aissue+is%3Aopen+label%3Adocs%2Cmeta%2Cpackage+-linked%3Apr) [![](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Fsearch%2Fissues%3Fq%3Drepo%3Asimple-icons%2Fsimple-icons%2520label%3Adocs%2520is%3Aopen%2520-linked%3Apr&query=%24.total_count&suffix=%20open&logo=markdown&label=docs%20issues&labelColor=343a40&color=343a40&logoColor=FFF&style=flat-square)](https://github.com/simple-icons/simple-icons/issues?q=is%3Aopen+is%3Aissue+label%3Adocs+-linked%3Apr) > [!IMPORTANT]\ > We ask that all users read our [legal disclaimer](./DISCLAIMER.md) before contributing to Simple Icons. Simple Icons welcomes contributions and corrections. Before contributing, please make sure you have read the guidelines below. If you decide to contribute anything, please follow the steps below. If you're new to _git_ and/or _GitHub_, we suggest you go through [the GitHub Guides](https://guides.github.com/introduction/flow/). 1. Fork this repository 1. (Optional) Clone the fork - Using SSH ```shell git clone --filter=tree:0 git@github.com:simple-icons/simple-icons.git ``` - Using HTTPS ```shell git clone --filter=tree:0 https://github.com/simple-icons/simple-icons.git ``` - Using GitHub CLI ```shell gh repo clone simple-icons/simple-icons -- --filter=tree:0 ``` 1. Create a new branch from the latest `develop` 1. Start hacking on the new branch 1. Commit and push to the new branch 1. Make a pull request ## Table of contents * [Requesting an Icon](#requesting-an-icon) * [Forbidden Brands](#forbidden-brands) * [Assessing Popularity](#assessing-popularity) * [Opening an Issue](#opening-an-issue) * [Adding or Updating an Icon](#adding-or-updating-an-icon) * [Requesting Permission](#requesting-permission) * [Testing Package Locally](#testing-package-locally) * [Using Docker](#using-docker) ## Requesting an Icon We welcome icon requests. Before you submit a new issue please make sure the icon: * Has not already been requested. If you find an existing issue or pull request for the brand you're looking for then please add a reaction or comment to show your support. * Is of a _popular_ brand - see "[Assessing Popularity](#assessing-popularity)" below. * Doesn't fall into one of the following categories: - Illegal services (e.g. piracy, malware, threatening material, spam, etc.) - Military-related brands and organizations - Governmental agencies, programs, departments - Allowed: International organizations and NGOs with supranational interests - Allowed: Space agencies - Symbols, including flags and banners - Sport clubs - Allowed: Sports organizations - Yearly releases - Universities or other educational institutions - Any brands representing individuals rather than an organization, company, or product. This includes musicians, bands, and social media personalities. ### Forbidden Brands Some companies and organizations are excessively protective with their brands, so please don't consider them: - BP - Disney - International Olympic Committee - Mattel - Microchip Technology Inc. - [Microsoft](https://github.com/simple-icons/simple-icons/issues/11236) - Oracle - Do you know more? Please, [report them](https://github.com/simple-icons/simple-icons/issues/new?labels=docs&template=documentation.yml). If you are in doubt, feel free to submit it and we'll have a look. ### Assessing Popularity > [!TIP]\ > Similarweb is now trying to force users to log in to view statistics. You can bypass this by going directly to `https://similarweb.com/website/google.com`, replacing `google.com` with the TLD you would like to get the stats on. You may need to use incognito mode if you visit these ranking pages often. To be considered popular enough to be within our scope, a brand must be in existence for at least one year (from date of first stable release, where applicable) and meet one of the following metrics of popularity, in order of preference: 1. Its website's Similarweb global rank is in the top 500k. - As Similarweb updates its data only once every month, there will be a monitoring window for websites ranked between 450k & 550k until the next update, _unless_ the brand is within scope on any other metric below. - For existing icons in our library, the threshold is dropped from 500k to 750k. - A rank lower than 2m, without any other metric being provided, will result in the brand being declared outside our scope. 1. The website's Similarweb rank in any one country is either: - In the top 100, or, - In the top 10k, _with_ a global rank of 1m or better. 1. In cases where a brand does not have its own website the Similarweb rank of its parent company will be accepted _if_ the brand is that company's primary product. 1. Its packages meet one of the following minimum requirements: - [npm](https://www.npmjs.com): 100k weekly downloads, - [jsDelivr](https://www.jsdelivr.com): 1m daily or 35m monthly requests, - [crates.io](https://crates.io): 100k weekly downloads, - [PyPi Stats](https://pypistats.org): 100k weekly downloads, or, 1. If the brand is a Fediverse project, it needs to have a minimum of 10,000 Monthly Active Users as listed on [FediDB](https://fedidb.org/software). - In addition, for **servers** that have a unique recognizable logo, the User Count as listed on [FediDB](https://fedidb.org/network) should be 100,000 or higher. 1. The brand's popularity can be illustrated by other publicly available & verifiable statistic (e.g., downloads, usage). - Stats should preferably also include data on one of our existing brands so a direct comparison can be made. 1. The brand's popularity can be illustrated through a worldwide Google Trends comparison, or similar. - Must be with a similar brand that is already in our library and still within our scope, or that would qualify under any metric. - Must be unambiguous (i.e., it's not a suitable metric for brands with generic words for names). - Trending equal to or higher than the compared brand will be considered in scope. - Trending lower than the compared brand but with an upward trajectory will require the consensus of the person providing the comparison and at least 2 project maintainers. 1. Where applicable, the primary repository for the brand's GitHub project meets the following requirements (see note below): - A minimum of 5k GitHub stars will be required for consideration, providing, - The repository is still active, and, - Its [star history](https://star-history.com) is on a consistently upward trajectory. If all else fails, though, feel free to make a good case for the popularity of the brand you're requesting on any other grounds, provided it can be backed up with verifiable data. Example: a car manufacturer's own website falls outside our scope but a major dealership dealing exclusively or primarily in that brand falls within our scope - in that case we'd accept the manufacturer as being popular. If you can provide a _particularly_ good metric that can be applied to other brands then it will be added to this list. > [!NOTE]\ > All metrics & cut-offs above are subject to ongoing review and potential change. These current metrics were devised in order to no longer rely on GitHub stars as an indication of a project's popularity. But, for projects that only exist on GitHub, we do still need some way of assessing their popularity so, until we can come up with a better way to do so, we have kept stars for the time being but will not be putting as much weight on them as in the past. If you know of a better way of assessing the popularity of a GitHub project then please create an issue for discussion. ### Opening an Issue When submitting a request for a new or updated icon include helpful information such as: * **Issue Title:** The brand name. For example: * New Icons: `Request: GitHub Icon` * Icon Updates: `Update: GitHub Color` or `Update: GitHub Icon` * **Issue Body:** Links to official sources for the brand's icon and colors (e.g. media kits, brand guidelines, SVG files, etc.) If you have an affiliation to the brand you are requesting that allows you to speak on their behalf then please disclose that in your issue as it can help speed up our research process. ## Adding or Updating an Icon > [!NOTE]\ > If you decide to add an icon without requesting it first, the requirements above still apply. ### 1. Identify Official Logos and Colors Most of the icons and brand colors on SimpleIcons have been derived from official sources. Using official sources helps ensure that the icons and colors in SimpleIcons accurately match the brand they represent. Thankfully, this is usually a simple process as organizations often provide brand guides and high-quality versions of their logo for download. Official high quality brand logos and brand colors can usually be found in the following locations: 1. About pages, Press pages, Media Kits, and Brand Guidelines. 1. Website headers 1. Favicons 1. Wikimedia (which should provide a source) 1. GitHub repositories It may be the case that no official source exists, but an unofficial icon has gained widespread acceptance and popularity. In such cases the unofficial icon can be included, but the details will be judged on a case-by-case basis. The JavaScript icon is an example of this. Notice that an unofficial source will never supersede an official one, even if it is more popular. An unofficial icon will only be accepted if no official option exists. #### Icon Guidelines Working with an SVG version of the logo is best. In the absence of an SVG version, other vector filetypes may work as well (e.g. EPS, AI, PDF). In the absence of vector logos, a vector can be created from a high-quality rasterized image, however, this is much more labor-intensive. If the icon includes a (registered) trademark icon we follow the guidelines below to decide whether to include the symbol or not: * If brand guidelines explicitly require including the symbol, it must be included. * If the brand itself includes the symbol with all uses of the logo, even at small sizes, it must be included. * If the symbol is incorporated into the design of the logo (e.g. [Chupa Chups](https://github.com/simple-icons/simple-icons/blob/develop/icons/chupachups.svg)), it must be included. * If there is ambiguity about the conditions under which the symbol is required, it must be included if it is a _registered trademark symbol_ (®) but not if is a _trademark symbol_ (™). * If brand guidelines say it _may_ be removed, usually when the icon is displayed at small sizes, it must not be included. * If there is no explicit requirement that a symbol must be included, it must not be included. #### Color Guidelines For color, the brand's primary color should be used. The official color of a brand is usually found in their brand guidelines, media kits, or some of the other locations mentioned above. If no official color can be identified, use the brand's primary web color or the most prominent color in the logo itself (please indicate why you choose the particular color in your pull request). If an icon's primary color is made up of a gradient, use [Eric Meyer's Color Blender tool](https://meyerweb.com/eric/tools/color-blend/#::1:hex) to pick the color of the calculated midpoint. Simple Icons stores brand colors in the standard 6 character hexadecimal format. ### 2. Extract the Icon from the Logo There are many different tools for editing SVG files, some options include: | Name | Description | Platform | Price | | :---- | :---- | :----: | :----: | | [Inkscape](https://inkscape.org/) | Vector Graphics Editor | Windows, Mac, Linux | Free | | [Boxy SVG](https://boxy-svg.com/) | Vector Graphics Editor | Windows, Mac, Linux | $ / Free (Linux, Web) | | [Affinity Designer](https://affinity.serif.com/designer/) | Vector Graphics Editor | Windows, Mac | $ | | [Adobe Illustrator](https://www.adobe.com/products/illustrator.html) | Vector Graphics Editor | Windows, Mac | $ - $$$ | Using your preferred tool you should: 1. Isolate the icon from any text or extraneous items. 1. Merge any overlapping paths. 1. Compound all paths into one. 1. Change the icon's viewbox/canvas/page size to 24x24. 1. Scale the icon to fit the viewbox, while preserving the icon's original proportions. This means the icon should be touching at least two sides of the viewbox. 1. Center the icon horizontally and vertically. 1. Remove all colors. The icon should be monochromatic. 1. Export the icon as an SVG. Some icons can't be easily converted to a monochromatic version due to colour changes, shadows, or other effects. For such cases, the addition of gaps is the recommended approach, with a preferred width of 0.5px. In some situations, a different gap may be required, but that will be determined on a per-case basis. If you have any problems or questions while creating the SVG, check out [the GitHub Discussions](https://github.com/simple-icons/simple-icons/discussions/categories/help-with-svgs). You may find an answer to your question there or you can ask your question if you did not find an answer. ### 3. Optimize the Icon All icons in Simple Icons have been optimized with the [SVGO tool](https://github.com/svg/svgo). This can be done in one of three ways: * The [SVGO Command Line Tool](https://github.com/svg/svgo) * Run the following command `npx svgo icons/file-to-optimize.svg` * Check if there is a loss of quality in the output, if so increase the precision. * The [SVGOMG Online Tool](https://jakearchibald.github.io/svgomg/) * Click "Open SVG" and select an SVG file. * Set the precision to about 3, depending on if there is a loss of quality. * Leave the remaining settings untouched (or reset them with the button at the bottom of the settings). * Click the download button. * The [SVGO Command Line Tool](https://github.com/svg/svgo) in Docker * If none of the options above work for you, it is possible to build a Docker image for compressing the images. * Build: `docker build . -t simple-icons` * Run: `docker run --rm -v ${PWD}/icons/file-to-optimize.svg:/image.svg simple-icons` After optimizing the icon, double-check it against your original version to ensure no visual imperfections have crept in. Also, make sure that the dimensions of the path have not been changed so that the icon no longer fits exactly within the canvas. We currently check the dimensions up to a precision of 3 decimal points. ### 4. Annotate the Icon Each icon in Simple Icons has been annotated with a number of attributes and elements to increase accessibility. These include: * An svg element with the following attributes, ordered respectively: * An img role attribute. * `role="img"` * A 24x24 viewbox. * `viewBox="0 0 24 24"` * The svg namespace. * `xmlns="http://www.w3.org/2000/svg"` * A title element containing the brand name. * `