File tree 4 files changed +68
-0
lines changed
4 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 " />
5
5
< link rel ="icon " type ="image/svg+xml " href ="/logo.svg " />
6
+ < link
7
+ href ="
https://cdn.jsdelivr.net/npm/[email protected] /reset.min.css "
8
+ rel ="stylesheet "
9
+ />
10
+ < link
11
+ href ="https://webfontworld.github.io/gmarket/GmarketSans.css "
12
+ rel ="stylesheet "
13
+ />
6
14
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
15
< title > 픽플</ title >
8
16
</ head >
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
7
7
8
8
import { router } from '@routes/router' ;
9
9
10
+ import GlobalStyle from '@styles/globalStyle' ;
10
11
import { theme } from '@styles/theme' ;
11
12
12
13
const queryClient = new QueryClient ( ) ;
@@ -17,6 +18,7 @@ function App() {
17
18
< ThemeProvider theme = { theme } >
18
19
< RouterProvider router = { router } />
19
20
< ReactQueryDevtools />
21
+ < GlobalStyle />
20
22
</ ThemeProvider >
21
23
</ QueryClientProvider >
22
24
) ;
Original file line number Diff line number Diff line change
1
+ import '@emotion/react' ;
2
+
3
+ import { theme } from '@styles/theme' ;
4
+
5
+ type Palette = typeof theme . PALETTE ;
6
+ type Styles = typeof theme . STYLES ;
7
+ type FontSize = typeof theme . FONT_SIZE ;
8
+ type FontWeight = typeof theme . FONT_WEIGHT ;
9
+ type LineHeight = typeof theme . LINE_HEIGHT ;
10
+
11
+ declare module '@emotion/react' {
12
+ export interface Theme
13
+ extends Palette ,
14
+ Styles ,
15
+ FontSize ,
16
+ FontWeight ,
17
+ LineHeight {
18
+ PALETTE : {
19
+ [ key in keyof Palette ] : string ;
20
+ } ;
21
+ STYLES : {
22
+ [ key in keyof Styles ] : string ;
23
+ } ;
24
+ FONT_SIZE : {
25
+ [ key in keyof FontSize ] : string ;
26
+ } ;
27
+ FONT_WEIGHT : {
28
+ [ key in keyof FontWeight ] : string ;
29
+ } ;
30
+ LINE_HEIGHT : {
31
+ [ key in keyof LineHeight ] : string ;
32
+ } ;
33
+ }
34
+ }
Original file line number Diff line number Diff line change
1
+ import { Global , css } from '@emotion/react' ;
2
+
3
+ const style = css `
4
+ * {
5
+ box-sizing : border-box;
6
+ }
7
+
8
+ body {
9
+ width : 100vw ;
10
+ height : 100vh ;
11
+ }
12
+
13
+ # root {
14
+ font-family : 'GmarketSans' ;
15
+ width : 100% ;
16
+ height : 100% ;
17
+ margin : 0 auto;
18
+ }
19
+ ` ;
20
+ const GlobalStyle = ( ) => {
21
+ return < Global styles = { style } /> ;
22
+ } ;
23
+
24
+ export default GlobalStyle ;
You can’t perform that action at this time.
0 commit comments