-
Notifications
You must be signed in to change notification settings - Fork 20
/
_typography.scss
117 lines (105 loc) 路 2.65 KB
/
_typography.scss
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
@import "variables";
/* Regular (Sans) Font Sizes
========================================================================== */
// For each size in the $type-sizes variable
// Create class (.type-xxl)
@each $name, $size in $type-sizes {
.type-#{$name} {
font-size: var(--type-#{$name});
}
}
/* Mono Font Sizes
========================================================================== */
.mono {
font-family: var(--font-family-mono);
}
// For each size in the $type-sizes variable
// Create class (.mono.xxl)
@each $name, $size in $type-sizes {
.mono.type-#{$name} {
font-size: calc(var(--type-#{$name}) * 0.95);
}
}
/* Colors
========================================================================== */
// For each color in $colors variable
// Create class (.color-blue-500)
@each $name, $color in $colors {
// add empty string so dart-sass will properly interpret class name from variable
.color-#{"" + $name} {
color: var(--#{$name});
}
}
/* Desktop Styles
========================================================================== */
.style-heading-1 {
font-size: 32px !important;
line-height: 36px !important;
font-weight: 400 !important;
}
.style-heading-2 {
font-size: 20px !important;
line-height: 24px !important;
font-weight: 400 !important;
}
.style-heading-3 {
font-size: 16px !important;
line-height: 24px !important;
font-weight: 400 !important;
}
.style-heading-4 {
font-size: 14px !important;
line-height: 20px !important;
font-weight: 400 !important;
}
.style-body-lg {
font-size: 16px !important;
line-height: 24px !important;
font-weight: 300 !important;
}
.style-body-lg-bold {
font-size: 16px !important;
line-height: 24px !important;
font-weight: 400 !important;
}
.style-body-md {
font-size: 13px !important;
line-height: 20px !important;
font-weight: 400 !important;
}
.style-body-md-bold {
font-size: 13px !important;
line-height: 24px !important;
font-weight: 400 !important;
}
.style-body-sm {
font-size: 12px !important;
line-height: 16px !important;
font-weight: 400 !important;
}
.style-body-sm-bold {
font-size: 12px !important;
line-height: 16px !important;
font-weight: 400 !important;
}
.style-body-tiny {
font-size: 11px !important;
line-height: 16px !important;
font-weight: 300 !important;
}
.style-body-link {
font-size: 13px !important;
line-height: 20px !important;
font-weight: 400 !important;
}
.style-body-bc {
font-size: 12px !important;
line-height: 24px !important;
font-weight: 400 !important;
text-transform: uppercase !important;
}
.style-body-code {
font-size: 13px !important;
line-height: 24px !important;
font-weight: 100 !important;
}