Add Inter font style

This commit is contained in:
jeffvli 2023-07-18 17:38:41 -07:00
parent 179129b7cb
commit b8dfbf9d49
5 changed files with 13 additions and 1 deletions

View File

@ -11,6 +11,7 @@ const localSettings = isElectron() ? window.electron.localSettings : null;
const FONT_OPTIONS = [
{ label: 'Archivo', value: 'Archivo' },
{ label: 'Fredoka', value: 'Fredoka' },
{ label: 'Inter', value: 'Inter' },
{ label: 'League Spartan', value: 'League Spartan' },
{ label: 'Lexend', value: 'Lexend' },
{ label: 'Poppins', value: 'Poppins' },

Binary file not shown.

View File

@ -186,7 +186,7 @@ const initialState: SettingsState = {
general: {
defaultFullPlaylist: true,
followSystemTheme: false,
fontContent: 'Poppins',
fontContent: 'Inter',
playButtonBehavior: Play.NOW,
resume: false,
showQueueDrawerButton: false,

View File

@ -26,3 +26,8 @@ export const fontEpilogue = (weight?: number) => css`
font-weight: ${weight || 400};
font-family: Epilogue, sans-serif;
`;
export const fontRoboto = (weight?: number) => css`
font-weight: ${weight || 400};
font-family: Roboto, sans-serif;
`;

View File

@ -142,6 +142,12 @@ button {
font-weight: 100 1000;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/Inter-VariableFont_slnt,wght.ttf') format('truetype-variations');
font-weight: 100 1000;
}
@font-face {
font-family: 'Sora';
src: url('../fonts/Sora-VariableFont_wght.ttf') format('truetype-variations');