Zelda64Recomp/assets/scss/styles/mixins/_typography.scss

84 lines
1.5 KiB
SCSS
Raw Normal View History

2024-01-02 16:10:06 +01:00
2024-01-18 21:49:29 +01:00
$font-stack: chiaro;
@mixin set-font-sizing($sz, $spacing) {
2024-01-18 21:49:29 +01:00
// font-family: $font-stack;
2024-03-03 21:57:19 +01:00
$sz-add: $sz + 4;
font-size: space($sz-add);
letter-spacing: space($sz-add * $spacing);
line-height: space($sz-add);
}
2024-01-02 16:10:06 +01:00
%header-1 {
@include set-font-sizing(64, 0.07);
2024-01-02 16:10:06 +01:00
font-style: normal;
font-weight: 700;
}
%header-2 {
@include set-font-sizing(48, 0.07);
2024-01-02 16:10:06 +01:00
font-style: normal;
font-weight: 700;
}
%header-3 {
@include set-font-sizing(32, 0.07);
2024-01-02 16:10:06 +01:00
font-style: normal;
font-weight: 700;
}
%label-lg {
@include set-font-sizing(32, 0.11);
2024-01-02 16:10:06 +01:00
font-style: normal;
font-weight: 700;
}
%label-md {
@include set-font-sizing(24, 0.11);
2024-01-02 16:10:06 +01:00
font-style: normal;
font-weight: 700;
}
%label-sm {
@include set-font-sizing(16, 0.14);
2024-01-02 16:10:06 +01:00
font-style: normal;
font-weight: 700;
text-transform: uppercase;
}
2024-03-28 23:18:10 +01:00
%label-xs {
@include set-font-sizing(14, 0.14);
font-style: normal;
font-weight: 400;
}
2024-01-02 16:10:06 +01:00
%body {
@include set-font-sizing(16, 0.0);
2024-01-02 16:10:06 +01:00
font-style: normal;
font-weight: 400;
}
2024-01-18 21:49:29 +01:00
%prompt-font-lg {
font-family: promptfont;
font-size: space(56);
font-style: normal;
font-weight: 400;
line-height: space(56);
}
2024-01-18 21:49:29 +01:00
%prompt-font {
font-family: promptfont;
font-size: space(40);
2024-01-18 21:49:29 +01:00
font-style: normal;
font-weight: 400;
line-height: space(40);
}
2024-01-22 17:43:21 +01:00
%prompt-font-sm {
font-family: promptfont;
font-size: space(32);
2024-01-22 17:43:21 +01:00
font-style: normal;
font-weight: 400;
line-height: space(32);
}