Skip to content

Commit

Permalink
Load Source Sans Pro via Font Source
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Apr 30, 2021
1 parent 5534db4 commit 51d40fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions components/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ const Meta = () => {
key="ogdescription"
content={siteDescription}
/>

<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,700;1,400&display=swap"
rel="stylesheet"
/>
</Head>
);
};
Expand Down
8 changes: 8 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ import PropTypes from 'prop-types';
import getConfig from 'next/config';
import { ThemeProvider } from 'next-themes';

// Icons from Font Awesome
import { library } from '@fortawesome/fontawesome-svg-core';
import { faAngleDown } from '@fortawesome/free-solid-svg-icons';
import '@fortawesome/fontawesome-svg-core/styles.css';

// Source Sans Pro Font from Font Source
import '@fontsource/source-sans-pro/400.css';
import '@fontsource/source-sans-pro/400-italic.css';
import '@fontsource/source-sans-pro/700.css';

// Global CSS
import 'normalize.css';
import '@lsst-sqre/rubin-style-dictionary/dist/tokens.css';
import '@lsst-sqre/rubin-style-dictionary/dist/tokens.dark.css';
import '../styles/globals.css';

import { useLogin } from '../hooks/login';
import Page from '../components/page';

Expand Down

0 comments on commit 51d40fc

Please sign in to comment.