Skip to content

Commit 318f837

Browse files
committed
Revert "Use styled-jsx for amp support"
This reverts commit d2637fa.
1 parent d2637fa commit 318f837

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

pages/_app.js

-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import Layout from '~/components/layout/app'
77
import DataContext from '~/lib/data-context'
88

99
import baseTheme from '../styles/themes/base'
10-
import fontTheme from '../styles/themes/font'
1110
import withTypeStyles from '../styles/with-type'
1211
import nprogressStyles from '../styles/nprogress'
1312

@@ -44,9 +43,6 @@ function MyApp({ Component, pageProps }) {
4443
</Head>
4544
<Layout data={data}>
4645
<Component {...pageProps} />
47-
<style jsx global>
48-
{fontTheme}
49-
</style>
5046
<style jsx global>
5147
{baseTheme}
5248
</style>

styles/global.css

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@import './themes/base.css';
2+
@import './nprogress.css';
3+
@import './with-type.css';

styles/themes/font.js renamed to styles/themes/font.css

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import css from 'styled-jsx/css'
2-
3-
export default css.global`
41
/* latin */
52
@font-face {
63
font-family: 'Inter';
@@ -629,4 +626,3 @@ in most cases, they are not downloaded at all */
629626
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
630627
U+01AF-01B0, U+1EA0-1EF9, U+20AB;
631628
}
632-
`

0 commit comments

Comments
 (0)