-
Notifications
You must be signed in to change notification settings - Fork 0
/
_mixins.scss
31 lines (29 loc) · 1.04 KB
/
_mixins.scss
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
@use "sass:map";
@use "./tokens";
@mixin export {
:root {
// フォールバックを目的に指定するfont familyの値はFlavorで指定しているためlintの対象から除外する
/* stylelint-disable font-family-no-missing-generic-family-keyword, font-family-no-duplicate-names */
font-family: #{map.get(
map.get(map.get(tokens.$tokens, typography), font-family),
sans-latin
)},
#{map.get(
map.get(map.get(tokens.$tokens, typography), font-family),
sans-japanese
)},
#{map.get(map.get(map.get(tokens.$tokens, typography), font-family), ui)},
sans-serif;
/* stylelint-enable font-family-no-missing-generic-family-keyword, font-family-no-duplicate-names */
}
}
@mixin icon-font($base-url: "@pepabo-inhouse/icon/dist") {
@font-face {
font-weight: 400;
font-family: "Inhouse Icons";
font-style: normal;
src:
url($base-url + "/inhouse-icons.woff2") format("woff2"),
url($base-url + "/inhouse-icons.woff") format("woff");
}
}