aboutsummaryrefslogtreecommitdiff
path: root/src/server/Design/Constants.hs
blob: 3395852fede13f269f2da651f6e8177c12e88c21 (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
module Design.Constants where

import Clay

iconFontSize :: Size Abs
iconFontSize = px 32

radius :: Size Abs
radius = px 3

blockPadding :: Size Abs
blockPadding = px 15

blockPercentWidth :: Double
blockPercentWidth = 90

blockPercentMargin :: Double
blockPercentMargin = (100 - blockPercentWidth) / 2

blockMarginBottom :: Size Abs
blockMarginBottom = px 50

rowHeightPx :: Integer
rowHeightPx = 60

inputHeight :: Integer
inputHeight = 40

focusLighten :: Color -> Color
focusLighten baseColor = baseColor +. 20

focusDarken :: Color -> Color
focusDarken baseColor = baseColor -. 20