Merge pull request #6 from sct/feature/ch58

Add Inter font for Tailwind UI
pull/7/head
sct 4 years ago committed by GitHub
commit 8db2bfe44f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,35 @@
import React from 'react';
import Document, {
Html,
Head,
Main,
NextScript,
DocumentContext,
DocumentInitialProps,
} from 'next/document';
class MyDocument extends Document {
static async getInitialProps(
ctx: DocumentContext
): Promise<DocumentInitialProps> {
const initialProps = await Document.getInitialProps(ctx);
return initialProps;
}
render(): JSX.Element {
return (
<Html>
<Head>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}
export default MyDocument;

@ -1,8 +1,14 @@
/* eslint-disable */
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
purge: ['./pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}'],
theme: {
extend: {},
extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
},
},
},
variants: {},
plugins: [

Loading…
Cancel
Save