💄 style: set Cascadia Code as code font
Modifies the markdown file to showcase the font's ligatures.
This commit is contained in:
parent
e387f792c3
commit
d412eae7df
@ -9,7 +9,13 @@ tags = ["markdown", "test"]
|
|||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("Hello World");
|
let number: u8 = 4;
|
||||||
|
|
||||||
|
match number {
|
||||||
|
i if i == 0 => println!("Zero"),
|
||||||
|
i if i > 0 => println!("Greater than zero")
|
||||||
|
i if i <= 0 => println!("Smaller or equal to zero"),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
## Quote
|
## Quote
|
||||||
|
@ -12,6 +12,13 @@
|
|||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
/* Copyright 2019 - Present, Microsoft Corporation, with Reserved Font Name 'Cascadia Code'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
|
||||||
|
font-family: 'Cascadia Code';
|
||||||
|
src: url('fonts/CascadiaCode.ttf');
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
@import 'parts/_archive.scss';
|
@import 'parts/_archive.scss';
|
||||||
@import 'parts/_cards.scss';
|
@import 'parts/_cards.scss';
|
||||||
@import 'parts/_code.scss';
|
@import 'parts/_code.scss';
|
||||||
@ -32,6 +39,8 @@
|
|||||||
font-family: 'Inter', Arial, Helvetica, sans-serif;
|
font-family: 'Inter', Arial, Helvetica, sans-serif;
|
||||||
line-height: 190%;
|
line-height: 190%;
|
||||||
|
|
||||||
|
--code-font: 'Cascadia Code';
|
||||||
|
|
||||||
--bg-0: #fff;
|
--bg-0: #fff;
|
||||||
--bg-1: #e7e7e7;
|
--bg-1: #e7e7e7;
|
||||||
--bg-2: #fefefe;
|
--bg-2: #fefefe;
|
||||||
|
BIN
static/fonts/CascadiaCode.ttf
Normal file
BIN
static/fonts/CascadiaCode.ttf
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user