This repository was archived by the owner on Dec 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathtypography.js
170 lines (166 loc) · 2.97 KB
/
typography.js
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
( function( root, factory ) {
if ( typeof define === "function" && define.amd ) {
define( [ "./chassis", "./colors" ], factory );
} else if ( typeof exports === "object" ) {
require( "./chassis" );
module.exports = factory( require( "./colors" ) );
} else {
root.chassis = factory( root.chassis );
}
}( this, function( chassis ) {
var color = "map-get($colors-text, base)",
fontSize = "20px",
lineHeight = 1.5;
chassis.typography = {
"normal": {
name: "Font weight - Normal",
value: "normal"
},
"bold": {
name: "Font weight - Bold",
value: "bold"
},
"color": {
name: "Font color",
value: color
},
"font-size": {
name: "Font size",
value: fontSize
},
"line-height": {
name: "Line Height",
value: lineHeight
},
"default": {
name: "Type Style - Default",
value: {
"color": color,
"font-size": fontSize,
"line-height": lineHeight
}
},
"monospace": {
name: "Font Family - Monospace",
value: "\"courier new\", monospace"
},
"serif": {
name: "Font Family - Serif",
value: "Georgia, \"Times New Roman\", Times, serif"
},
"sans": {
name: "Font Family - Sans",
value: "Helvetica, Arial, sans-serif"
},
"link": {
name: "Link",
value: {
"color": "map-get($colors-primary, base)",
"decoration": "none",
"font-weight": "normal"
}
},
"link-hover": {
name: "Link On Mouse Hover",
value: {
"color": "map-get($colors-primary, light)",
"decoration": "underline",
"font-weight": "normal"
}
},
"link-focus": {
name: "Link On Focus or Active",
value: {
"color": "map-get($colors-primary, dark)",
"decoration": "none",
"font-weight": "normal"
}
},
"link-visited": {
name: "Link If Visited",
value: {
"color": "map-get($colors-primary, base)",
"decoration": "none",
"font-weight": "normal"
}
},
"hr": {
name: "HR style",
value: {
"color": "#999",
"thickness": "1px",
"style": "solid"
}
},
"code": {
name: "code style",
value: {
"background": "#f2f2f2",
"border-radius": "3px"
}
},
"pre": {
name: "Pre style",
value: {
"background": "#f7f7f7"
}
},
"h1": {
name: "H1 Style",
value: {
"font-weight": "700",
"font-size": "67px",
"capitalization": "none"
}
},
"h2": {
name: "H2 Style",
value: {
"font-weight": "600",
"font-size": "36px",
"capitalization": "none"
}
},
"h3": {
name: "H3 Style",
value: {
"font-weight": "600",
"font-size": "30px",
"capitalization": "none"
}
},
"h4": {
name: "H4 Style",
value: {
"font-weight": "600",
"font-size": "24px",
"capitalization": "none"
}
},
"h5": {
name: "H5 Style",
value: {
"font-weight": "600",
"font-size": "20px",
"capitalization": "none"
}
},
"h6": {
name: "H6 Style",
value: {
"font-weight": "600",
"font-size": "16px",
"capitalization": "uppercase"
}
},
"blockquote": {
name: "BlockQuote Style",
value: {
"border": "4px solid #eee",
"font-style": "italic",
"padding-left": "1em"
}
}
};
return chassis;
} ) );