File size: 765 Bytes
f23825d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import styled from "@emotion/styled"
import Color from "color"

export const Button = styled.button`
  background: transparent;
  border: none;
  border-radius: 0.2rem;
  color: ${({ theme }) => theme.textColor};
  padding: 0.5rem 1rem;
  cursor: pointer;
  height: 2rem;
  outline: none;

  &:hover {
    background: ${({ theme }) => theme.highlightColor};
  }
  &:active {
    background: ${({ theme }) =>
      Color(theme.secondaryBackgroundColor).lighten(0.1).hex()};
  }
`

export const PrimaryButton = styled(Button)`
  background: ${({ theme }) => theme.themeColor};

  &:hover {
    background: ${({ theme }) => Color(theme.themeColor).darken(0.1).hex()};
  }
  &:active {
    background: ${({ theme }) => Color(theme.themeColor).darken(0.2).hex()};
  }
`