aboutsummaryrefslogtreecommitdiff
path: root/src/uikit/Button.js
blob: 2fb6283b2131b0935820ec0fd22d97748d890142 (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
24
25
26
27
28
29
30
31
32
33
34
import { styled } from '@stitches/react'

export const Button = styled('button', {
  display: 'block',
  // Making the button wider and not taller makes it look less cramped
  padding: '0.5rem 1rem',
  fontSize: '1rem',
  margin: '0.2rem',
  border: 'none',
  borderRadius: '6px',
  color: '#fafafa',
  transition: 'background-color 0.1s ease-out',

  variants: {
    primary: {
      true: {
        backgroundColor: '#3b82f6',
        '&:hover': {
          backgroundColor: '#93c5fd',
        },
      },
    },
    secondary: {
      true: {
        backgroundColor: '#a1a1aa',
        '&:hover': {
          backgroundColor: '#d4d4d8',
        },
      },
    },
  },
})

export default Button