mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-20 19:40:52 -05:00
reorganize style and font configs
This commit is contained in:
@@ -7,7 +7,7 @@ import { ThemeProvider } from "../contexts/ThemeContext";
|
||||
import Layout from "../components/Layout";
|
||||
import * as config from "../lib/config";
|
||||
import { defaultSeo, socialProfileJsonLd } from "../lib/config/seo";
|
||||
import { themeClassNames } from "../lib/styles/helpers/themes";
|
||||
import { themeClassNames } from "../lib/config/themes";
|
||||
import { globalStyles } from "../lib/styles/stitches.config";
|
||||
import type { AppProps as NextAppProps } from "next/app";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Html, Head, Main, NextScript } from "next/document";
|
||||
import ThemeScript from "../components/ThemeScript/ThemeScript";
|
||||
import { getCssText, fonts } from "../lib/styles/stitches.config";
|
||||
import { getCssText, preloadUrls } from "../lib/styles/stitches.config";
|
||||
import * as config from "../lib/config";
|
||||
|
||||
// https://nextjs.org/docs/advanced-features/custom-document
|
||||
@@ -12,7 +12,7 @@ const Document = () => {
|
||||
<ThemeScript />
|
||||
|
||||
{/* preload highest priority fonts defined in ../lib/styles/fonts/ */}
|
||||
{fonts.preloadUrls.map((relativeUrl, index) => (
|
||||
{preloadUrls.map((relativeUrl, index) => (
|
||||
<link
|
||||
key={`font-${index}`}
|
||||
rel="preload"
|
||||
|
||||
Reference in New Issue
Block a user