feat: dark/light theming with emotion

This commit is contained in:
Kyle Gill
2019-03-27 21:45:55 -06:00
parent 043acd30cf
commit 49bb678bfa
9 changed files with 140 additions and 25 deletions

View File

@@ -0,0 +1,27 @@
import React from "react";
import styled from "@emotion/styled";
import { Book, Calendar, Circle, User } from "react-feather";
const IconBase = styled.div`
display: flex;
justify-content: center;
align-items: center;
background-color: none;
border-radius: 12px;
padding: 5px;
transition: 0.1s all ease-in-out;
&:hover {
background-color: yellow;
}
`;
const Icon = ({ name }) => (
<IconBase>
{name === "Book" && <Book />}
{name === "Calendar" && <Calendar />}
{name === "Circle" && <Circle />}
{name === "User" && <User />}
</IconBase>
);
export default Icon;