Project

font-stack

0.01
No commit activity in last 3 years
No release in over 3 years
Font-stack is a Compass plugin that provides a library of CSS font stacks.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.0.0
 Project Readme

Font-stack

A Compass plugin that provides a library of CSS font stacks configured as Sass variables. Each font stack tries to provide fallback fonts for Windows, Mac and Linux that have roughly the same characteristics as the primary font in the stack.

Installation

Install the plugin:

sudo gem install font-stack

To add font-stack to an existing compass project add the following line to your compass configuration file:

require 'font-stack'

Example Usage

@import "font-stack"

body { font-family: $tahoma-font-stack; }
h1 { font-family: $palatino-font-stack; }
code { font-family: $monospace-font-stack; }
.signature { font-family: $cursive-font-stack; }

List of Font Stacks

http://github.com/lloydk/font-stack/blob/master/lib/stylesheets/_font-stack.scss

Todo

  • Add additional fonts to the cursive font-stack
  • Add mixins

Credits

Serif and sans-serif font stacks from: www.awayback.com - A Revised Font Stack

Monospace font stack from: articles.sitepoint.com - 8 Definitive Web Font Stacks

Cursive font stack from: www.codestyle.org - Build better CSS font stacks, Cursive font stack featuring Bradley Hand ITC