mirror of
https://github.com/supabase/supabase.git
synced 2026-09-09 19:42:46 +08:00
Update studio fonts: - Headings: Manrope - Sans-serif: Inter Slightly reduced font-sizes by 1px (or 2 for bigger font-sizes) and increased base html font-weight to 450 for better rendering and legibility.
45 lines
1.0 KiB
TypeScript
45 lines
1.0 KiB
TypeScript
import { Manrope } from 'next/font/google'
|
|
import localFont from 'next/font/local'
|
|
|
|
export const manrope = Manrope({
|
|
variable: '--font-manrope',
|
|
display: 'swap',
|
|
subsets: ['latin'],
|
|
})
|
|
|
|
export const inter = localFont({
|
|
variable: '--font-inter',
|
|
display: 'swap',
|
|
fallback: ['system-ui', 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'],
|
|
src: [
|
|
{
|
|
path: './inter/InterVariable.woff2',
|
|
weight: '100 900',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: './inter/InterVariable-Italic.woff2',
|
|
weight: '100 900',
|
|
style: 'italic',
|
|
},
|
|
],
|
|
})
|
|
|
|
export const sourceCodePro = localFont({
|
|
variable: '--font-source-code-pro',
|
|
display: 'swap',
|
|
fallback: ['Source Code Pro', 'Office Code Pro', 'Menlo', 'monospace'],
|
|
src: [
|
|
{
|
|
path: './source-code-pro/SourceCodePro-Variable.woff2',
|
|
weight: '200 900',
|
|
style: 'normal',
|
|
},
|
|
{
|
|
path: './source-code-pro/SourceCodePro-Variable-Italic.woff2',
|
|
weight: '200 900',
|
|
style: 'italic',
|
|
},
|
|
],
|
|
})
|