• Stars
    star
    136
  • Rank 267,670 (Top 6 %)
  • Language
    CSS
  • License
    GNU General Publi...
  • Created about 11 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A public mirror of changes to the Genericon release.

Genericons

Genericons are vector icons embedded in a webfont designed to be clean and simple keeping with a generic aesthetic.

But wait! There is a newer, more modern-looking version of Genericons available, Genericons Neue, which you should consider using instead.

Usage

To use it, place the genericons folder in your stylesheet directory and enqueue the genericons.css file. Now you can create an icon like this:

.my-icon:before {
	content: '\f101';
	font: normal 16px/1 'Genericons';
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

This will output a comment icon before every element with the class "my-icon". You can also use the bundled example.css if you'd rather insert the icons using HTML tags.

Building your own Genericons

In the source directory, you'll find all Genericons source icons in SVG format. This will allow you to bake your own flavor of Genericons using a tool such as FontCustom (https://github.com/FontCustom/fontcustom) or Fontello (http://fontello.com). Perhaps you need more logos than are available in the base Genericons package? Just add those logos and bake your own expanded set. Maybe you need just a few of the icons Genericons provides, but would like to trim the fat? Remove the ones you won't need!

FontCustom instructions

FontCustom is a powerful commandline tool which which bakes icon fonts from the SVG source files. It's the tool Genericons is built on, and it provides highly accurate and perfectly crisp icons, provided all SVGs have the same pixel height.

It's not that hard to use, and once it's installed you'll never think of icon-fonts the same way again. Seriously, you should try it. Icon fonts for everyone!

  1. Install FontCustom. Follow the instructions on the website: https://github.com/FontCustom/fontcustom
  2. In the source directory from the Genericons download, open the file called fontcustom.yml in a text editor. Customize the font_name and css_selector.
  3. Open a terminal. Browse to the source directory. Type fontcustom compile.

You'll now receive a brand new subdirectory called fontcustom-webfont. Inside here you'll find your very own flavor of Genericons, with only the icons you want, including a handy example page that'll help you copy/paste the necessary glyphs or CSS values.

Please note: In the source directory, there's a hidden file called .fontcustom-manifest.json. This file is auto-generated by the FontCustom tool, and holds codepoints (unicode addresses) for every glyph, so its address doesn't change when you add or remove icons. If you feel the need to "start fresh" with the unicode addresses, you should delete this file.

Fontello instructions

Fontello is very easy to use. Just drop the SVG files of the icons you want onto their website and download the font. The downside is that Fontello seems to ignore the 16px pixelgrid, so you'll end up with fuzzy icons. Buyer beware.

Notes

Photoshop mockups

The Genericons.ttf file can be placed in your system fonts folder and used Photoshop or other graphics apps if you like.

If you're using Genericons in your Photoshop mockups, please remember to delete the old version of the font from Font Book, and grab the new one from the zip file. This also affects using it in your webdesigns: if you have an old version of the font installed locally, that's the font that'll be used in your website as well, so if you're missing icons, check for old versions of the font on your system.

Pixel grid

Genericons has been designed for a 16x16px grid. That means it'll look sharp at font-size: 16px exactly. It'll also be crisp at multiples thereof, such as 32px or 64px. It'll look reasonably crisp at in-between font sizes such as 24px or 48px, but not quite as crisp as 16 or 32. Please don't set the font-size to 17px, though, that'll just look terrible blurry.

Antialiasing

If you keep intact the -webkit-font-smoothing: antialiased; and -moz-osx-font-smoothing: grayscale; CSS properties. That'll make the icons look their best possible, in Firefox and WebKit based browsers.

optimizeLegibility

Note: On Android browsers with version 4.2, 4.3, and probably later, Genericons will simply not show up if you're using the CSS property "text-rendering" set to "optimizeLegibility.

Updates

We don't often update icons, but do very carefully when we get good feedback suggesting improvements. Please be mindful if you upgrade, and check that the updated icons behave as you intended.

Base64 encoding

By default, Genericons ships with a stylesheet that includes a base64 encoded version of the font. This is to sidestep issues with cross-origin requests for fonts, that happen when a stylesheet loads a font that's stored on a different domain or subdomain. This is very common when using caching plugins.

Base64 encoding comes with a 25% filesize overhead compared to just loading the WOFF file directly. If you know that you won't be loading fonts across domains, or have the ability to edit your server config files to allow it, you can get slightly faster performance by loading Genericons without the base64 encoding. Simply edit genericons.css and edit the @font-face declaration to match this:

@font-face {
	font-family: 'Genericons';
		src: url('Genericons.woff') format('woff'),
		url('Genericons.ttf') format('truetype'),
		url('Genericons.svg#genericonsregular') format('svg');
	font-weight: normal;
	font-style: normal;
}

Changelog

3.4.1

  • IE8 support restored.

3.4

  • Updated: Update Google Plus icon to new geometric version. This also retires the "alt" version, so *please be mindful if you choose to update, make sure you use the f206 glyph, not the f218 glyph, as it no longer exists!
  • New: Added helper rotation classes to the base CSS, thanks to geminorum. Apply genericon-rotate-90 to rotate 90 degrees, -180, -270. Or genericon-flip-horizontal or -vertical.

Again, it is important if you choose to update to this version, make sure you're not using genericon-googleplus-alt or unicode character f218, as that has been retired! Use genericon-googleplus and glyph f206 instead!

3.3.1

Security Hardening: Remove Genericons example.html file. Please visit genericons.com instead.

3.3

The Open Source release.

You can now build your own flavors of Genericons with all the SVGs provided.

3.2

A number of new icons and a couple of quick updates.

  • New: Activity
  • New: HTML anchor
  • New: Bug
  • New: Download
  • New: Handset
  • New: Microphone
  • New: Minus
  • New: Plus
  • New: Move
  • New: Rating stars, empty, half, full
  • New: Shuffle
  • New: video camera
  • New: Spotify
  • New: Twitch
  • Update: Fixed geometry in Edit icon
  • Update: Updated Foursquare icon
  • IE8 bugfix, slipstreamed into this.

Twitch and Spotify mark the last social icons that will be added to Genericons. Future social icons will have to happen in a separate font.

3.1

Genericons is now generated using a commandline tool called FontCustom. This makes it far easier to add new icons to the font, but the switch means the download zip now has a different layout, fonts have different filenames, there's now no .otf font included (but the .ttf should suffice), and the font now has slightly different metrics. I've taken great care to ensure this new version should work as a drop-in replacement, but please be mindful and test carefully if you choose to upgrade.

  • Per feedback, the baked-in 16px width and height has been removed from the helper CSS. It wasn't really necessary (the glyph itself has these dimensions naturally), and it caused some headaches.
  • Base64 encoding is now included by default in the helper CSS. This makes it drop-in easy to get Genericons working in Firefox even when using a CDN.
  • Title attribute on website tool.
  • New: Website.
  • New: Ellipsis.
  • New: Foursquare.
  • New: X-post.
  • New: Sitemap.
  • New: Hierarchy.
  • New: Paintbrush.
  • Updated: Show and Hide icons were updated for clarity.

3.0.3

Bunch of updates mostly.

  • Two new icons, Dropbox and Fullscreen.
  • Updates to all icons containing an exclamation mark.
  • Updates to Image and Quote.
  • Nicer "Share" icon.
  • Bigger default Linkedin icon.

3.0.2

A slew of new stuff and updates.

  • Social icons: Skype, Digg, Reddit, Stumbleupon, Pocket.
  • New generic icons: heart, lock and print.
  • New editing icons: code, bold, italic, image
  • New interaction icons: subscribe, unsubscribe, subscribed, reply all, reply, flag.
  • The hyperlink icon has been updated to be clearer, chunkier.
  • The "home" icon has been updated for style, size and clarity.
  • The email icon has been updated for style and clarity, and to fit with the new subscribe icons.
  • The document icon has been updated for style.
  • The "pin" icon has been updated for style and clarity.
  • The Twitter icon has been scaled down to fit with the other social icons.

3.0.1

Mostly maintenance.

  • Fixed an issue with the example page that showed an old "top" icon instead of the actual NEW "refresh" icon.
  • Added inverse Google+ and Path.
  • Replaced tabs with spaces in the helper CSS.
  • Changed the Genericons.com copy/paste tool to serve span's instead of div's for casual icon insertion. It's being converted to "inline-block" anyway.

3.0

Mainly maintenance and a few new icons.

  • Fast forward, rewind, PollDaddy, Notice, Info, Help, Portfolio
  • Updated the feed icon. It's a bit smaller now for consistency, the previous one was rather big.
  • So, the previous version numbering, 2.09, wasn't very PHP version compare friendly. So from now on it'll be 3.0, 3.1 etc. Props Ipstenu.
  • Genericons.com now has a mini release blog.
  • The CSS has prettier formatting, props Konstantin Obenland.

2.09

Updated Facebook icon to new version. Updated Instagram logo to use new one-color version. Updated Google+ icon to use same radius as Instagram and Facebook. Added a bunch of new icons, cog, unapprove, cart, media player buttons, tablet, send to tablet.

2.06

Included Base64 encoded version. This is necessary for Genericons to work with CDNs in Firefox. Firefox blocks fonts linked from a different domain. A CDN (typically s.example.com) usually puts the font on a subdomain, and is hence blocked in Firefox.

2.05

Added a bunch of new icons, including upload to cloud, download to cloud, many more.

2.0

Initial public release

More Repositories

1

mongoose

MongoDB object modeling designed to work in an asynchronous environment.
JavaScript
26,902
star
2

wp-calypso

The JavaScript and API powered WordPress.com
TypeScript
12,425
star
3

_s

Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
CSS
10,933
star
4

node-canvas

Node canvas is a Cairo backed Canvas implementation for NodeJS.
JavaScript
10,079
star
5

kue

Kue is a priority job queue backed by redis, built for node.js.
JavaScript
9,446
star
6

simplenote-electron

Simplenote for Web, Windows, and Linux
TypeScript
4,517
star
7

juice

Juice inlines CSS stylesheets into your HTML source.
JavaScript
3,112
star
8

pocket-casts-android

Pocket Casts Android 🎧
Kotlin
2,537
star
9

cli-table

Pretty unicode tables for the CLI with Node.JS
JavaScript
2,243
star
10

expect.js

Minimalistic BDD-style assertions for Node.JS and the browser.
JavaScript
2,098
star
11

simplenote-ios

Simplenote for iOS
Swift
1,976
star
12

monk

The wise MongoDB API
JavaScript
1,845
star
13

knox

S3 Lib
JavaScript
1,738
star
14

simplenote-android

Simplenote for Android
Java
1,688
star
15

jetpack

Security, performance, marketing, and design tools β€” Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
PHP
1,587
star
16

pocket-casts-ios

Pocket Casts iOS app 🎧
Swift
1,464
star
17

simplenote-macos

Simplenote for macOS
Swift
1,420
star
18

antiscroll

OS X Lion style cross-browser native scrolling on the web that gets out of the way.
JavaScript
1,079
star
19

wp-desktop

WordPress.com for Desktop
989
star
20

WP-Job-Manager

Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
PHP
874
star
21

browser-repl

Launch a repl on your command line to any browser in the cloud.
JavaScript
728
star
22

themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
CSS
693
star
23

legalmattic

Democratizing WordPress.com legalese since 2014!
672
star
24

wpcom.js

WordPress.com JavaScript API client designed for Node.js and browsers
JavaScript
658
star
25

Picard

A prototype theme that uses React and WP-API
CSS
631
star
26

fb-instant-articles

Archived (see Readme). Enable Facebook Instant Articles on your WordPress site.
PHP
628
star
27

sensei

Sensei LMS - Online Courses, Quizzes, & Learning
PHP
514
star
28

wordpress-activitypub

ActivityPub for WordPress
PHP
470
star
29

developer

In your WordPress, developing locally
PHP
470
star
30

theme-components

A collection of patterns for creating a custom starter WordPress theme.
PHP
404
star
31

wp-super-cache

WP Super Cache: A fast caching engine for WordPress
PHP
399
star
32

Edit-Flow

WordPress plugin to accelerate your editorial workflow
PHP
341
star
33

o2

The o2 plugin for WordPress β€” blogging at the speed of thought
JavaScript
332
star
34

newspack-plugin

An advanced open-source publishing and revenue-generating platform for news organizations.
PHP
326
star
35

liveblog

Liveblogging done right. Using WordPress.
PHP
304
star
36

batcache

A memcached HTML page cache for WordPress.
PHP
278
star
37

Co-Authors-Plus

Multiple bylines and Guest Authors for WordPress
PHP
275
star
38

newspack-theme

A theme for Newspack.
PHP
265
star
39

vip-quickstart

Retired
PHP
265
star
40

Iris

A(n awesome) Color Picker
JavaScript
257
star
41

babble

Multilingual WordPress done right.
PHP
245
star
42

syntaxhighlighter

WordPress plugin that makes it easy to post syntax-highlighted code snippets.
CSS
239
star
43

VIP-Coding-Standards

PHP_CodeSniffer ruleset to enforce WordPress VIP coding standards.
PHP
210
star
44

underscores.me

PHP
209
star
45

newspack-blocks

Gutenberg blocks for the Newspack project.
PHP
204
star
46

isolated-block-editor

Repackages Gutenberg's editor playground as a full-featured multi-instance editor that does not require WordPress.
CSS
192
star
47

custom-metadata

A WordPress plugin that provides an easy way to add custom fields to your object types (post, pages, custom post types, users)
PHP
191
star
48

camptix

Moved to https://github.com/WordPress/wordcamp.org/
PHP
182
star
49

woocommerce-payments

Accept payments via credit card. Manage transactions within WordPress.
PHP
173
star
50

browserbuild

JavaScript
170
star
51

vip-go-mu-plugins

The development repo for mu-plugins used on the WordPress VIP Platform.
PHP
158
star
52

Documattic

WordPress presentations and resources shared by WordPress.com VIP
JavaScript
156
star
53

google-docs-add-on

Publish to WordPress from Google Docs
JavaScript
152
star
54

mydb

JavaScript
150
star
55

vip-scanner

Deprecated: Scan all sorts of themes and files and things! Use PHPCS and the VIP coding standards instead
PHP
140
star
56

wp-memcached

Memcached Object Cache for WordPress.
PHP
139
star
57

regenerate-thumbnails

WordPress plugin for regenerating thumbnails of uploaded images. Over 1 million active users and counting.
PHP
134
star
58

media-explorer

With Media Explorer, you can now search for tweets and videos on Twitter and YouTube directly from the Add Media screen in WordPress.
PHP
127
star
59

Rewrite-Rules-Inspector

WordPress plugin to inspect your rewrite rules.
PHP
123
star
60

PhpStorm-Resources

PhpStorm is making inroads at Automattic. Here you'll find various helpful files we've made.
123
star
61

wordbless

WorDBless allows you to use WordPress core functions in your PHPUnit tests without having to set up a database and the whole WordPress environment
PHP
122
star
62

Cron-Control

A fresh take on running WordPress's cron system, allowing parallel processing
PHP
121
star
63

vip-go-mu-plugins-built

The generated repo for mu-plugins used on the VIP Go platform.
PHP
120
star
64

social-logos

A repository of all the social logos we use on WordPress.com
JavaScript
119
star
65

ad-code-manager

Easily manage the ad codes that need to appear in your templates
PHP
117
star
66

block-experiments

A monorepo of Block Experiments
JavaScript
114
star
67

genericons-neue

Genericons Neue are generic looking icons, suitable for a blog or simple website
HTML
114
star
68

nginx-http-concat

WordPress plugin to perform CSS and JavaScript concatenation of individual script files into one resource request.
PHP
114
star
69

php-thrift-sql

A PHP library for connecting to Hive or Impala over Thrift
PHP
113
star
70

wp-e2e-tests

Automated end-to-end tests for WordPress.com
JavaScript
112
star
71

gridicons

The WordPress.com icon set
PHP
108
star
72

woocommerce-services

WooCommerce Services is a feature plugin that integrates hosted services into WooCommerce (3.0+), and currently includes automated tax rates and the ability to purchase and print USPS shipping labels.
JavaScript
107
star
73

es-backbone

ElasticSearch Backbone library for quickly building Faceted Search front ends.
JavaScript
103
star
74

syndication

Syndicate your WordPress content.
PHP
102
star
75

theme-tools

Tools for making better themes, better.
JavaScript
99
star
76

phpcs-neutron-standard

A set of phpcs sniffs for PHP >7 development
PHP
94
star
77

mShots

Website Thumbnail/Snapshot Service
JavaScript
94
star
78

prefork

PHP class for pre-loading heavy PHP apps before serving requests
PHP
94
star
79

newspack-newsletters

Author email newsletters in WordPress
PHP
89
star
80

musictheme

A theme for bands and musicians that uses an experimental Gutenberg layout.
CSS
89
star
81

gutenberg-themes-sketch

A set of Sketch files to help you design block-driven WordPress themes.
88
star
82

zoninator

Curation made easy! Create "zones" then add and order your content straight from the WordPress Dashboard.
PHP
85
star
83

cloudup-cli

cloudup command-line executable
JavaScript
83
star
84

go-search-replace

πŸš€ Search & replace URLs in WordPress SQL files.
Go
81
star
85

measure-builds-gradle-plugin

Gradle Plugin for reporting build time metrics.
Kotlin
81
star
86

lazy-load

Lazy load images on your WordPress site to improve page load times and server bandwidth.
JavaScript
77
star
87

gutenberg-ramp

Control conditions under which Gutenberg loads - either from your theme code or from a UI
PHP
75
star
88

auto-update

Objective-C
73
star
89

wpes-lib

WordPress-Elasticsearch Lib
PHP
73
star
90

vip-go-skeleton

The base repository structure for all VIP Go sites
PHP
72
star
91

jurassic.ninja

A frontend to launching ephemeral WordPress instances that auto-destroy after some time
PHP
70
star
92

msm-sitemap

Comprehensive sitemaps for your WordPress VIP site. Joint collaboration between Metro.co.uk, WordPress VIP, Alley Interactive, Maker Media, 10up, and others.
PHP
70
star
93

vip-go-nextjs-skeleton

A Next.js boilerplate for decoupled WordPress on VIP.
TypeScript
70
star
94

wp-api-console

WordPress (.com and .org) API Console written in React/Redux
JavaScript
69
star
95

gutenberg-block-styles

An example of a simple plugin that adds a block style to Gutenberg.
PHP
68
star
96

atd-chrome

After the Deadline extension for Chrome
JavaScript
66
star
97

eventbrite-api

The Eventbrite API plugin brings the power of Eventbrite to WordPress, for both users and developers.
PHP
65
star
98

mongo-query

mongo query API component
JavaScript
65
star
99

site-logo

Add a logo to your WordPress site. Set it once, and all themes that support it will display it automatically.
PHP
65
star
100

newspack-popups

AMP-compatible popup notifications.
PHP
61
star