style: added Inter font for use with Tailwind UI

pull/6/head
sct 4 years ago
parent 46eec85264
commit c6474558f1

@ -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 */ /* eslint-disable */
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = { module.exports = {
purge: ['./pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}'], purge: ['./pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}'],
theme: { theme: {
extend: {}, extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
},
},
}, },
variants: {}, variants: {},
plugins: [ plugins: [

Loading…
Cancel
Save