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
|
// colors
$color-primary: #8AA2D3 !default; // https://irocore.com/aofuji/
$color-primary-dark: #3B469B !default; // https://irocore.com/aomurasaki/
$color-secondary: #8F82BC !default; // https://irocore.com/fujimurasaki/
$color-mute: #9EA1A3 !default; // https://irocore.com/suzu-iro/
$color-spliter: #E5E2E4 !default; // https://irocore.com/komachinezu/
// spliter css
$spliter: 1px solid $color-spliter;
// custom web fonts
@font-face {
font-family: 'Product Sans';
font-style: normal;
font-weight: 400;
src: local('Product Sans'), local('ProductSans-Regular'),
url('https://cdn.jsdelivr.net/gh/amzrk2/web-font-archive@1.0.0/product-sans/product-sans.woff2') format('woff2');
}
@font-face {
font-family: 'Product Sans';
font-style: normal;
font-weight: 700;
src: local('Product Sans Bold'), local('ProductSans-Bold'),
url('https://cdn.jsdelivr.net/gh/amzrk2/web-font-archive@1.0.0/product-sans/product-sans-bold.woff2') format('woff2');
}
@font-face {
font-family: 'Cascadia Code';
font-style: normal;
font-weight: 400;
src: local('Cascadia Code'), local('Cascadia Mono'),
url('https://cdn.jsdelivr.net/gh/amzrk2/web-font-archive@1.0.0/cascadia-code/cascadia.woff2') format('woff2'),
}
// adjust weight to use with Product Sans
@font-face {
font-family: 'PingFang SC Web';
font-style: normal;
font-weight: 400;
src: local('PingFang SC Medium'),
/* Modern Browsers */
url('https://cdn.jsdelivr.net/gh/amzrk2/web-font-archive@1.0.0/pingfang/pingfang-medium.woff2') format('woff2'),
}
$font-pdsans: 'Product Sans', -apple-system, BlinkMacSystemFont, Arial, monospace;
$font-normal: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Source Han Sans SC', 'Source Han Sans CN', 'Source Han Sans', 'Microsoft YaHei', sans-serif;
// font size list
$font-size-logo: 2.5em; // Logo Only
$font-size-l1: 1.75em; // Primer CSS H1
$font-size-l2: 1.5em; // Primer CSS H2
$font-size-l3: 1.25em; // Primer CSS H3
$font-size-l4: 1em; // Primer CSS H4 & Normal Text
// link color mixin
@mixin link-primary {
a {
color: $color-primary;
}
a:hover {
color: $color-secondary;
text-decoration: none;
}
}
@mixin link-secondary {
a {
color: $color-secondary;
}
a:hover {
color: $color-primary-dark;
text-decoration: none;
}
}
// title css which also used in 404
@mixin pdsans-title {
font-family: $font-pdsans;
font-weight: 700;
font-display: swap;
font-size: $font-size-logo;
white-space: nowrap;
display: block;
color: $color-primary;
}
|