aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorboard/components/tf-graph-common/lib/colors.ts
blob: 8912483c09e18f552a9d640b1e64022ea51236cf (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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
module tf {

/**
 * Mapping from color palette name to color pallette, which contains
 * exact colors for multiple states of a single color pallette.
 */
export let COLORS = [
  {
    "name": "Google Blue",
    "color": "#4184f3",
    "active": "#3a53c5",
    "disabled": "#cad8fc"
  },
  {
    "name": "Google Red",
    "color": "#db4437",
    "active": "#8f2a0c",
    "disabled": "#e8c6c1"
  },
  {
    "name": "Google Yellow",
    "color": "#f4b400",
    "active": "#db9200",
    "disabled": "#f7e8b0"
  },
  {
    "name": "Google Green",
    "color": "#0f9d58",
    "active": "#488046",
    "disabled": "#c2e1cc"
  },
  {
    "name": "Purple",
    "color": "#aa46bb",
    "active": "#5c1398",
    "disabled": "#d7bce6"
  },
  {
    "name": "Teal",
    "color": "#00abc0",
    "active": "#47828e",
    "disabled": "#c2eaf2"
  },
  {
    "name": "Deep Orange",
    "color": "#ff6f42",
    "active": "#ca4a06",
    "disabled": "#f2cbba"
  },
  {
    "name": "Lime",
    "color": "#9d9c23",
    "active": "#7f771d",
    "disabled": "#f1f4c2"
  },
  {
    "name": "Indigo",
    "color": "#5b6abf",
    "active": "#3e47a9",
    "disabled": "#c5c8e8"
  },
  {
    "name": "Pink",
    "color": "#ef6191",
    "active": "#ca1c60",
    "disabled": "#e9b9ce"
  },
  {
    "name": "Deep Teal",
    "color": "#00786a",
    "active": "#2b4f43",
    "disabled": "#bededa"
  },
  {
    "name": "Deep Pink",
    "color": "#c1175a",
    "active": "#75084f",
    "disabled": "#de8cae"
  },
  {
    "name": "Gray",
    "color": "#9E9E9E", // 500
    "active": "#424242", // 800
    "disabled": "F5F5F5" // 100
  }
].reduce((m, c) => {
  m[c.name] = c;
  return m;
}, {});

/**
 * Mapping from op category to color palette name
 * e.g.,  OP_GROUP_COLORS["state_ops"] = "Google Blue";
 */
export let OP_GROUP_COLORS = [
  {
    color: "Google Red",
    groups: ["gen_legacy_ops", "legacy_ops", "legacy_flogs_input",
      "legacy_image_input", "legacy_input_example_input",
      "legacy_sequence_input", "legacy_seti_input_input"]
  }, {
    color: "Deep Orange",
    groups: ["constant_ops"]
  }, {
    color: "Indigo",
    groups: ["state_ops"]
  }, {
    color: "Purple",
    groups: ["nn_ops", "nn"]
  }, {
    color: "Google Green",
    groups: ["math_ops"]
  }, {
    color: "Lime",
    groups: ["array_ops"]
  }, {
    color: "Teal",
    groups: ["control_flow_ops", "data_flow_ops"]
  }, {
    color: "Pink",
    groups: ["summary_ops"]
  }, {
    color: "Deep Pink",
    groups: ["io_ops"]
  }
].reduce((m, c) => {
  c.groups.forEach(function(group) {
    m[group] = c.color;
  });
  return m;
}, {});

}