blob: 1bb964f2ec5a4f9f0f5077e7d3f9df6c11c51492 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import styled from "styled-components";
import { theme } from "../../constants";
export const Button = styled.button<{ variant?: keyof typeof theme }>`
background-color: ${({ theme, variant }) =>
variant ? theme[variant] : theme.background100};
border-radius: 5px;
border: none;
color: ${({ theme }) => theme.text};
font-size: 1rem;
font-weight: 800;
width: max-content;
padding: 12.5px 20px;
&:hover {
opacity: 0.8;
}
cursor: pointer;
`;
|