Skip to content

Commit

Permalink
style: globalcss 분리
Browse files Browse the repository at this point in the history
app.tsx에 정의되어있던 globalCss 코드를 관리하기 용이하게끔 styles/ 로 옮김

close #63
  • Loading branch information
ppark2ya committed Feb 19, 2022
1 parent 12dfb14 commit b967df1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
19 changes: 2 additions & 17 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,11 @@ import Head from 'next/head';
import { Hydrate, QueryClient, QueryClientProvider } from 'react-query';
import { ReactQueryDevtools } from 'react-query/devtools';
import { APP_STAGE } from '~/shared/constants/environments';
import { globalCss, Box } from '@nolmungshemung/ui-kits';
import { reset } from 'stitches-reset';
import { Box } from '@nolmungshemung/ui-kits';
import { DefaultSeo } from 'next-seo';
import { Header } from '~/components/layout';
import { SessionProvider } from 'next-auth/react';

globalCss({
...reset,
html: {
height: '100%',
},
body: {
...reset.body,
height: '100%',
fontFamily: '$noto',
},
'#__next': {
height: '100%',
},
})();
import '~/styles/globalCss';

if (APP_STAGE !== 'prod') {
require('../mocks');
Expand Down
17 changes: 17 additions & 0 deletions styles/globalCss.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { globalCss } from '@nolmungshemung/ui-kits';
import { reset } from 'stitches-reset';

globalCss({
...reset,
html: {
height: '100%',
},
body: {
...reset.body,
height: '100%',
fontFamily: '$noto',
},
'#__next': {
height: '100%',
},
})();

0 comments on commit b967df1

Please sign in to comment.