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

import Clay

iconFontSize :: Size LengthUnit
iconFontSize = px 32

radius :: Size LengthUnit
radius = px 3

blockPadding :: Size LengthUnit
blockPadding = px 15

blockPercentWidth :: Double
blockPercentWidth = 90

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

inputHeight :: Double
inputHeight = 40

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

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