This commit is contained in:
Pavel Nikulin
2019-08-03 20:48:21 +06:00
parent 35b94b6a0f
commit d50f4d0838
2 changed files with 78 additions and 66 deletions

142
README.md
View File

@@ -1,5 +1,6 @@
# Super Tiny Social Icons
Under 1KB each! Super Tiny Web Icons are minuscule SVG versions of your favourite logos. The average size is *under* 465 bytes!
Under 1KB each! Super Tiny Web Icons are minuscule SVG versions of your favourite logos. The average size is _under_ 465 bytes!
The logos have a 512x512 viewbox, they will fit in a circle with radius 256. They will scale up and down to suit your needs.
@@ -9,13 +10,14 @@ Say thanks!
## How Small?
| 542 Bytes SVG | 1,309 Bytes PNG | 433 Bytes SVG | 1,246 Bytes PNG | 250 Bytes SVG | 1,243 Bytes PNG |
|------ |----------- |------ |---------- |------ |----------- |
| <img src="https://edent.github.io/SuperTinyIcons/images/svg/github.svg" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/png/github.png" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/svg/twitter.svg" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/png/twitter.png" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/svg/flickr.svg" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/png/flickr.png" width="100" /> |
| 542 Bytes SVG | 1,309 Bytes PNG | 433 Bytes SVG | 1,246 Bytes PNG | 250 Bytes SVG | 1,243 Bytes PNG |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| <img src="https://edent.github.io/SuperTinyIcons/images/svg/github.svg" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/png/github.png" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/svg/twitter.svg" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/png/twitter.png" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/svg/flickr.svg" width="100" /> | <img src="https://edent.github.io/SuperTinyIcons/images/png/flickr.png" width="100" /> |
## What's Available so far?
### Social Media
<table>
<tr>
<td>flickr<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/flickr.svg" width="125" title="Flickr" /><br>250 Bytes</td>
@@ -36,6 +38,7 @@ Say thanks!
</table>
### Media
<table>
<tr>
<td>SoundCloud<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/soundcloud.svg" width="125" title="SoundCloud" /><br>959 Bytes</td>
@@ -48,6 +51,7 @@ Say thanks!
</table>
### Google
<table>
<tr>
<td>Google<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/google.svg" width="125" title="Google" /><br>484 Bytes</td>
@@ -60,6 +64,7 @@ Say thanks!
</table>
### Communications
<table>
<tr>
<td>WhatsApp<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/whatsapp.svg" width="125" title="WhatsApp" /><br>589 Bytes</td>
@@ -78,6 +83,7 @@ Say thanks!
</table>
### Websites
<table>
<tr>
<td>Hacker News<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/hackernews.svg" width="125" title="Hacker News" /><br>229 Bytes</td>
@@ -160,6 +166,7 @@ Say thanks!
</table>
### Internet
<table>
<tr>
<td>RSS<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/rss.svg" width="125" title="RSS" /><br>309 Bytes</td>
@@ -175,6 +182,7 @@ Say thanks!
</table>
### Browsers
<table>
<tr>
<td>Chrome<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/chrome.svg" width="125" title="Chrome" /><br>378 Bytes</td>
@@ -182,11 +190,12 @@ Say thanks!
<td>Samsung Internet<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/samsunginternet.svg" width="125" title="Samsung Internet" /><br>384 Bytes</td>
<td>Edge<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/edge.svg" width="125" title="Edge" /><br>646 Bytes</td>
<td>Opera<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/opera.svg" width="125" title="Opera" /><br>722 Bytes</td>
<td>Safari<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/safari.svg" width="125" title="Safari" /><br>747 Bytes</td>
<td>Safari<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/safari.svg" width="125" title="Safari" /><br>699 Bytes</td>
</tr>
</table>
### Podcasts
<table>
<tr>
<td>iTunes<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/itunes_podcasts.svg" width="125" title="iTunes" /><br>786 Bytes</td>
@@ -199,6 +208,7 @@ Say thanks!
</table>
### Logos
<table>
<tr>
<td>Apple<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/apple.svg" width="125" title="Apple" /><br>417 Bytes</td>
@@ -219,6 +229,7 @@ Say thanks!
</table>
### Security
<table>
<tr>
<td>Tox<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/tox.svg" width="125" title="Tox" /><br>494 Bytes</td>
@@ -236,6 +247,7 @@ Say thanks!
</table>
### Payments
<table>
<tr>
<td>PayPal<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/paypal.svg" width="125" title="PayPal" /><br>548 Bytes</td>
@@ -254,6 +266,7 @@ Say thanks!
</table>
### Programming
<table>
<tr>
<td>Python<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/python.svg" width="125" title="Python" /><br>552 Bytes</td>
@@ -281,6 +294,7 @@ Say thanks!
</table>
### Misc
<table>
<tr>
<td>Calendar<br><img src="https://edent.github.io/SuperTinyIcons/images/svg/calendar.svg" width="125" title="Calendar" /><br>959 Bytes</td>
@@ -299,37 +313,35 @@ Say thanks!
</tr>
</table>
## Why so smallious?
Bytes cost money. They cost money to store, transport, and process. Simplicity should be our goal in all endeavours.
Bytes cost money. They cost money to store, transport, and process. Simplicity should be our goal in all endeavours.
## Scream if you want to go smaller
These files were edited by hand in Inkscape, then were minified using [svgo](https://github.com/svg/svgo) and [svgcleaner](https://github.com/RazrFalcon/svgcleaner). Further smallification may be possible. Try it!
* Each of these has an `xmlns="http://www.w3.org/2000/svg"` in the `<svg>` tag. This isn't strictly necessary - but some web browsers won't display them as an image without it.
* Rounded corners can be dropped - `rx="80"` - the effect can be done in CSS if you want.
* The background colour can also be excluded if you're including it elsewhere.
* Colours can be simplified. `#FF0000` becomes `red`.
* The precision of the paths is *mostly* 0 decimal places. A few logos have 1 or 2 dp to make them look more accurate. The precision can be reduced if necessary.
- Each of these has an `xmlns="http://www.w3.org/2000/svg"` in the `<svg>` tag. This isn't strictly necessary - but some web browsers won't display them as an image without it.
- Rounded corners can be dropped - `rx="80"` - the effect can be done in CSS if you want.
- The background colour can also be excluded if you're including it elsewhere.
- Colours can be simplified. `#FF0000` becomes `red`.
- The precision of the paths is _mostly_ 0 decimal places. A few logos have 1 or 2 dp to make them look more accurate. The precision can be reduced if necessary.
Think you can make them smaller? Tell me by raising an issue!
Want more icons? Tell me by raising an issue!
Want more icons? Tell me by raising an issue!
Think the icons look wrong? [Compare them against the official logos](https://github.com/edent/SuperTinyIcons/blob/master/images/reference/index.md). If they still look wrong, tell me by raising an issue!
Think the icons look wrong? [Compare them against the official logos](https://github.com/edent/SuperTinyIcons/blob/master/images/reference/index.md). If they still look wrong, tell me by raising an issue!
**New!** Icons also available in [Android Vector Drawables](https://developer.android.com/guide/topics/graphics/vector-drawable-resources.html) so you can easily use them in Android apps. Converted using https://inloop.github.io/svg2android/ - not guaranteed to be under 1KB.
## Submitting Icons
I'd *love* you to submit something 😸 The rules are simple, your icon must:
I'd _love_ you to submit something 😸 The rules are simple, your icon must:
* be **under** 1024 bytes. That is, the maximum file size is 1023 bytes. No arguments.
* fit inside a circle with radius 256 pixels. Set `rx="50%"` to check.
* represent a popular service's current logo.
- be **under** 1024 bytes. That is, the maximum file size is 1023 bytes. No arguments.
- fit inside a circle with radius 256 pixels. Set `rx="50%"` to check.
- represent a popular service's current logo.
### Template
@@ -351,10 +363,11 @@ At a minimum, your icon needs these components:
### Icon accessibility
The super tiny icons are accessible by default. Each icon has:
* `role="img"`, to expose the ```<svg>``` elements as images in the browser's accessibility tree
* `aria-label="XYZ"` (where XYZ is the icon's brand name), to give the icon an accessible name
`Note:` if using the ```<svg>``` as the `src` for an ```<img>``` element, the `alt` attribute should still be used on the ```<img>``` element because the ARIA is not recognised in this context.
- `role="img"`, to expose the `<svg>` elements as images in the browser's accessibility tree
- `aria-label="XYZ"` (where XYZ is the icon's brand name), to give the icon an accessible name
`Note:` if using the `<svg>` as the `src` for an `<img>` element, the `alt` attribute should still be used on the `<img>` element because the ARIA is not recognised in this context.
CSS-Tricks has also an [article about accessible SVG icons](https://css-tricks.com/accessible-svgs/).
@@ -364,9 +377,9 @@ This is the standard guideline. Use this to help with sizing your icons and they
<img src="https://edent.github.io/SuperTinyIcons/images/guidelines/guideline.svg" width="256" alt="A template for logos" />
* **Green** is the safe zone, where the main body of the icon should be.
* **Yellow** is like a road shoulder, it is there if more space is needed. It should be used for protruding elements, like corners or ornaments.
* **Red** is off limits. It should not be touched by the icons. Red is also how a circular icon would look.
- **Green** is the safe zone, where the main body of the icon should be.
- **Yellow** is like a road shoulder, it is there if more space is needed. It should be used for protruding elements, like corners or ornaments.
- **Red** is off limits. It should not be touched by the icons. Red is also how a circular icon would look.
## Installation
@@ -379,20 +392,19 @@ npm install --save super-tiny-icons
The old-school way:
```html
<img src="./node_modules/super-tiny-icons/images/svg/github.svg">
<img src="./node_modules/super-tiny-icons/images/svg/github.svg" />
```
The modern way, the React (JSX) example:
```jsx
import logo from 'super-tiny-icons/images/svg/github.svg';
import logo from "super-tiny-icons/images/svg/github.svg";
<img src={logo} />
<img src={logo} />;
```
The demo repository bootstrapped with `create-react-app`: [create-react-app-super-tiny-icons](https://github.com/limonte/create-react-app-super-tiny-icons)
## Contributors
### Code Contributors
@@ -427,44 +439,44 @@ Support this project with your organization. Your logo will show up here with a
The majority of these vector logos are based on someone else's work.
* [Social Media Icons by Aha-Soft](https://www.iconfinder.com/iconsets/social-flat-rounded-rects) - CC-BY
* [Phone Icon](https://www.iconfinder.com/icons/1807538/phone_icon#size=128) - Free
* [Lock Icon](https://www.iconfinder.com/icons/1814107/lock_padlock_secure_icon#size=512) - MIT
* [Wire Logo](https://commons.wikimedia.org/wiki/File:Wire_software_logo.svg) - Public Domain
* [Signal Logo](https://github.com/WhisperSystems/Signal-iOS/blob/master/Signal/Images.xcassets/logoSignal.imageset/logoSignal.pdf) - GPLv3
* [RSS Icon](https://commons.wikimedia.org/wiki/File:Generic_Feed-icon.svg) - MPL 1.1
* [PDF Icon](https://www.iconfinder.com/iconsets/line-icons-set) - Free
* [Google+](https://commons.wikimedia.org/wiki/File:Google_Plus_logo_2015.svg) - Public Domain
* [Google](http://svgshare.com/s/q)
* [Mastodon](https://github.com/tootsuite/mastodon/blob/0ad694f96b7f0e951950e7525bde52cd11454cb2/app/assets/images/logo.svg) - AGPLv3
* [GitLab](https://about.gitlab.com/press/)
* [HTML5 Shield](https://www.w3.org/html/logo/) - CC-BY
* [npm Logo](https://commons.wikimedia.org/wiki/File:Npm-logo.svg) - CC-BY
* [Docker Logo](https://github.com/docker/docker.github.io/blob/master/LICENSE) - Apache
* [Steam](https://commons.wikimedia.org/wiki/File:Steam_icon_logo.svg)
* [Symantec](https://commons.wikimedia.org/wiki/File:Symantec_logo10.svg)
* [Yubico](https://github.com/Yubico/yubikey-manager-qt/blob/master/resources/icons/ykman.png) - BSD
* [Keybase](https://github.com/keybase/client/blob/master/shared/images/iconfont/kb-iconfont-keybase-16.svg) - BSD
* [eBay](https://commons.wikimedia.org/wiki/File:EBay_logo.svg)
* [Kickstarter](https://www.kickstarter.com/help/brand_assets)
* [Yahoo!](https://commons.wikimedia.org/wiki/File:Yahoo!_logo.svg)
* [Bitcoin](https://commons.wikimedia.org/wiki/File:Bitcoin_logo.svg) - CC0
* [Bluetooth](https://commons.wikimedia.org/wiki/File:Bluetooth.svg)
* [Blogger](https://commons.wikimedia.org/wiki/File:Blogger_icon.svg)
* [Medium](https://medium.design/logos-and-brand-guidelines-f1a01a733592)
* [Ghost](https://commons.wikimedia.org/wiki/File:Ghost-Logo.svg)
* [Tumblr](https://www.tumblr.com/logo)
* [Intel](https://commons.wikimedia.org/wiki/File:Intel-logo.svg)
* [Badoo](https://team.badoo.com/new/)
* [YouTube](https://www.youtube.com/yt/about/brand-resources/#logos-icons-colors)
* [Google Play](https://commons.wikimedia.org/wiki/File:Google_Play_symbol_2016.svg)
* [Gmail](https://commons.wikimedia.org/wiki/File:Gmail_Icon.svg)
* [Samsung Internet](https://github.com/edent/SuperTinyIcons/pull/74/commits/8824bdaf1346a472ab425347f958e8e64c0948ee)
* [Plex](https://github.com/plexinc/plex-media-player/blob/master/resources/images/icon.svg) - GPLv2
* [NHS](https://www.england.nhs.uk/nhsidentity/identity-guidelines/nhs-logo/)
- [Social Media Icons by Aha-Soft](https://www.iconfinder.com/iconsets/social-flat-rounded-rects) - CC-BY
- [Phone Icon](https://www.iconfinder.com/icons/1807538/phone_icon#size=128) - Free
- [Lock Icon](https://www.iconfinder.com/icons/1814107/lock_padlock_secure_icon#size=512) - MIT
- [Wire Logo](https://commons.wikimedia.org/wiki/File:Wire_software_logo.svg) - Public Domain
- [Signal Logo](https://github.com/WhisperSystems/Signal-iOS/blob/master/Signal/Images.xcassets/logoSignal.imageset/logoSignal.pdf) - GPLv3
- [RSS Icon](https://commons.wikimedia.org/wiki/File:Generic_Feed-icon.svg) - MPL 1.1
- [PDF Icon](https://www.iconfinder.com/iconsets/line-icons-set) - Free
- [Google+](https://commons.wikimedia.org/wiki/File:Google_Plus_logo_2015.svg) - Public Domain
- [Google](http://svgshare.com/s/q)
- [Mastodon](https://github.com/tootsuite/mastodon/blob/0ad694f96b7f0e951950e7525bde52cd11454cb2/app/assets/images/logo.svg) - AGPLv3
- [GitLab](https://about.gitlab.com/press/)
- [HTML5 Shield](https://www.w3.org/html/logo/) - CC-BY
- [npm Logo](https://commons.wikimedia.org/wiki/File:Npm-logo.svg) - CC-BY
- [Docker Logo](https://github.com/docker/docker.github.io/blob/master/LICENSE) - Apache
- [Steam](https://commons.wikimedia.org/wiki/File:Steam_icon_logo.svg)
- [Symantec](https://commons.wikimedia.org/wiki/File:Symantec_logo10.svg)
- [Yubico](https://github.com/Yubico/yubikey-manager-qt/blob/master/resources/icons/ykman.png) - BSD
- [Keybase](https://github.com/keybase/client/blob/master/shared/images/iconfont/kb-iconfont-keybase-16.svg) - BSD
- [eBay](https://commons.wikimedia.org/wiki/File:EBay_logo.svg)
- [Kickstarter](https://www.kickstarter.com/help/brand_assets)
- [Yahoo!](https://commons.wikimedia.org/wiki/File:Yahoo!_logo.svg)
- [Bitcoin](https://commons.wikimedia.org/wiki/File:Bitcoin_logo.svg) - CC0
- [Bluetooth](https://commons.wikimedia.org/wiki/File:Bluetooth.svg)
- [Blogger](https://commons.wikimedia.org/wiki/File:Blogger_icon.svg)
- [Medium](https://medium.design/logos-and-brand-guidelines-f1a01a733592)
- [Ghost](https://commons.wikimedia.org/wiki/File:Ghost-Logo.svg)
- [Tumblr](https://www.tumblr.com/logo)
- [Intel](https://commons.wikimedia.org/wiki/File:Intel-logo.svg)
- [Badoo](https://team.badoo.com/new/)
- [YouTube](https://www.youtube.com/yt/about/brand-resources/#logos-icons-colors)
- [Google Play](https://commons.wikimedia.org/wiki/File:Google_Play_symbol_2016.svg)
- [Gmail](https://commons.wikimedia.org/wiki/File:Gmail_Icon.svg)
- [Samsung Internet](https://github.com/edent/SuperTinyIcons/pull/74/commits/8824bdaf1346a472ab425347f958e8e64c0948ee)
- [Plex](https://github.com/plexinc/plex-media-player/blob/master/resources/images/icon.svg) - GPLv2
- [NHS](https://www.england.nhs.uk/nhsidentity/identity-guidelines/nhs-logo/)
From [SVGporn](https://github.com/gilbarbara/logos/) - CC0
IBM, Yammer, Android, Authy, Cloudflare, CodePen, DigitalOcean, Discord, Airbnb, WiFi, Delicious, Open Source, Patreon
Where possible, they retain their original licenses. Some logos may be subject to copyright and trademark laws, but these files are small enough to memorise.
Where possible, they retain their original licenses. Some logos may be subject to copyright and trademark laws, but these files are small enough to memorise.

View File

@@ -3,4 +3,4 @@ aria-label="Safari" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><radialGradient id="a"><stop stop-color="#0bd"/><stop offset="1" stop-color="#17d"/></radialGradient><g transform="matrix(4 0 0 4 256 256)"><g stroke="#eee" fill="none"><circle r="52.5" fill="url(#a)" stroke-width="5"/><circle r="45" stroke-dasharray="1.25 8.175" stroke-dashoffset="0.5" stroke-linejoin="bevel" stroke-width="5.5"/><circle r="42.5" stroke-dasharray="1.25 7.65" stroke-dashoffset="5" stroke-linejoin="bevel" stroke-width="10"/></g><path d="M6 6l-12-12l-29 39" fill="#eee"/><path d="M6 6l-12-12l41-28" fill="#f55"/><path opacity=".3" d="M-35 33l7-5-3 5 37-27 28-35-4 2 4-6"/></g></svg>
fill="#fff"/><radialGradient id="a"><stop stop-color="#0bd"/><stop offset="1" stop-color="#17d"/></radialGradient><g transform="matrix(4 0 0 4 256 256)"><g stroke="#eee" fill="none"><circle r="52.5" fill="url(#a)" stroke-width="5"/><circle r="45" stroke-dasharray="1.25 8.175" stroke-dashoffset="0.5" stroke-width="5.5"/><circle r="42.5" stroke-dasharray="1.25 7.65" stroke-dashoffset="5" stroke-width="10"/></g><path d="M6 6l-12-12l-29 39" fill="#eee"/><path d="M6 6l-12-12l41-28" fill="#f55"/><path opacity=".3" d="M-35 33l7-5-3 5 37-27 28-35-4 2 4-6"/></g></svg>

Before

Width:  |  Height:  |  Size: 747 B

After

Width:  |  Height:  |  Size: 699 B