YUI Fonts: a Dashboard Widget

icon.pngThe Yahoo! User Interface Library is really a great tool for web development, and I’m not saying that just because I work there.

The YUI CSS foundation is composed of 3 components, which I have learned to love:

  • Reset creates a level playing field across browsers.
  • Grids offers three preset page widths, seven core templates, and the ability to nest subdivided regions of one to four columns.
  • Fonts offers cross-browser typographical normalization and control.

Being able to rely on these facilities is a great time-saver once you understand how they work. For example, Fonts requires sizes to be declared as percentage values. Many web devs at Yahoo! have the pixel-to-percentage table in their cubicle, I made a Dashboard Widget for Mac OS X. It’s just a semi-transparent image with the pixel/percent table and matching Arial sample text as rendered by Safari, IE, and Firefox.

Download here: yui-fontswdgt.zip [96 KB]

In other news, they fixed my A/C. I’m glad! :D

9 thoughts on “YUI Fonts: a Dashboard Widget

  1. Neat! Your blog is now on my blogroll. Do you have a full-text RSS feed? All I’m getting is snippets…

  2. Great widget, this is going to come in really handy. Finally I will have this cheat sheet with me anywhere I’m working instead of relying on the tattered print out stuck to the side of my cube.

    One question, why did you make it transparent? It’s not that big of a deal, it just makes it a little hard to read sometimes, I’m just confused as to why you wouldn’t just make it opaque.

  3. Whit: The widget was made (slightly) transparent so you can hover it over some font you are trying to match, and find the correct size setting.
    Cheers, and thanks for your comment!

  4. Pingback: gaarf.info » Blog Archive » YUI Fonts: updated Dashboard Widget

  5. I am a fan of YUI. Though, when I use yui-fonts the font sizes seem clearly different in for example Firefox and IE. Am I missing something here?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>