This repository was archived by the owner on Apr 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy paththeme.ts
80 lines (68 loc) · 1.82 KB
/
theme.ts
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
74
75
76
77
78
79
80
import Prefixer from "inline-style-prefixer";
import mapKeys from "reassemble/cjs/utils/mapKeys";
const globalPrefixer = new Prefixer();
export const prefix = (obj: any) => globalPrefixer.prefix(obj);
export function createClassRules<T>(rules: T): {[P in keyof T]: string } {
return mapKeys(rules, (key) => "." + key) as any;
};
export function multi(...val: any[]) {
return val.join(", ");
}
export const fontFamily = {
serif: "'Roboto Slab', 'Georgia', serif",
sansSerif: "'Roboto', 'Helvetica','Arial',sans-serif",
monospace: "'Roboto Mono', 'Lucida Console', 'Courier New', monospace",
};
export const whiteTextColor = "rgba(255, 255, 255, 1)";
export const blackTextColor = "rgba(0, 0, 0, 0.87)";
export const primaryColor = {
lightest: "#4d8fa8",
light: "#2e7995",
default: "#136a8a",
dark: "#0a526e",
darkest: "#033f55",
};
export const accentColor = {
lightest: "#ffba6f",
light: "#ed9c43",
default: "#dc7d16",
dark: "#af5f08",
darkest: "#884700",
};
export const buttonReset = {
// reset button
userSelect: "none",
outline: "none",
border: "none",
touchAction: "manipulation",
padding: 0,
position: "relative",
overflow: "hidden",
background: "transparent",
"&::-moz-focus-inner": {
border: 0,
},
// Unify anchor and button.
cursor: "pointer",
display: "inline-block",
boxSizing: "border-box",
textAlign: "center",
textDecoration: "none",
alignItems: "flex-start",
verticalAlign: "middle",
WebkitTapHighlightColor: "rgba(0, 0, 0, 0) !important",
whiteSpace: "nowrap",
};
export const timing = {
easeInOut: "cubic-bezier(0.4, 0.0, 0.2, 1)",
easeOut: "cubic-bezier(0.0, 0.0, 0.2, 1)",
easeIn: "cubic-bezier(0.4, 0.0, 1, 1)",
sharp: "cubic-bezier(0.4, 0.0, 0.6, 1)",
};
export const breakpoints = {
xs: 360,
sm: 600,
md: 960,
lg: 1280,
xl: 1920,
};