|
1 | 1 | $font-family: DM Sans, sans-serif; |
2 | | -$font-weight-light: 300; |
3 | | -$font-weight-normal: 400; |
| 2 | +$font-weight-regular: 400; |
| 3 | +$font-weight-medium: 500; |
4 | 4 | $font-weight-bold: 700; |
5 | 5 | $font-size-base: 0.875rem; |
6 | 6 |
|
7 | 7 | @mixin font-type-10() { |
8 | 8 | font-size: .625rem; |
9 | | - font-weight: $font-weight-normal; |
| 9 | + font-weight: $font-weight-regular; |
10 | 10 | letter-spacing: 0.0625rem; |
11 | 11 | line-height: 0.875rem; |
12 | | - text-transform: uppercase; |
13 | 12 | } |
14 | 13 |
|
15 | 14 | @mixin font-type-20() { |
16 | 15 | font-size: .75rem; |
17 | | - font-weight: $font-weight-normal; |
| 16 | + font-weight: $font-weight-regular; |
18 | 17 | line-height: 1rem; |
19 | 18 | } |
20 | 19 |
|
21 | 20 | @mixin font-type-30() { |
22 | | - font-size: 0.875rem; |
23 | | - font-weight: $font-weight-normal; |
| 21 | + font-size: $font-size-base; |
| 22 | + font-weight: $font-weight-regular; |
24 | 23 | line-height: 1.25rem; |
25 | 24 | } |
26 | 25 |
|
27 | 26 | @mixin font-type-40() { |
28 | | - // font-size: $font-size-base; -- should base be changed to 1 rem? |
29 | 27 | font-size: 1rem; |
30 | | - font-weight: $font-weight-normal; |
| 28 | + font-weight: $font-weight-regular; |
31 | 29 | line-height: 1.375rem; |
32 | 30 | } |
33 | 31 |
|
34 | 32 | @mixin font-type-50() { |
35 | 33 | font-size: 1.125rem; |
36 | | - font-weight: $font-weight-normal; |
| 34 | + font-weight: $font-weight-regular; |
37 | 35 | line-height: 1.5rem; |
38 | 36 | } |
39 | 37 |
|
40 | 38 | @mixin font-type-60() { |
41 | 39 | font-size: 1.25rem; |
42 | | - font-weight: $font-weight-normal; |
| 40 | + font-weight: $font-weight-regular; |
43 | 41 | line-height: 1.625rem; |
44 | 42 | } |
45 | 43 |
|
46 | 44 | @mixin font-type-70() { |
47 | 45 | font-size: 1.5rem; |
48 | | - font-weight: $font-weight-normal; |
| 46 | + font-weight: $font-weight-regular; |
49 | 47 | line-height: 2rem; |
50 | 48 | } |
51 | 49 |
|
52 | | -@mixin font-type-10--bold() { |
| 50 | +@mixin font-type-10--medium() { |
53 | 51 | @include font-type-10; |
54 | | - font-weight: $font-weight-bold; |
| 52 | + font-weight: $font-weight-medium; |
55 | 53 | } |
56 | 54 |
|
57 | | -@mixin font-type-10--light() { |
58 | | - @include font-type-10; |
59 | | - font-weight: $font-weight-light; |
| 55 | +@mixin font-type-20--medium() { |
| 56 | + @include font-type-20; |
| 57 | + font-weight: $font-weight-medium; |
60 | 58 | } |
61 | 59 |
|
62 | | -@mixin font-type-20--bold() { |
63 | | - @include font-type-20; |
| 60 | +@mixin font-type-30--medium() { |
| 61 | + @include font-type-30; |
| 62 | + font-weight: $font-weight-medium; |
| 63 | +} |
| 64 | + |
| 65 | +@mixin font-type-40--medium() { |
| 66 | + @include font-type-40(); |
| 67 | + font-weight: $font-weight-medium; |
| 68 | +} |
| 69 | + |
| 70 | +@mixin font-type-50--medium() { |
| 71 | + @include font-type-50; |
| 72 | + font-weight: $font-weight-medium; |
| 73 | +} |
| 74 | + |
| 75 | +@mixin font-type-60--medium() { |
| 76 | + @include font-type-60(); |
| 77 | + font-weight: $font-weight-medium; |
| 78 | +} |
| 79 | + |
| 80 | +@mixin font-type-70--medium() { |
| 81 | + @include font-type-70; |
| 82 | + font-weight: $font-weight-medium; |
| 83 | +} |
| 84 | + |
| 85 | +@mixin font-type-10--bold() { |
| 86 | + @include font-type-10; |
64 | 87 | font-weight: $font-weight-bold; |
65 | 88 | } |
66 | 89 |
|
67 | | -@mixin font-type-20--light() { |
| 90 | +@mixin font-type-20--bold() { |
68 | 91 | @include font-type-20; |
69 | | - font-weight: $font-weight-light; |
| 92 | + font-weight: $font-weight-bold; |
70 | 93 | } |
71 | 94 |
|
72 | 95 | @mixin font-type-30--bold() { |
73 | 96 | @include font-type-30; |
74 | 97 | font-weight: $font-weight-bold; |
75 | 98 | } |
76 | 99 |
|
77 | | -@mixin font-type-30--light() { |
78 | | - @include font-type-30; |
79 | | - font-weight: $font-weight-light; |
80 | | -} |
81 | | - |
82 | 100 | @mixin font-type-40--bold() { |
83 | 101 | @include font-type-40; |
84 | 102 | font-weight: $font-weight-bold; |
85 | 103 | } |
86 | 104 |
|
87 | | -@mixin font-type-40--light() { |
88 | | - @include font-type-40; |
89 | | - font-weight: $font-weight-light; |
90 | | -} |
91 | | - |
92 | 105 | @mixin font-type-50--bold() { |
93 | 106 | @include font-type-50; |
94 | 107 | font-weight: $font-weight-bold; |
95 | 108 | } |
96 | 109 |
|
97 | | -@mixin font-type-50--light() { |
98 | | - @include font-type-50; |
99 | | - font-weight: $font-weight-light; |
100 | | -} |
101 | | - |
102 | 110 | @mixin font-type-60--bold() { |
103 | 111 | @include font-type-60; |
104 | 112 | font-weight: $font-weight-bold; |
105 | 113 | } |
106 | 114 |
|
107 | | -@mixin font-type-60--light() { |
108 | | - @include font-type-60; |
109 | | - font-weight: $font-weight-light; |
110 | | -} |
111 | | - |
112 | 115 | @mixin font-type-70--bold() { |
113 | 116 | @include font-type-70; |
114 | 117 | font-weight: $font-weight-bold; |
115 | 118 | } |
116 | 119 |
|
117 | | -@mixin font-type-70--light() { |
118 | | - @include font-type-70; |
119 | | - font-weight: $font-weight-light; |
| 120 | +// Uppercase fonts |
| 121 | + |
| 122 | +@mixin font-type-10--uppercase() { |
| 123 | + @include font-type-10; |
| 124 | + text-transform: uppercase; |
| 125 | +} |
| 126 | + |
| 127 | +@mixin font-type-10--bold-uppercase() { |
| 128 | + @include font-type-10--uppercase; |
| 129 | + font-weight: $font-weight-bold; |
| 130 | +} |
| 131 | + |
| 132 | +@mixin font-type-10--medium-uppercase() { |
| 133 | + @include font-type-10--uppercase; |
| 134 | + font-weight: $font-weight-medium |
120 | 135 | } |
0 commit comments