Skip to content

Commit

Permalink
[feat]: global layout (#269)
Browse files Browse the repository at this point in the history
feat: global layout
  • Loading branch information
kimyouknow authored Sep 17, 2023
1 parent 0228497 commit 1dce019
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/styles/globalStyle.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { css, Global } from '@emotion/react';

import { theme } from '~/styles/theme';

import { resetCss } from './resetCss';

export default function GlobalStyle() {
Expand Down Expand Up @@ -28,5 +30,6 @@ const globalCss = css`
word-break: keep-all;
word-wrap: break-word;
}
background-color: ${theme.colors.black800};
}
`;
12 changes: 12 additions & 0 deletions src/styles/layout.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { css } from '@emotion/react';

const layout = {
maxWidth: '960px',
} as const;

export const commonLayoutCss = css`
width: 100%;
max-width: ${layout.maxWidth};
margin: 0 auto;
padding: 0 20px;
`;

0 comments on commit 1dce019

Please sign in to comment.