-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathbirdseyeTheme.ts
More file actions
71 lines (69 loc) · 1.42 KB
/
birdseyeTheme.ts
File metadata and controls
71 lines (69 loc) · 1.42 KB
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
import { Theme, Rect, Row } from "graphql-birdseye-core/src/theme/types";
import { theme as styledTheme } from "../styled";
const colors = {
primary: styledTheme.colors.pink,
background: styledTheme.colors.darkPurple,
white: "#ffffff",
line: {
active: styledTheme.colors.pink, // "#38616b",
inactive: styledTheme.colors.white,
},
};
const nodeStyles = {
gap: 15,
container: {
fill: styledTheme.colors.black,
rx: 15,
},
header: {
height: 36,
label: {
"font-size": 22,
"text-anchor": "middle",
fill: "#ffffff",
"font-weight": "bold",
cursor: "pointer",
},
container: {
fill: "transparent", // colors.primary,
// stroke: colors.primary
},
},
divider: {
height: 0,
stroke: colors.background,
fill: colors.background,
} as Rect,
row: {
height: 35,
fieldNameLabel: {
"font-size": 20,
fill: "#f6f8fa",
"font-weight": "bold",
},
fieldTypeLabel: {
"font-size": 18,
fill: "#959da5",
},
body: {
fill: "transparent",
stroke: "transparent", // colors.primary,
height: 25,
cursor: "pointer",
},
} as Row,
};
export default {
colors,
...nodeStyles,
line: {
stroke: colors.line.inactive,
fill: "transparent",
strokeWidth: 3,
strokeLinejoin: "round",
targetMarker: {
type: "path",
d: "M 10 -5 0 0 10 5 z",
},
},
} as Theme;