Replace all non code fonts with Atkinson Hyperlegible
This commit is contained in:
parent
5cfb0e525b
commit
8b3f4a88c1
@ -19,6 +19,10 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
--c-thp: #f472b6;
|
--c-thp: #f472b6;
|
||||||
|
|
||||||
|
--font-display: 'Atkinson Hyperlegible', sans-serif;
|
||||||
|
--font-body: 'Atkinson Hyperlegible', sans-serif;
|
||||||
|
--font-code: "Iosevka Fixed Web", "Iosevka Nerd Font", Iosevka, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@ -64,7 +68,7 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Inter, 'Fira Sans', Inter, sans-serif;
|
font-family: var(--font-body);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
@media only screen and (max-width: 600px) {
|
||||||
@ -75,7 +79,7 @@ body {
|
|||||||
|
|
||||||
pre,
|
pre,
|
||||||
code {
|
code {
|
||||||
font-family: "Iosevka Fixed Web", "Iosevka Nerd Font", Iosevka, monospace;
|
font-family: var(--font-code);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-effect-receiver {
|
.button-effect-receiver {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
line-height: 2.5rem;
|
line-height: 2.5rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
font-family: Outfit, Inter, sans-serif;
|
font-family: var(--font-display);
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--c-text-2);
|
color: var(--c-text-2);
|
||||||
@ -16,7 +16,7 @@
|
|||||||
line-height: 2rem;
|
line-height: 2rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
margin-top: 2.5rem;
|
margin-top: 2.5rem;
|
||||||
font-family: Outfit, Inter, sans-serif;
|
font-family: var(--font-display);
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--c-text-2);
|
color: var(--c-text-2);
|
||||||
@ -36,7 +36,7 @@
|
|||||||
line-height: 1.75rem;
|
line-height: 1.75rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
margin-top: 1.75rem;
|
margin-top: 1.75rem;
|
||||||
font-family: Outfit, Inter, sans-serif;
|
font-family: var(--font-display);
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: var(--c-text-2);
|
color: var(--c-text-2);
|
||||||
|
@ -24,7 +24,7 @@ const { title } = Astro.props;
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Outfit:wght@100..900&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
|
@ -77,7 +77,7 @@ for (const entry of pagesIndex) {
|
|||||||
<BaseLayout title={frontmatter.title}>
|
<BaseLayout title={frontmatter.title}>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
|
|
||||||
<div class="lg:grid lg:grid-cols-[14rem_auto_12rem] lg:container mx-auto">
|
<div class="lg:grid lg:grid-cols-[14rem_auto_12rem] lg:container mx-auto font-display">
|
||||||
<div
|
<div
|
||||||
id="sidebar"
|
id="sidebar"
|
||||||
class="pt-12 h-screen lg:sticky top-0 fixed z-10 bg-c-bg w-60 lg:w-auto border-r-2 lg:border-0
|
class="pt-12 h-screen lg:sticky top-0 fixed z-10 bg-c-bg w-60 lg:w-auto border-r-2 lg:border-0
|
||||||
|
@ -48,6 +48,13 @@ Int year_of_birth = 1984
|
|||||||
|
|
||||||
This means that if a variable only has a datatype, it is immutable.
|
This means that if a variable only has a datatype, it is immutable.
|
||||||
|
|
||||||
|
It is a compile error to declare a variable of a datatype,
|
||||||
|
but use another.
|
||||||
|
|
||||||
|
<Code thpcode={`
|
||||||
|
// Declare the variable as a String, but use a Float as its value
|
||||||
|
String capital = 123.456
|
||||||
|
`} />
|
||||||
|
|
||||||
|
|
||||||
## Mutable variables
|
## Mutable variables
|
||||||
|
@ -20,9 +20,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
"mono": ["'Iosevka Fixed Web'", "Iosevka", "'Iosevka Nerd Font'", "monospace"],
|
"mono": "var(--font-code)",
|
||||||
"display": ["Outfit", "Inter", "sans-serif"],
|
"display": "var(--font-display)",
|
||||||
"body": ["Inter", "sans-serif"],
|
"body": "var(--font-body)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
corePlugins: {
|
corePlugins: {
|
||||||
|
Loading…
Reference in New Issue
Block a user