@@ -56,7 +65,7 @@ const App = () => {
{!bookmarkData.error && }
{!imprintData.error && }
- >
+
);
};
diff --git a/src/components/app.tsx b/src/components/app.tsx
index 891e909..ea013bc 100644
--- a/src/components/app.tsx
+++ b/src/components/app.tsx
@@ -1,12 +1,11 @@
import Icon from "./icon";
import styled from "styled-components";
-import selectedTheme from "../lib/theme";
const AppContainer = styled.a`
display: flex;
flex: 1 0 auto;
padding: 1rem;
- color: ${selectedTheme.mainColor};
+ color: ${(props) => props.theme.mainColor};
font-weight: 500;
text-transform: uppercase;
margin: 0;
@@ -37,7 +36,7 @@ const AppDescription = styled.p`
margin: 0;
font-size: 0.65rem;
font-weight: 400;
- color: ${selectedTheme.accentColor};
+ color: ${(props) => props.theme.accentColor};
`;
export interface IAppProps {
diff --git a/src/components/bookmarks.tsx b/src/components/bookmarks.tsx
index 0abc783..0c7cf66 100644
--- a/src/components/bookmarks.tsx
+++ b/src/components/bookmarks.tsx
@@ -6,7 +6,6 @@ import {
ListContainer,
SubHeadline,
} from "./elements";
-import selectedTheme from "../lib/theme";
const GroupContainer = styled.div`
display: flex;
@@ -18,7 +17,7 @@ const GroupContainer = styled.div`
const Bookmark = styled.a`
font-weight: 400;
text-decoration: none;
- color: ${selectedTheme.accentColor};
+ color: ${(props) => props.theme.accentColor};
padding-top: 0.75rem;
font-size: 0.9rem;
diff --git a/src/components/elements.tsx b/src/components/elements.tsx
index 3c14029..3051995 100644
--- a/src/components/elements.tsx
+++ b/src/components/elements.tsx
@@ -1,5 +1,4 @@
import styled from "styled-components";
-import selectedTheme from "../lib/theme";
export const ListContainer = styled.div`
padding: 2rem 0;
@@ -11,7 +10,7 @@ export const Headline = styled.h2`
text-transform: uppercase;
margin: 0;
font-size: 1.5rem;
- color: ${selectedTheme.mainColor};
+ color: ${(props) => props.theme.mainColor};
`;
export const SubHeadline = styled.h3`
@@ -19,7 +18,7 @@ export const SubHeadline = styled.h3`
font-weight: 700;
text-transform: uppercase;
margin: 0;
- color: ${selectedTheme.mainColor};
+ color: ${(props) => props.theme.mainColor};
`;
export const ItemList = styled.ul`
@@ -44,8 +43,8 @@ export const Button = styled.button`
text-transform: uppercase;
font-family: Roboto, sans-serif;
font-weight: 400;
- border: 1px solid ${selectedTheme.mainColor};
- color: ${selectedTheme.mainColor};
+ border: 1px solid ${(props) => props.theme.mainColor};
+ color: ${(props) => props.theme.mainColor};
background: none;
min-height: 2rem;
diff --git a/src/components/greeter.tsx b/src/components/greeter.tsx
index 25170d8..f5c1205 100644
--- a/src/components/greeter.tsx
+++ b/src/components/greeter.tsx
@@ -1,5 +1,4 @@
import styled from "styled-components";
-import selectedTheme from "../lib/theme";
const GreeterContainer = styled.div`
padding: 2rem 0;
@@ -9,7 +8,7 @@ const GreetText = styled.h1`
font-weight: 900;
font-size: 3rem;
margin: 0.5rem 0;
- color: ${selectedTheme.mainColor};
+ color: ${(props) => props.theme.mainColor};
`;
const DateText = styled.h3`
@@ -17,7 +16,7 @@ const DateText = styled.h3`
font-size: 1rem;
text-transform: uppercase;
margin: 0;
- color: ${selectedTheme.accentColor};
+ color: ${(props) => props.theme.accentColor};
`;
export interface IGreeterComponentProps {
diff --git a/src/components/icon.tsx b/src/components/icon.tsx
index a3fb907..ca1d5ab 100644
--- a/src/components/icon.tsx
+++ b/src/components/icon.tsx
@@ -1,6 +1,5 @@
import React from "react";
import styled from "styled-components";
-import selectedTheme from "../lib/theme";
interface IIconProps {
name: string;
@@ -40,7 +39,7 @@ const IconContainer = styled.i`
-moz-osx-font-smoothing: grayscale;
font-feature-settings: "liga";
font-size: ${(props) => props.about};
- color: ${(props) => props.color};
+ color: ${(props) => props.theme.mainColor};
`;
/**
@@ -49,7 +48,7 @@ const IconContainer = styled.i`
* @returns {React.ReactNode} the icon node
*/
export const Icon = ({ name, size }: IIconProps) => (
-