matrix-art

An image gallery for Matrix
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.git
Log | Files | Refs | README | LICENSE

commit 944bd3e77a9bd1183a4321bb9618329b543baabc
parent a3e3130bca8e5746f55de39aa1ca77817a963df9
Author: MTRNord <mtrnord1@gmail.com>
Date:   Tue, 18 Jan 2022 21:46:31 +0100

Add roboto font

Diffstat:
Apages/_document.tsx | 22++++++++++++++++++++++
Mtailwind.config.js | 8+++++++-
2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/pages/_document.tsx b/pages/_document.tsx @@ -0,0 +1,21 @@ +import Document, { Html, Head, Main, NextScript } from 'next/document'; + +class MyDocument extends Document { + render() { + return ( + <Html> + <Head> + <link rel="preconnect" href="https://fonts.googleapis.com" /> + <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" /> + <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet" /> + </Head> + <body> + <Main /> + <NextScript /> + </body> + </Html> + ); + } +} + +export default MyDocument;; +\ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js @@ -1,7 +1,13 @@ +const defaultTheme = require('tailwindcss/defaultTheme') + module.exports = { content: ["./pages/**/*.{js,ts,jsx,tsx}", "./components/**/*.{js,ts,jsx,tsx}",], theme: { - extend: {}, + extend: { + fontFamily: { + sans: ['Roboto', ...defaultTheme.fontFamily.sans], + }, + }, }, plugins: [], }