dark.js 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. feature: {
  121. dataView: {
  122. backgroundColor: backgroundColor,
  123. textColor: color.primary,
  124. textareaColor: color.background,
  125. textareaBorderColor: color.border,
  126. buttonColor: color.accent50,
  127. buttonTextColor: color.neutral00
  128. }
  129. }
  130. },
  131. tooltip: {
  132. backgroundColor: color.neutral20,
  133. defaultBorderColor: color.border,
  134. textStyle: {
  135. color: color.tertiary
  136. }
  137. },
  138. dataZoom: {
  139. borderColor: color.accent10,
  140. textStyle: {
  141. color: color.tertiary
  142. },
  143. brushStyle: {
  144. color: color.backgroundTint
  145. },
  146. handleStyle: {
  147. color: color.neutral00,
  148. borderColor: color.accent20
  149. },
  150. moveHandleStyle: {
  151. color: color.accent40
  152. },
  153. emphasis: {
  154. handleStyle: {
  155. borderColor: color.accent50
  156. }
  157. },
  158. dataBackground: {
  159. lineStyle: {
  160. color: color.accent30
  161. },
  162. areaStyle: {
  163. color: color.accent20
  164. }
  165. },
  166. selectedDataBackground: {
  167. lineStyle: {
  168. color: color.accent50
  169. },
  170. areaStyle: {
  171. color: color.accent30
  172. }
  173. }
  174. },
  175. visualMap: {
  176. textStyle: {
  177. color: color.secondary
  178. },
  179. handleStyle: {
  180. borderColor: color.neutral30
  181. }
  182. },
  183. timeline: {
  184. lineStyle: {
  185. color: color.accent10
  186. },
  187. label: {
  188. color: color.tertiary
  189. },
  190. controlStyle: {
  191. color: color.accent30,
  192. borderColor: color.accent30
  193. }
  194. },
  195. calendar: {
  196. itemStyle: {
  197. color: color.neutral00,
  198. borderColor: color.neutral20
  199. },
  200. dayLabel: {
  201. color: color.tertiary
  202. },
  203. monthLabel: {
  204. color: color.secondary
  205. },
  206. yearLabel: {
  207. color: color.secondary
  208. }
  209. },
  210. matrix: {
  211. x: matrixAxis,
  212. y: matrixAxis,
  213. backgroundColor: {
  214. borderColor: color.axisLine
  215. },
  216. body: {
  217. itemStyle: {
  218. borderColor: color.borderTint
  219. }
  220. }
  221. },
  222. timeAxis: axisCommon(),
  223. logAxis: axisCommon(),
  224. valueAxis: axisCommon(),
  225. categoryAxis: axisCommon(),
  226. line: {
  227. symbol: 'circle'
  228. },
  229. graph: {
  230. color: color.theme
  231. },
  232. gauge: {
  233. title: {
  234. color: color.secondary
  235. },
  236. axisLine: {
  237. lineStyle: {
  238. color: [[1, color.neutral05]]
  239. }
  240. },
  241. axisLabel: {
  242. color: color.axisLabel
  243. },
  244. detail: {
  245. color: color.primary
  246. }
  247. },
  248. candlestick: {
  249. itemStyle: {
  250. color: '#f64e56',
  251. color0: '#54ea92',
  252. borderColor: '#f64e56',
  253. borderColor0: '#54ea92'
  254. // borderColor: '#ca2824',
  255. // borderColor0: '#09a443'
  256. }
  257. },
  258. funnel: {
  259. itemStyle: {
  260. borderColor: color.background
  261. }
  262. },
  263. radar: function () {
  264. var radar = axisCommon();
  265. radar.axisName = {
  266. color: color.axisLabel
  267. };
  268. radar.axisLine.lineStyle.color = color.neutral20;
  269. return radar;
  270. }(),
  271. treemap: {
  272. breadcrumb: {
  273. itemStyle: {
  274. color: color.neutral20,
  275. textStyle: {
  276. color: color.secondary
  277. }
  278. },
  279. emphasis: {
  280. itemStyle: {
  281. color: color.neutral30
  282. }
  283. }
  284. }
  285. },
  286. sunburst: {
  287. itemStyle: {
  288. borderColor: color.background
  289. }
  290. },
  291. map: {
  292. itemStyle: {
  293. borderColor: color.border,
  294. areaColor: color.neutral10
  295. },
  296. label: {
  297. color: color.tertiary
  298. },
  299. emphasis: {
  300. label: {
  301. color: color.primary
  302. },
  303. itemStyle: {
  304. areaColor: color.highlight
  305. }
  306. },
  307. select: {
  308. label: {
  309. color: color.primary
  310. },
  311. itemStyle: {
  312. areaColor: color.highlight
  313. }
  314. }
  315. },
  316. geo: {
  317. itemStyle: {
  318. borderColor: color.border,
  319. areaColor: color.neutral10
  320. },
  321. emphasis: {
  322. label: {
  323. color: color.primary
  324. },
  325. itemStyle: {
  326. areaColor: color.highlight
  327. }
  328. },
  329. select: {
  330. label: {
  331. color: color.primary
  332. },
  333. itemStyle: {
  334. color: color.highlight
  335. }
  336. }
  337. }
  338. };
  339. theme.categoryAxis.splitLine.show = false;
  340. export default theme;