diff --git a/src/assets/fonts/medeo/MedeoSansVariable-Italic.woff2 b/src/assets/fonts/medeo/MedeoSansVariable-Italic.woff2 new file mode 100644 index 0000000..7d7ec6d Binary files /dev/null and b/src/assets/fonts/medeo/MedeoSansVariable-Italic.woff2 differ diff --git a/src/assets/fonts/medeo/MedeoSansVariable.woff2 b/src/assets/fonts/medeo/MedeoSansVariable.woff2 new file mode 100644 index 0000000..7d79031 Binary files /dev/null and b/src/assets/fonts/medeo/MedeoSansVariable.woff2 differ diff --git a/src/assets/fonts/medeo/OFL.txt b/src/assets/fonts/medeo/OFL.txt new file mode 100644 index 0000000..7daeb11 --- /dev/null +++ b/src/assets/fonts/medeo/OFL.txt @@ -0,0 +1,98 @@ +Copyright 2026 The Medeo Project Authors (https://github.com/DNFDEVS/medeo-font) +Copyright 2024-2026 The Geist Project Authors (https://github.com/vercel/geist-font) +Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) +Copyright (c) 2010, ParaType Ltd. (http://www.paratype.com/public), +with Reserved Font Names "PT Sans", "PT Serif" and "ParaType". +Copyright 2012 Google Inc. (Noto Serif Display) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/src/assets/fonts/medeo/README.md b/src/assets/fonts/medeo/README.md new file mode 100644 index 0000000..e35210f --- /dev/null +++ b/src/assets/fonts/medeo/README.md @@ -0,0 +1,8 @@ +# Medeo Sans + +Local copy of the Medeo Sans variable web fonts used as Blink's default UI font. + +- Source: https://github.com/DNFDEVS/medeo-font +- Version: 1.1.0 (font version 1.100) +- Files: `MedeoSansVariable.woff2`, `MedeoSansVariable-Italic.woff2` +- License: SIL Open Font License 1.1, see `OFL.txt` diff --git a/src/components/filtersDialog/index.tsx b/src/components/filtersDialog/index.tsx index 03a12e2..61175b7 100644 --- a/src/components/filtersDialog/index.tsx +++ b/src/components/filtersDialog/index.tsx @@ -521,7 +521,7 @@ export const FiltersDialogTrigger: React.FC = () => { borderRadius: 8, lineHeight: 1, padding: "2px 4px", - fontFamily: "Plus Jakarta Sans Variable", + fontFamily: "Medeo Sans", }} > {activeCount} diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 6149a11..baa37ee 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -14,7 +14,6 @@ import { theme } from "@/theme"; // Fonts import "@fontsource-variable/jetbrains-mono"; import "@fontsource-variable/noto-sans"; -import "@fontsource-variable/plus-jakarta-sans"; import "material-symbols/rounded.scss"; import type { Api, Jellyfin } from "@jellyfin/sdk"; diff --git a/src/routes/_api/home/home.scss b/src/routes/_api/home/home.scss index ed25ac3..d0e0595 100644 --- a/src/routes/_api/home/home.scss +++ b/src/routes/_api/home/home.scss @@ -63,7 +63,7 @@ body.has-player-bar .home-cinema { display: flex; align-items: center; gap: 0.5rem; - font-family: "Caveat Variable", "Caveat", cursive; + font-family: "Medeo Sans", system-ui, sans-serif; font-size: 2.55rem; font-weight: 700; font-style: normal; diff --git a/src/routes/_api/home/homeHeader.tsx b/src/routes/_api/home/homeHeader.tsx index 0992aac..c8e72d3 100644 --- a/src/routes/_api/home/homeHeader.tsx +++ b/src/routes/_api/home/homeHeader.tsx @@ -1,4 +1,3 @@ -import "@fontsource-variable/caveat"; import IconButton from "@mui/material/IconButton"; import type { BaseItemDto } from "@jellyfin/sdk/lib/generated-client"; import { useNavigate } from "@tanstack/react-router"; diff --git a/src/routes/_api/remote.scss b/src/routes/_api/remote.scss index 0c3b09b..9907c2c 100644 --- a/src/routes/_api/remote.scss +++ b/src/routes/_api/remote.scss @@ -25,7 +25,7 @@ var(--remote-base, #1b0f2e), var(--remote-deep, #08001f) ); - font-family: "Plus Jakarta Sans Variable", "Segoe UI", "Inter", Arial, + font-family: "Medeo Sans", "Segoe UI", "Inter", Arial, sans-serif; } diff --git a/src/routes/_api/settings.scss b/src/routes/_api/settings.scss index 5ecf2ec..a938c03 100644 --- a/src/routes/_api/settings.scss +++ b/src/routes/_api/settings.scss @@ -264,12 +264,22 @@ flex-wrap: wrap; overflow: visible; row-gap: 0.25em; + scrollbar-width: none; + + &::-webkit-scrollbar { + display: none; + } } .settings-sidebar-list { flex-wrap: nowrap; overflow-x: auto; width: auto; + scrollbar-width: none; + + &::-webkit-scrollbar { + display: none; + } } .settings-sidebar-list-item { @@ -326,7 +336,7 @@ } .settings-form .settings-option:has(.MuiTextField-root) { - flex-direction: column; + flex-direction: column-reverse; align-items: stretch !important; gap: 0.45em; diff --git a/src/styles/global.scss b/src/styles/global.scss index 52304d0..b34a935 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -1,3 +1,19 @@ +@font-face { + font-family: "Medeo Sans"; + src: url("../assets/fonts/medeo/MedeoSansVariable.woff2") format("woff2"); + font-weight: 100 900; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: "Medeo Sans"; + src: url("../assets/fonts/medeo/MedeoSansVariable-Italic.woff2") format("woff2"); + font-weight: 100 900; + font-style: italic; + font-display: swap; +} + ::-webkit-scrollbar { width: 14px; background: $clr-background-dark; @@ -45,7 +61,8 @@ html.is-resizing *::after { } body { - font-family: "Plus Jakarta Sans Variable",system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + font-family: "Medeo Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + font-optical-sizing: auto; background: $clr-background-default; margin: 0; padding: 0; diff --git a/src/theme.ts b/src/theme.ts index 0b771c0..082beb3 100644 --- a/src/theme.ts +++ b/src/theme.ts @@ -32,7 +32,8 @@ export const theme = createTheme({ mode: "dark", }, typography: { - fontFamily: "Plus Jakarta Sans Variable", + fontFamily: + '"Medeo Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif', }, components: { MuiButton: {