Sign in to edit and +1 items.
Login required
Download

Silk icons from famfamfam.com

(1)
Used by approximately
7%
of Grails users
Author(s) Burt Beckwith
Current Release 1.0.1   (1 year ago)
Grails Version 1.0 > *
Tags grails2  icons  ui 
Dependency
compile ":famfamfam:1.0.1"
Last updated by burtbeckwith 1 year ago
grails install-plugin famfamfam
Last updated by burtbeckwith 1 year ago
1000 free icons from famfamfam.com - see http://www.famfamfam.com/lab/icons/silk/ for details.

There isn't much functionality in the plugin, it's mostly here to avoid having multiple copies of the images from various plugins that use them.

You can reference them directly in <img> tags:

<img src='${resource(dir: 'images/icons', file: 'world.png', plugin: 'famfamfam')}'/>

but a more common use is as a CSS background image:

.icon_error {
   background-image: url('${resource(dir: 'images/icons', file: 'world.png', plugin: 'famfamfam')}');
}

Both of these can be simplified with the <fam:icon> custom tag:

<img src='${fam.icon(name: 'world')}'/>

and

.icon_error {
   background-image: url('${fam.icon(name: 'world')}');
}

Note that you don't specify the png extension when using the tag - all of the icons are PNGs so it's unnecessary.

Last updated by admin 1 year ago
Last updated by admin 1 year ago