feat(font): use Medeo Mono for code and stats
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Bundle the Medeo Mono variable webfonts and replace the remaining monospace fallbacks so every text style belongs to the Medeo family.
This commit is contained in:
1 parent
ed91735b2b
commit
ae1f312e84
10 files changed
+30
-10
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -1,8 +1,9 @@
|
||||
# Medeo Sans
|
||||
# Medeo
|
||||
|
||||
Local copy of the Medeo Sans variable web fonts used as Blink's default UI font.
|
||||
Local copy of the Medeo variable web fonts used throughout Blink.
|
||||
|
||||
- Source: https://github.com/DNFDEVS/medeo-font
|
||||
- Version: 1.1.0 (font version 1.100)
|
||||
- Files: `MedeoSansVariable.woff2`, `MedeoSansVariable-Italic.woff2`
|
||||
- Sans: `MedeoSansVariable.woff2`, `MedeoSansVariable-Italic.woff2`
|
||||
- Mono: `MedeoMonoVariable.woff2`, `MedeoMonoVariable-Italic.woff2`
|
||||
- License: SIL Open Font License 1.1, see `OFL.txt`
|
||||
@@ -60,7 +60,7 @@ export const ErrorNotice = ({ error }: { error?: unknown }) => {
|
||||
}}
|
||||
sx={{
|
||||
color: "grey.400",
|
||||
fontFamily: "JetBrains Mono Variable",
|
||||
fontFamily: '"Medeo Mono", monospace',
|
||||
}}
|
||||
>
|
||||
{normalizedError
|
||||
|
||||
@@ -23,12 +23,12 @@ const StatRow = ({
|
||||
pb: 0.5,
|
||||
}}
|
||||
>
|
||||
<Typography variant="body2" sx={{ opacity: 0.7, fontFamily: "monospace" }}>
|
||||
<Typography variant="body2" sx={{ opacity: 0.7, fontFamily: '"Medeo Mono", monospace' }}>
|
||||
{label}
|
||||
</Typography>
|
||||
<Typography
|
||||
variant="body2"
|
||||
sx={{ fontFamily: "monospace", fontWeight: 600 }}
|
||||
sx={{ fontFamily: '"Medeo Mono", monospace', fontWeight: 600 }}
|
||||
>
|
||||
{value || "-"}
|
||||
</Typography>
|
||||
|
||||
@@ -98,7 +98,7 @@ const StatsForNerds = ({ playerRef }: StatsForNerdsProps) => {
|
||||
zIndex: 100,
|
||||
maxWidth: "400px",
|
||||
fontSize: "0.8rem",
|
||||
fontFamily: "monospace",
|
||||
fontFamily: '"Medeo Mono", monospace',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
|
||||
@@ -79,7 +79,7 @@ const ShareDialog = () => {
|
||||
py: 1,
|
||||
borderRadius: "10px",
|
||||
background: "rgba(255,255,255,0.06)",
|
||||
fontFamily: "var(--font-mono, monospace)",
|
||||
fontFamily: "var(--font-mono)",
|
||||
fontSize: "0.78rem",
|
||||
wordBreak: "break-all",
|
||||
userSelect: "all",
|
||||
|
||||
@@ -12,7 +12,6 @@ import "../styles/global.scss";
|
||||
import { theme } from "@/theme";
|
||||
|
||||
// Fonts
|
||||
import "@fontsource-variable/jetbrains-mono";
|
||||
import "@fontsource-variable/noto-sans";
|
||||
|
||||
import "material-symbols/rounded.scss";
|
||||
|
||||
@@ -230,7 +230,7 @@ function ChangeServerRoute() {
|
||||
sx={{
|
||||
color: "text.secondary",
|
||||
opacity: 0.6,
|
||||
fontFamily: "monospace",
|
||||
fontFamily: '"Medeo Mono", monospace',
|
||||
fontSize: "0.85rem",
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -14,6 +14,26 @@
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Medeo Mono";
|
||||
src: url("../assets/fonts/medeo/MedeoMonoVariable.woff2") format("woff2");
|
||||
font-weight: 100 900;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Medeo Mono";
|
||||
src: url("../assets/fonts/medeo/MedeoMonoVariable-Italic.woff2") format("woff2");
|
||||
font-weight: 100 900;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-mono: "Medeo Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 14px;
|
||||
background: $clr-background-dark;
|
||||
|
||||
Reference in new issue
Block a user