Skip to content

Commit

Permalink
feat: added Theme component
Browse files Browse the repository at this point in the history
  • Loading branch information
BayanBennett committed Sep 22, 2022
1 parent 510511f commit 6f945e5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions libs/Theme.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { createGlobalStyle, ThemeProvider } from "styled-components";
import { FunctionComponent, PropsWithChildren } from "react";

const theme = {};

const GlobalStyle = createGlobalStyle`
* {
box-sizing: border-box;
font-family: "Public Sans", sans-serif;
}
#__next {
display: contents;
}
`;

export const Theme: FunctionComponent<PropsWithChildren> = ({ children }) => (
<>
<GlobalStyle />
<ThemeProvider theme={theme}>{children}</ThemeProvider>
</>
);

0 comments on commit 6f945e5

Please sign in to comment.