dark.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. /**
  20. * AUTO-GENERATED FILE. DO NOT MODIFY.
  21. */
  22. /*
  23. * Licensed to the Apache Software Foundation (ASF) under one
  24. * or more contributor license agreements. See the NOTICE file
  25. * distributed with this work for additional information
  26. * regarding copyright ownership. The ASF licenses this file
  27. * to you under the Apache License, Version 2.0 (the
  28. * "License"); you may not use this file except in compliance
  29. * with the License. You may obtain a copy of the License at
  30. *
  31. * http://www.apache.org/licenses/LICENSE-2.0
  32. *
  33. * Unless required by applicable law or agreed to in writing,
  34. * software distributed under the License is distributed on an
  35. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  36. * KIND, either express or implied. See the License for the
  37. * specific language governing permissions and limitations
  38. * under the License.
  39. */
  40. import tokens from '../visual/tokens.js';
  41. var color = tokens.darkColor;
  42. var backgroundColor = color.background;
  43. var axisCommon = function () {
  44. return {
  45. axisLine: {
  46. lineStyle: {
  47. color: color.axisLine
  48. }
  49. },
  50. splitLine: {
  51. lineStyle: {
  52. color: color.axisSplitLine
  53. }
  54. },
  55. splitArea: {
  56. areaStyle: {
  57. color: [color.backgroundTint, color.backgroundTransparent]
  58. }
  59. },
  60. minorSplitLine: {
  61. lineStyle: {
  62. color: color.axisMinorSplitLine
  63. }
  64. },
  65. axisLabel: {
  66. color: color.axisLabel
  67. },
  68. axisName: {}
  69. };
  70. };
  71. var matrixAxis = {
  72. label: {
  73. color: color.secondary
  74. },
  75. itemStyle: {
  76. borderColor: color.borderTint
  77. },
  78. dividerLineStyle: {
  79. color: color.border
  80. }
  81. };
  82. var theme = {
  83. darkMode: true,
  84. color: color.theme,
  85. backgroundColor: backgroundColor,
  86. axisPointer: {
  87. lineStyle: {
  88. color: color.border
  89. },
  90. crossStyle: {
  91. color: color.borderShade
  92. },
  93. label: {
  94. color: color.tertiary
  95. }
  96. },
  97. legend: {
  98. textStyle: {
  99. color: color.secondary
  100. },
  101. pageTextStyle: {
  102. color: color.tertiary
  103. }
  104. },
  105. textStyle: {
  106. color: color.secondary
  107. },
  108. title: {
  109. textStyle: {
  110. color: color.primary
  111. },
  112. subtextStyle: {
  113. color: color.quaternary
  114. }
  115. },
  116. toolbox: {
  117. iconStyle: {
  118. borderColor: color.accent50
  119. }
  120. },
  121. tooltip: {
  122. backgroundColor: color.neutral20,
  123. defaultBorderColor: color.border,
  124. textStyle: {
  125. color: color.tertiary
  126. }
  127. },
  128. dataZoom: {
  129. borderColor: color.accent10,
  130. textStyle: {
  131. color: color.tertiary
  132. },
  133. brushStyle: {
  134. color: color.backgroundTint
  135. },
  136. handleStyle: {
  137. color: color.neutral00,
  138. borderColor: color.accent20
  139. },
  140. moveHandleStyle: {
  141. color: color.accent40
  142. },
  143. emphasis: {
  144. handleStyle: {
  145. borderColor: color.accent50
  146. }
  147. },
  148. dataBackground: {
  149. lineStyle: {
  150. color: color.accent30
  151. },
  152. areaStyle: {
  153. color: color.accent20
  154. }
  155. },
  156. selectedDataBackground: {
  157. lineStyle: {
  158. color: color.accent50
  159. },
  160. areaStyle: {
  161. color: color.accent30
  162. }
  163. }
  164. },
  165. visualMap: {
  166. textStyle: {
  167. color: color.secondary
  168. },
  169. handleStyle: {
  170. borderColor: color.neutral30
  171. }
  172. },
  173. timeline: {
  174. lineStyle: {
  175. color: color.accent10
  176. },
  177. label: {
  178. color: color.tertiary
  179. },
  180. controlStyle: {
  181. color: color.accent30,
  182. borderColor: color.accent30
  183. }
  184. },
  185. calendar: {
  186. itemStyle: {
  187. color: color.neutral00,
  188. borderColor: color.neutral20
  189. },
  190. dayLabel: {
  191. color: color.tertiary
  192. },
  193. monthLabel: {
  194. color: color.secondary
  195. },
  196. yearLabel: {
  197. color: color.secondary
  198. }
  199. },
  200. matrix: {
  201. x: matrixAxis,
  202. y: matrixAxis,
  203. backgroundColor: {
  204. borderColor: color.axisLine
  205. },
  206. body: {
  207. itemStyle: {
  208. borderColor: color.borderTint
  209. }
  210. }
  211. },
  212. timeAxis: axisCommon(),
  213. logAxis: axisCommon(),
  214. valueAxis: axisCommon(),
  215. categoryAxis: axisCommon(),
  216. line: {
  217. symbol: 'circle'
  218. },
  219. graph: {
  220. color: color.theme
  221. },
  222. gauge: {
  223. title: {
  224. color: color.secondary
  225. },
  226. axisLine: {
  227. lineStyle: {
  228. color: [[1, color.neutral05]]
  229. }
  230. },
  231. axisLabel: {
  232. color: color.axisLabel
  233. },
  234. detail: {
  235. color: color.primary
  236. }
  237. },
  238. candlestick: {
  239. itemStyle: {
  240. color: '#f64e56',
  241. color0: '#54ea92',
  242. borderColor: '#f64e56',
  243. borderColor0: '#54ea92'
  244. // borderColor: '#ca2824',
  245. // borderColor0: '#09a443'
  246. }
  247. },
  248. funnel: {
  249. itemStyle: {
  250. borderColor: color.background
  251. }
  252. },
  253. radar: function () {
  254. var radar = axisCommon();
  255. radar.axisName = {
  256. color: color.axisLabel
  257. };
  258. radar.axisLine.lineStyle.color = color.neutral20;
  259. return radar;
  260. }(),
  261. treemap: {
  262. breadcrumb: {
  263. itemStyle: {
  264. color: color.neutral20,
  265. textStyle: {
  266. color: color.secondary
  267. }
  268. },
  269. emphasis: {
  270. itemStyle: {
  271. color: color.neutral30
  272. }
  273. }
  274. }
  275. },
  276. sunburst: {
  277. itemStyle: {
  278. borderColor: color.background
  279. }
  280. },
  281. map: {
  282. itemStyle: {
  283. borderColor: color.border,
  284. areaColor: color.neutral10
  285. },
  286. label: {
  287. color: color.tertiary
  288. },
  289. emphasis: {
  290. label: {
  291. color: color.primary
  292. },
  293. itemStyle: {
  294. areaColor: color.highlight
  295. }
  296. },
  297. select: {
  298. label: {
  299. color: color.primary
  300. },
  301. itemStyle: {
  302. areaColor: color.highlight
  303. }
  304. }
  305. },
  306. geo: {
  307. itemStyle: {
  308. borderColor: color.border,
  309. areaColor: color.neutral10
  310. },
  311. emphasis: {
  312. label: {
  313. color: color.primary
  314. },
  315. itemStyle: {
  316. areaColor: color.highlight
  317. }
  318. },
  319. select: {
  320. label: {
  321. color: color.primary
  322. },
  323. itemStyle: {
  324. color: color.highlight
  325. }
  326. }
  327. }
  328. };
  329. theme.categoryAxis.splitLine.show = false;
  330. export default theme;