aka "Design System" or "UI Pattern Library"
Josh Duck’s HTML Periodic Table
color:rgb(99, 190, 190)
Scale is 0 - 255
color: #ff00ff;
0 1 2 3 4 5 6 7 8 9 a b c d e f g
#11 = 17 (16 + 1)
#21 = 33 (16*2 + 1)
Hue (0-360), Saturation (0%-100%), Luminance (0-100%)
rgba
hsla
a is a number between 0.0 and 1.0
opacity is also its own css property
example: glslsandbox.com/
Monochromatic - Shades within one part of the color wheel
Analogous - Adjacent to each other on the color wheel
Complementary - Opposites on the color wheel
Triadic - Thirds of the color wheel
Color Scheme Designer: http://paletton.com
image via inkbotdesign.com/typography-quotes
Read more: Typography and its Terms
Use 1 or 2 typefaces, 3 only in special cases.
Use different fonts from the same typeface (i.e. normal, bold)
Use hierarchy (size, weight) and color to differentiate within a single typeface.
If using more than one typeface, aim for contrast in style (i.e. serif vs. sans-serif), and weight.
Contrasting fonts should have similar x-heights, glyph widths, and basic shapes (i.e. "O" / "bowl" shape).
Sans serif: more readable at smaller sizes.
Each typeface and font should have a clear purpose.
justmytype.co - font pairings
Smashing Magazine: The Good, The Bad and the Great Examples of Web Typography
typewolf.com - what's trending in type
.sans-serif {
font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}
Check compatibility: cssfontstack.com
new as of CSS3
A few methods...
HTML <head>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Droid +Sans|Lobster">
CSS
@import url(https://fonts.googleapis.com/css?family=Droid +Sans|Lobster);
*import blocks page load
JavaScript (a few methods)
<script src="https://use.typekit.net/czq6rum.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
Resources
@font-face {
font-family: 'MyWebFont';
src: url('myfont.woff2') format('woff2'),
url('myfont.woff') format('woff');
}
Even if a font ships with your computer, it may not allow you to embed it as a web font.
Example: fontawesome
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<h1>Icon Fonts are cool <i class="fa fa-thumbs-up"></i></h1>
1. Include the stylesheet (this example links to a CDN)
2. Use <i class=fa fa-*> where * is the name of the icon