Minimalistic avatars based on css. Color + letter = visual identification.
Possible combinations: 216 colors * 26 letters * 3 versions (default, grayscale, inverted): 16848
Two options are available:
- Download the latest release.
- Clone the repo:
git clone https://github.com/rmhdev/css-avatars.git
<i class="avatar avatar-color-95 avatar-letter-c"></i>
avatar: base classavatar-color-*: color number, from0to215. Read more about web-safe colorsavatar-letter-*: (optional) letter, fromatozavatar-*: (optional) size:sm,md,lgavatar-inverse: (optional) inverted colorsavatar-gs: (optional) grayscale, no colorsavatar-plain: (optional) remove text shadow
You can also create avatars with special letters.
Just don't use the avatar-letter-* class and write the letter in the tag.
<i class="avatar avatar-color-201">ü</i>
View an online demo. There's a raw demo with all the colors and sizes.
I started this project with some goals in mind:
- Play with Less
- Learn more about CSS + fonts.
0.0.1(May 18, 2014): initial release.0.1.0(May 18, 2014): added inverse mode.0.2.0(May 18, 2014): letter class is optional (for adding special characters).0.3.0(May 25, 2014): add text shadow (enhance readability). Files with consistent naming.
Code and documentation copyright 2014 Rober Martín. Code released under MIT license. Docs released under Creative Commons CC BY 4.0.
This project is inspired in default avatars used in Google's Gmail Android App. CSS is based on Glyphicons (awesome project!). I started working on this project after reading Switch from Gravatar to HTML/CSS letters for no-avatar users.
My name is Rober Martín (@rmhdev). I'm a developer from Donostia / San Sebastián.