summaryrefslogtreecommitdiff
path: root/src/components/globals.js
blob: 407a003e8ef5959039e0a31a76330b8c40e70b11 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
export const colours = {
  background: '#0484EA',
  main: '#FFFFFF'
}

const margins = {
  xsm: 6,
  sm: 12,
  md: 28,
  lg: 50,
  xl: 75
}

const transitions = {
  hover: '0.4s cubic-bezier(0.7, 0, 0.3, 1)'
}

const radius = {
  sm: 8
}

const fontStack = 'Helvetica Neue,Helvetica,Arial,sans-serif;'

const breakpoints = [
  {
    breakpoint: '600px',
    size: '90%'
  },
  {
    breakpoint: '850px',
    size: '750px'
  },
  {
    breakpoint: '992px',
    size: '920px'
  },
  {
    breakpoint: '1170px',
    size: '1100px'
  }
]

export const mainTheme = {
  colours,
  fontStack,
  transitions,
  margins,
  breakpoints,
  radius
}

const highContrastTheme = {
  ...mainTheme,
  colours: {
    background: '#ffffff',
    main: '#000000'
  }
}

export const cvTheme = {
  ...highContrastTheme,
  margins: {
    xsm: 2,
    sm: 2,
    md: 5,
    lg: 10
  }
}

export const themes = {
  mainTheme,
  highContrastTheme
}