File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -12,31 +12,39 @@ Please see LICENSE files in the repository root for full details.
12
12
* These are defined in `rem` so that they scale with the `font-size` of the root element (which is adjustable via the
13
13
* "Font size" setting). They exist to make the job of converting designs (which tend to be based in pixels) into CSS
14
14
* easier.
15
+ */
16
+
17
+ /*
18
+ * These variables are now *deprecated* and should not be used in new code; instead Compound typographic tokens
19
+ * should be used. Direct equivalents for these old font size tokens are listed below; where no equivalent exists,
20
+ * that suggests that the design is using a non-standard font size and should be updated.
15
21
*
22
+ * In fact, modern Figma designs should actually use a named Typography style such as "Web/font/heading/sm/semibold",
23
+ * translates directly to `font: var(--cpd-font-heading-sm-semibold)`.
16
24
*/
17
25
$font-1px : 0.0625 rem ;
18
26
$font-8px : 0.5 rem ;
19
27
$font-9px : 0.5625 rem ;
20
28
$font-10px : 0.625 rem ;
21
29
$font-10-4px : 0.6275 rem ;
22
- $font-11px : 0.6875 rem ;
30
+ $font-11px : 0.6875 rem ; /* Compound equivalent: --cpd-font-size-body-xs */
23
31
$font-12px : 0.75 rem ;
24
- $font-13px : 0.8125 rem ;
32
+ $font-13px : 0.8125 rem ; /* Compound equivalent: --cpd-font-size-body-sm */
25
33
$font-14px : 0.875 rem ;
26
- $font-15px : 0.9375 rem ;
34
+ $font-15px : 0.9375 rem ; /* Compound equivalent: --cpd-font-size-body-md */
27
35
$font-16px : 1 rem ;
28
- $font-17px : 1.0625 rem ;
36
+ $font-17px : 1.0625 rem ; /* Compound equivalent: --cpd-font-size-body-lg */
29
37
$font-18px : 1.125 rem ;
30
- $font-20px : 1.25 rem ;
38
+ $font-20px : 1.25 rem ; /* Compound equivalent: --cpd-font-size-heading-sm */
31
39
$font-22px : 1.375 rem ;
32
40
$font-23px : 1.4375 rem ;
33
- $font-24px : 1.5 rem ;
41
+ $font-24px : 1.5 rem ; /* Compound equivalent: --cpd-font-size-heading-md */
34
42
$font-25px : 1.5625 rem ;
35
43
$font-26px : 1.625 rem ;
36
- $font-28px : 1.75 rem ;
44
+ $font-28px : 1.75 rem ; /* Compound equivalent: --cpd-font-size-heading-lg */
37
45
$font-29px : 1.8125 rem ;
38
46
$font-30px : 1.875 rem ;
39
- $font-32px : 2 rem ;
47
+ $font-32px : 2 rem ; /* Compound equivalent: --cpd-font-size-heading-xl */
40
48
$font-34px : 2.125 rem ;
41
49
$font-35px : 2.1875 rem ;
42
50
$font-39px : 2.4375 rem ;
You can’t perform that action at this time.
0 commit comments