-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.ts
78 lines (75 loc) · 2.42 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
import { ZStack } from "../types/global";
const theme = {
colors: {
mojogreen: "#00ba40",
meangreen: "#1E4D32",
white: "#ffffff",
dark: "#14111D",
gray: "#F0F0F0",
mediumGray: "#ACACAC",
darkGray: "#5B5B5B",
yellow: "#E2A210",
aaMojogreen: "#00882F",
darkgreen: "#193C2A"
},
schemes: {
dark: { backgroundColor: "#14111D", color: "#ffffff" },
light: { backgroundColor: "#ffffff", color: "#14111D" },
gray: { backgroundColor: "#F0F0F0", color: "#14111D" },
},
spaces: [
"0px",
"calc(4px + (8 - 4) * ((100vw - 400px) / (1800 - 400)))",
"calc(8px + (16 - 8) * ((100vw - 400px) / (1800 - 400)))",
"calc(18px + (24 - 18) * ((100vw - 400px) / (1800 - 400)))",
"calc(44px + (88 - 44) * ((100vw - 400px) / (1800 - 400)))",
"calc(88px + (176 - 88) * ((100vw - 400px) / (1800 - 400)))",
"calc(176px + (352 - 176) * ((100vw - 400px) / (1800 - 400)))",
],
fontFamilies: {
main: `'GT America Light', system-ui, sans-serif`,
regular: `'GT America Regular', system-ui, sans-serif`,
display: `'altis-mojoregular', system-ui, sans-serif`,
mono: `'GT America Mono', monospace`,
},
fontSizes: [
"clamp(0.89rem, 0.91rem + -0.07vw, 0.84rem)", //0-BodySmall
"clamp(1.00rem, 0.95rem + 0.20vw, 1.13rem)", //1-Body
"clamp(1.13rem, 0.98rem + 0.60vw, 1.50rem)", //2-H3
"clamp(1.27rem, 0.97rem + 1.17vw, 2.00rem)", //3-H2
"clamp(1.42rem, 0.93rem + 1.99vw, 2.66rem)", //4-H1
"clamp(1.60rem, 0.82rem + 3.12vw, 3.55rem)", //5-Display
],
lineHeights: [1.4, 1.3, 1.2, 1.1],
letterSpacing: ["0em", "-0.025em", "-0.015em"],
opacities: [0.6, 1],
maxWidths: ["100%", "800px", "1400px"],
widths: ["100%", "55vw", "66.666vw", "90vw", "100vw"],
breakpoints: [0, 800, 1600],
easings: {
easeOut: "cubic-bezier(0.25, 0.46, 0.45, 0.94)",
easeInOut: "cubic-bezier(0.455, 0.03, 0.515, 0.955)",
},
zIndices: [
-1, // 0-Sink
100, // 1-SourceOrder + 1
200, // 2-SourceOrder + 2
400, // 3-SourceOrder + 3
800, // 4-Overlay
900, // 5-OverlayControls
1000, // 6-Modal
2000, // 7-ModalControls
4000, // 8-Alert/Toast
8000, // 9-AlertControls
],
};
export default theme;
export const zStack: ZStack = {
sink: theme.zIndices[0],
overlay: theme.zIndices[4],
overlayControl: theme.zIndices[5],
modal: theme.zIndices[6],
modalBg: theme.zIndices[7],
toast: theme.zIndices[8],
toastControls: theme.zIndices[9],
};