summaryrefslogtreecommitdiffstats
path: root/assets/_var.scss
blob: 2a053d729646b614a08f70a57a9105c0556b3ecf (plain) (blame)
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
$font-size-0: 2rem !default; // 16px->32px
$font-size-1: 1.75rem !default; // 16px->28px #
$font-size-2: 1.5rem !default; // 16px->24px ##
$font-size-3: 1.25rem !default; // 16px->20px ###
$font-size-4: 1rem !default; // 16px->16px ####

// used primer variables
// @primer/css/support/variables/misc.scss
$font-weight-bold: 600;
$font-weight-semibold: 600;
$font-weight-normal: 400;
$font-weight-light: 400;
$body-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', 'PingFang SC',
    'Hiragino Sans GB', 'Source Han Sans CN', 'Source Han Sans SC', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif !default;
$mono-font: 'Cascadia Code', 'SF Mono', 'Fira Code', 'Consolas', $body-font !default;
$body-font-size: 16px !default;

@font-face {
    font-family: "Product Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local("Product Sans Bold"), local("ProductSans-Bold"),
        url("https://cdn.jsdelivr.net/gh/amzrk2/web-font-archive@1.4.2/product-sans/product-sans-bold.woff2") format("woff2");
    unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Cascadia Code";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local("Cascadia Code Regular"),
        url("https://cdn.jsdelivr.net/gh/amzrk2/web-font-archive@1.4.2/cascadia-code/cascadia.woff2") format("woff2");
}