danboy / tenplate

Typographical and layout grid for SASS

This URL has Read+Write access

Dan Nawara and Tom Kersten (author)
Tue May 12 11:08:12 -0700 2009
tenplate / README
100644 91 lines (60 sloc) 2.083 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Tenplate
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 
Description goes here.
 
all the magic habens in bin/tenplate right now..
 
cd into your rails app and run TENPLATE_ROOT/bin/tenplate
 
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Tenplate SASS Usage
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
!IMPORTANT!
tenplate requires HAML/SASS 2.1 get it here http://github.com/nex3/haml/tree/master
 
Remember, the main power of tenplate comes from using POSH html, so use the checklist at http://microformats.org/wiki/posh
 
1. Make sure you have HAML > 2.3 installed
 
2. Copy the tenplate sass files to your project
 
    /home/you/your/project$ /path/to/tenplate/gem/bin/tenplate
 
3. Add tenplate to your HAML template file
 
    All you need to do is add tenplate.css to your application. Check the example application.html.haml below.
 
    Begin example layout:
 
      !!! XML
      !!! Strict
      %html
        %head
          = stylesheet_link_tag 'tenplate'
 
        %body
          #grid
            = yield
 
          = javascript_include_tag :all
 
    End Example layout
 
4. Set your tenplate variables.
 
    All that really matters is !line_height, !width and !page_padding
 
    public/stylesheets/tenplate.sass
 
    !font_color ||= #333
    !base_font ||= "helvetica,arial,sans-serif"
    !headline_font ||= "Candara,Georgia,serif"
    !font_size ||= 1.4
    !background_color ||= #FFF
    !page_color ||= #EEE
    !link_color ||= #C00
    !line_height ||= 1.8
    !width ||= 960
    !page_padding ||= 2
    !border_size ||= 0
    !border_color ||= #333
    !border_style ||= "none"
    !border_radius ||= .2
    !tab_highlight = !page_color
    !tab_font = !link_color
 
5. Give your pages a layout.
 
 
    .page = full page layout
 
    .main = golden ratio main column
    .rail = golden ratio side bar
 
6. Play around
 
    Give all your div's rounded corners in ff and safari
    Example:
 
    !border_radius ||= 1
 
    div
      +rounded
 
 
COPYRIGHT
=========
 
Copyright (c) 2008 Dan Nawara. See LICENSE for details.