UNPKG

1.12 kBSCSSView Raw
1@import '../dialogs/dialog-theme';
2@import '../json-formatter/json-formatter-theme';
3@import '../message/message-theme';
4
5@function td-typography-config(
6 $font-family: '"Inter", sans-serif',
7 $headline: td-typography-level(24px, 32px, 400),
8 $title: td-typography-level(20px, 32px, 500),
9 $subheading-2: td-typography-level(16px, 28px, 400),
10 $subheading-1: td-typography-level(15px, 24px, 400),
11 $body-2: td-typography-level(14px, 24px, 500),
12 $body-1: td-typography-level(14px, 20px, 400),
13 $caption: td-typography-level(12px, 20px, 400)
14) {
15 @return (
16 font-family: $font-family,
17 headline: $headline,
18 title: $title,
19 subheading-2: $subheading-2,
20 subheading-1: $subheading-1,
21 body-2: $body-2,
22 body-1: $body-1,
23 caption: $caption
24 );
25}
26
27@mixin td-typography($config: null) {
28 @if $config == null {
29 $config: td-typography-config();
30 }
31
32 body {
33 font-family: td-font-family($config);
34 }
35 @include td-dialog-typography($config);
36 @include td-json-formatter-typography($config);
37 @include td-message-typography($config);
38 @include td-layout-typography($config);
39}