Last active
August 29, 2015 14:16
-
-
Save charliewilco/5f6db7791195f2f0663e to your computer and use it in GitHub Desktop.
Typographic Utilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.caps { text-transform: uppercase; } | |
.lower { text-transform: lowercase; } | |
.tt-none { text-transform: none; } | |
$dirs: left, right, center; | |
@each $dir in $dirs { | |
.align-#{$dir} { text-align: #{$dir}; } | |
} | |
$ws: 300, 400, 700; | |
@each $w in $ws { | |
.w-#{$w} { font-weight: $w; } | |
} | |
@for $i from -2 through 5 { | |
.lt-#{$i} { letter-spacing: #{$i}px; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment