Skip to content

Commit 8b68b36

Browse files
author
Renan Borges
committed
Fix background color definition
1 parent ddf67ab commit 8b68b36

File tree

2 files changed

+17
-25
lines changed

2 files changed

+17
-25
lines changed

src/components/App.tsx

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,19 @@ const ContentCss = {
1717
backgroundRepeat: 'no-repeat',
1818
};
1919

20-
const globalStyles = globalCss({
21-
body: {
22-
backgroundColor: '#030b1f',
23-
},
24-
});
25-
26-
export default () => {
27-
globalStyles();
28-
return (
29-
<NextUIProvider theme={theme}>
30-
<BrowserRouter>
31-
<Col css={ContentCss}>
32-
<Header />
33-
<main>
34-
<Routes>
35-
<Route path="/" element={<Home />} />
36-
<Route path="/about" element={<About />} />
37-
</Routes>
38-
</main>
39-
<Footer />
40-
</Col>
41-
</BrowserRouter>
42-
</NextUIProvider>
43-
);
44-
};
20+
export default () => (
21+
<NextUIProvider theme={theme}>
22+
<BrowserRouter>
23+
<Col css={ContentCss}>
24+
<Header />
25+
<main>
26+
<Routes>
27+
<Route path="/" element={<Home />} />
28+
<Route path="/about" element={<About />} />
29+
</Routes>
30+
</main>
31+
<Footer />
32+
</Col>
33+
</BrowserRouter>
34+
</NextUIProvider>
35+
);

src/theme.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default createTheme({
66
colors: {
77
primary: '$red500',
88
secondary: '$gray500',
9+
background: '#030b1f',
910
},
1011
fonts: {
1112
sans: "Rubik, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto'",

0 commit comments

Comments
 (0)