Skip to content

Commit

Permalink
Changed web font (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
csansoon authored Jul 16, 2024
1 parent fe7fea7 commit 3d6f249
Show file tree
Hide file tree
Showing 17 changed files with 128 additions and 11 deletions.
139 changes: 128 additions & 11 deletions apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,141 @@
import { ReactNode } from 'react'

import type { Metadata } from 'next'
import { IBM_Plex_Mono } from 'next/font/google'

import '@latitude-data/web-ui/styles.css'

import { ToastProvider } from '@latitude-data/web-ui'
import localFont from 'next/font/local'

const fontSans = IBM_Plex_Mono({
subsets: ['latin'],
weight: ['400', '500', '600', '700'],
style: ['normal'],
display: 'swap',
const fontSans = localFont({
src: [
{
path: '../assets/fonts/IBMPlexMono-ExtraLight.ttf',
weight: '200',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-ExtraLightItalic.ttf',
weight: '200',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-Light.ttf',
weight: '300',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-LightItalic.ttf',
weight: '300',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-Regular.ttf',
weight: '400',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-Italic.ttf',
weight: '400',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-Medium.ttf',
weight: '500',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-MediumItalic.ttf',
weight: '500',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-SemiBold.ttf',
weight: '600',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-SemiBoldItalic.ttf',
weight: '600',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-Bold.ttf',
weight: '700',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-BoldItalic.ttf',
weight: '700',
style: 'italic',
},
],
variable: '--font-sans',
})
const fontMono = IBM_Plex_Mono({
subsets: ['latin'],
weight: ['400', '500', '600', '700'],
style: ['normal'],
display: 'swap',

const fontMono = localFont({
src: [
{
path: '../assets/fonts/IBMPlexMono-ExtraLight.ttf',
weight: '200',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-ExtraLightItalic.ttf',
weight: '200',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-Light.ttf',
weight: '300',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-LightItalic.ttf',
weight: '300',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-Regular.ttf',
weight: '400',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-Italic.ttf',
weight: '400',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-Medium.ttf',
weight: '500',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-MediumItalic.ttf',
weight: '500',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-SemiBold.ttf',
weight: '600',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-SemiBoldItalic.ttf',
weight: '600',
style: 'italic',
},
{
path: '../assets/fonts/IBMPlexMono-Bold.ttf',
weight: '700',
style: 'normal',
},
{
path: '../assets/fonts/IBMPlexMono-BoldItalic.ttf',
weight: '700',
style: 'italic',
},
],
variable: '--font-mono',
})

Expand Down
Binary file removed apps/web/src/assets/fonts/GeistMonoVF.woff
Binary file not shown.
Binary file removed apps/web/src/assets/fonts/GeistVF.woff
Binary file not shown.
Binary file added apps/web/src/assets/fonts/IBMPlexMono-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added apps/web/src/assets/fonts/IBMPlexMono-Italic.ttf
Binary file not shown.
Binary file added apps/web/src/assets/fonts/IBMPlexMono-Light.ttf
Binary file not shown.
Binary file not shown.
Binary file added apps/web/src/assets/fonts/IBMPlexMono-Medium.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added apps/web/src/assets/fonts/IBMPlexMono-Thin.ttf
Binary file not shown.
Binary file not shown.

0 comments on commit 3d6f249

Please sign in to comment.