First commit
This commit is contained in:
19
frontend/app/assets/css/_fonts.scss
Normal file
19
frontend/app/assets/css/_fonts.scss
Normal file
@@ -0,0 +1,19 @@
|
||||
// ---------- Fonts: Computer Modern (CMU) ----------
|
||||
// CMU ships only two weights, so we map the design's intermediate
|
||||
// weights onto real faces: <=550 → regular, >550 → bold extended.
|
||||
$cmu-faces: (
|
||||
('cmunrm', 100 550, normal),
|
||||
('cmunti', 100 550, italic),
|
||||
('cmunbx', 551 900, normal),
|
||||
('cmunbi', 551 900, italic),
|
||||
);
|
||||
|
||||
@each $file, $weight, $style in $cmu-faces {
|
||||
@font-face {
|
||||
font-family: 'Computer Modern';
|
||||
src: url('/fonts/#{$file}.ttf') format('truetype');
|
||||
font-weight: $weight;
|
||||
font-style: $style;
|
||||
font-display: swap;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user