testio-tailwind 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testio-tailwind",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "description": "Tailwind based design system for Test IO",
5
5
  "scripts": {
6
6
  "clean": "del dist --force",
@@ -121,30 +121,36 @@ document.addEventListener("trix-before-initialize", () => {
121
121
 
122
122
  ////// ECharts //////
123
123
 
124
- import { colorBlueLight, colorInfo } from './modules/colors';
124
+ import { colorBlueLight, colorInfo, colorSuccess, colorLabelBright, colorTealLight, colorLabelDark, colorValueBright, colorValueDark, colorBorderBright, colorBorderDark, colorNeutralBright, colorNeutralDark } from './modules/colors';
125
125
  import { createChartHorizontal } from './modules/echarts_horizontal';
126
126
  import { createChartDonut } from './modules/echarts_donut';
127
127
  import { createChartGauge } from './modules/echarts_gauge';
128
128
  import { createChartArea } from './modules/echarts_area';
129
129
  import { createChartVertical } from './modules/echarts_vertical';
130
+ import { createChartLine } from './modules/echarts_line';
130
131
 
131
132
  import { echartsSeriesFew, echartsSeriesMany } from './modules/echarts_exampleseries';
132
133
 
133
134
  import { dataFeaturesFew, dataFeaturesMany, dataBugs, dataBugsFew, dataBugsCategories, dataBugsCategoriesFew, dataTestCases, dataGaugeSuccess, dataGaugeDanger, dataGaugeInfo, dataAreaValues, dataAreaMonths, dataFeaturesManyNumbers } from './modules/echarts_exampledata';
134
135
 
135
- createChartVertical("echarts-bar-vertical-1", dataBugs, dataBugsCategories);
136
- createChartVertical("echarts-bar-vertical-2", dataBugsFew, dataBugsCategoriesFew);
137
- createChartVertical("echarts-bar-vertical-3", dataFeaturesManyNumbers, dataFeaturesMany);
138
- createChartVertical("echarts-bar-vertical-1-fixed", dataBugs, dataBugsCategories, 10);
139
- createChartVertical("echarts-bar-vertical-2-fixed", dataBugsFew, dataBugsCategoriesFew, 10);
140
- createChartVertical("echarts-bar-vertical-3-fixed", dataFeaturesManyNumbers, dataFeaturesMany, 10);
141
- createChartHorizontal("echarts-bar-horizontal-1", dataFeaturesFew, echartsSeriesFew, false);
142
- createChartHorizontal("echarts-bar-horizontal-2", dataFeaturesMany, echartsSeriesMany, true);
143
- createChartDonut("echarts-donut-1", dataBugs, "340", "Bugs", false);
144
- createChartDonut("echarts-donut-2", dataBugs, "9999", "label with a lot of text to show how things break", true);
145
- createChartDonut("echarts-donut-testcases", dataTestCases, "100", "Test Cases", false);
146
- createChartGauge("echarts-gauge-1", dataGaugeSuccess);
147
- createChartGauge("echarts-gauge-2", dataGaugeDanger);
148
- createChartGauge("echarts-gauge-3", dataGaugeInfo);
149
- createChartArea("echarts-area-1", dataAreaMonths, dataAreaValues, colorBlueLight);
150
- createChartArea("echarts-area-2", dataAreaMonths, dataAreaValues, colorInfo);
136
+ createChartVertical("echarts-bar-vertical-1", dataBugs, dataBugsCategories, colorLabelBright, colorValueBright);
137
+ createChartVertical("echarts-bar-vertical-1-dark", dataBugs, dataBugsCategories, colorLabelDark, colorValueDark);
138
+ createChartVertical("echarts-bar-vertical-2", dataBugsFew, dataBugsCategoriesFew, colorLabelBright, colorValueBright);
139
+ createChartVertical("echarts-bar-vertical-3", dataFeaturesManyNumbers, dataFeaturesMany, colorLabelBright, colorValueBright);
140
+ createChartVertical("echarts-bar-vertical-2-fixed", dataBugsFew, dataBugsCategoriesFew, colorLabelBright, colorValueBright, 10);
141
+ createChartVertical("echarts-bar-vertical-3-fixed", dataFeaturesManyNumbers, dataFeaturesMany, colorLabelBright, colorValueBright,10);
142
+ createChartHorizontal("echarts-bar-horizontal-1", dataFeaturesFew, echartsSeriesFew, false, colorLabelBright, colorValueBright);
143
+ createChartHorizontal("echarts-bar-horizontal-2", dataFeaturesMany, echartsSeriesMany, true, colorLabelBright, colorValueBright);
144
+ createChartHorizontal("echarts-bar-horizontal-2-dark", dataFeaturesMany, echartsSeriesMany, true, colorLabelDark, colorValueDark);
145
+ createChartDonut("echarts-donut-1", dataBugs, "340", "Bugs", false, colorLabelBright, colorValueBright);
146
+ createChartDonut("echarts-donut-2", dataBugs, "9999", "label with a lot of text to show how things break", true, colorLabelBright, colorValueBright);
147
+ createChartDonut("echarts-donut-2-dark", dataBugs, "9999", "label with a lot of text to show how things break", true, colorLabelDark, colorValueDark);
148
+ createChartDonut("echarts-donut-testcases", dataTestCases, "100", "Test Cases", false, colorLabelBright, colorValueBright);
149
+ createChartGauge("echarts-gauge-1", dataGaugeSuccess, colorLabelBright, colorValueBright, colorNeutralBright);
150
+ createChartGauge("echarts-gauge-1-dark", dataGaugeSuccess, colorLabelDark, colorValueDark, colorNeutralDark);
151
+ createChartGauge("echarts-gauge-2", dataGaugeDanger, colorLabelBright, colorValueBright, colorNeutralBright);
152
+ createChartGauge("echarts-gauge-3", dataGaugeInfo, colorLabelBright, colorValueBright, colorNeutralBright);
153
+ createChartArea("echarts-area-1", dataAreaMonths, dataAreaValues, colorBlueLight, colorLabelBright, colorValueBright, colorBorderBright);
154
+ createChartArea("echarts-area-2", dataAreaMonths, dataAreaValues, colorTealLight, colorLabelDark, colorValueDark, colorBorderDark);
155
+ createChartLine("echarts-line-1", dataAreaMonths, dataAreaValues, colorBlueLight, colorLabelBright, colorValueBright, colorBorderBright);
156
+ createChartLine("echarts-line-2", dataAreaMonths, dataAreaValues, colorTealLight, colorLabelDark, colorValueDark, colorBorderDark);
@@ -6,6 +6,14 @@ export const colorContent = '#326dd1';
6
6
  export const colorUX = '#263340';
7
7
  export const colorSuccess = '#8cbd24';
8
8
  export const colorDanger = '#FF3131';
9
- export const colorNeutral = '#e6e6e6';
9
+ export const colorNeutralBright = '#bfc1c5';
10
+ export const colorNeutralDark = '#343A40';
10
11
  export const colorInfo = '#326dd1';
11
- export const colorBlueLight = '#21bef4';
12
+ export const colorBlueLight = '#21bef4';
13
+ export const colorBorderBright = '#e6e6e6';
14
+ export const colorBorderDark = '#262626';
15
+ export const colorLabelBright = '#5f656d';
16
+ export const colorLabelDark = '#bfc1c5';
17
+ export const colorValueBright = '#1d1d1d';
18
+ export const colorValueDark = '#ffffff';
19
+ export const colorTealLight = '#6ddeba';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as echarts from 'echarts';
4
4
 
5
- export function createChartArea (target, targetDataX, targetDataY, chartColor) {
5
+ export function createChartArea (target, targetDataX, targetDataY, chartColor, labelColor, valueColor, borderColor) {
6
6
  var chartHeight = 190;
7
7
  var dom = document.getElementById(target);
8
8
  var myChartArea = echarts.init(dom, null, {
@@ -29,7 +29,8 @@ export function createChartArea (target, targetDataX, targetDataY, chartColor) {
29
29
  },
30
30
  axisLabel: {
31
31
  show: true,
32
- margin: 15
32
+ margin: 15,
33
+ color: labelColor,
33
34
  },
34
35
  axisTick: {
35
36
  show: false
@@ -37,7 +38,8 @@ export function createChartArea (target, targetDataX, targetDataY, chartColor) {
37
38
  splitLine: {
38
39
  show: true,
39
40
  lineStyle: {
40
- type: 'dashed'
41
+ type: 'dashed',
42
+ color: borderColor
41
43
  }
42
44
  }
43
45
  },
@@ -52,7 +54,8 @@ export function createChartArea (target, targetDataX, targetDataY, chartColor) {
52
54
  type: 'line',
53
55
  lineStyle: {
54
56
  width: 1,
55
- color: chartColor
57
+ color: chartColor,
58
+ borderColor: borderColor
56
59
  },
57
60
  areaStyle: {
58
61
  opacity: 1,
@@ -71,10 +74,11 @@ export function createChartArea (target, targetDataX, targetDataY, chartColor) {
71
74
  itemStyle: {
72
75
  borderWidth: 2,
73
76
  color: chartColor,
74
- borderColor: '#ffffff'
77
+ borderColor: borderColor
75
78
  },
76
79
  label: {
77
- show: true
80
+ show: true,
81
+ color: valueColor,
78
82
  },
79
83
  areaStyle: {
80
84
  opacity: 0
@@ -4,12 +4,26 @@ import * as echarts from 'echarts';
4
4
  import { echartsLegend, legendHeight } from './echarts_legend';
5
5
 
6
6
  var legendOptions;
7
- export function createChartDonut (target, targetData, valueText, labelText, showLegend) {
7
+ export function createChartDonut (target, targetData, valueText, labelText, showLegend, labelColor, valueColor) {
8
8
  var chartHeight = 190;
9
9
  var chartPlusLegendHeight;
10
10
  if (showLegend) {
11
11
  chartPlusLegendHeight = chartHeight + legendHeight,
12
- legendOptions = echartsLegend
12
+ legendOptions = {
13
+ type: echartsLegend.type,
14
+ orient: echartsLegend.orient,
15
+ padding: echartsLegend.padding,
16
+ icon: echartsLegend.icon,
17
+ itemGap: echartsLegend.itemGap,
18
+ itemHeight: echartsLegend.itemHeight,
19
+ itemWidth: echartsLegend.itemWidth,
20
+ height: echartsLegend.height,
21
+ left: echartsLegend.left,
22
+ bottom: echartsLegend.bottom,
23
+ textStyle:{
24
+ color:labelColor
25
+ },
26
+ }
13
27
  } else {
14
28
  chartPlusLegendHeight = chartHeight,
15
29
  legendOptions = null
@@ -37,14 +51,16 @@ export function createChartDonut (target, targetData, valueText, labelText, show
37
51
  textStyle: {
38
52
  fontSize: 60,
39
53
  lineHeight: 60,
40
- fontWeight: "lighter"
54
+ fontWeight: "lighter",
55
+ color: valueColor
41
56
  },
42
57
  subtextStyle: {
43
58
  overflow: "break",
44
59
  width: 100,
45
60
  top: 50,
46
61
  fontSize: 11,
47
- lineHeight: 12
62
+ lineHeight: 12,
63
+ color: labelColor
48
64
  }
49
65
  },
50
66
  tooltips: {
@@ -1,4 +1,4 @@
1
- import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutral } from './colors';
1
+ import { colorCritical, colorHigh, colorLow, colorContent, colorVisual, colorUX, colorSuccess, colorDanger, colorInfo, colorNeutralBright } from './colors';
2
2
 
3
3
  export let dataAreaValues = [
4
4
  { value: 79, name: 'Critical'},
@@ -102,5 +102,5 @@ export let dataGaugeInfo = [
102
102
  export let dataTestCases = [
103
103
  { value: 50, name: 'Passed', itemStyle: {color: colorSuccess}},
104
104
  { value: 23, name: 'Failed', itemStyle: {color: colorDanger}},
105
- { value: 27, name: 'Open', itemStyle: {color: colorNeutral}},
105
+ { value: 27, name: 'Open', itemStyle: {color: colorNeutralBright}},
106
106
  ];
@@ -1,9 +1,8 @@
1
1
  ////// Gauge chart
2
2
 
3
3
  import * as echarts from 'echarts';
4
- import { colorSuccess, colorDanger, colorNeutral } from './colors';
5
4
 
6
- export function createChartGauge (target, targetData) {
5
+ export function createChartGauge (target, targetData, labelColor, valueColor, neutralColor) {
7
6
  var chartHeight = 190;
8
7
  var dom = document.getElementById(target);
9
8
  var myChartGauge = echarts.init(dom, null, {
@@ -33,7 +32,7 @@ export function createChartGauge (target, targetData) {
33
32
  lineStyle: {
34
33
  width: 10,
35
34
  color: [
36
- [1, colorNeutral ]
35
+ [1, neutralColor ]
37
36
  ]
38
37
  }
39
38
  },
@@ -53,7 +52,7 @@ export function createChartGauge (target, targetData) {
53
52
  offsetCenter: [0, 35],
54
53
  fontSize: 11,
55
54
  lineHeight: 12,
56
- color: inherit,
55
+ color: labelColor,
57
56
  },
58
57
  detail: {
59
58
  top: 10,
@@ -61,7 +60,8 @@ export function createChartGauge (target, targetData) {
61
60
  formatter: '{value}%',
62
61
  fontSize: 60,
63
62
  lineHeight: 60,
64
- fontWeight: "lighter"
63
+ fontWeight: "lighter",
64
+ color: valueColor,
65
65
  }
66
66
  }
67
67
  ]
@@ -4,12 +4,26 @@ import * as echarts from 'echarts';
4
4
  import { echartsLegend, legendHeight } from './echarts_legend';
5
5
 
6
6
  var legendOptions;
7
- export function createChartHorizontal (target, targetData, targetSeries, showLegend) {
7
+ export function createChartHorizontal (target, targetData, targetSeries, showLegend, labelColor, valueColor) {
8
8
  var chartHeight = targetData.length * 20;
9
9
  var chartPlusLegendHeight;
10
10
  if (showLegend) {
11
11
  chartPlusLegendHeight = chartHeight + legendHeight,
12
- legendOptions = echartsLegend
12
+ legendOptions = {
13
+ type: echartsLegend.type,
14
+ orient: echartsLegend.orient,
15
+ padding: echartsLegend.padding,
16
+ icon: echartsLegend.icon,
17
+ itemGap: echartsLegend.itemGap,
18
+ itemHeight: echartsLegend.itemHeight,
19
+ itemWidth: echartsLegend.itemWidth,
20
+ height: echartsLegend.height,
21
+ left: echartsLegend.left,
22
+ bottom: echartsLegend.bottom,
23
+ textStyle:{
24
+ color:labelColor
25
+ },
26
+ }
13
27
  } else {
14
28
  chartPlusLegendHeight = chartHeight + 0,
15
29
  legendOptions = null
@@ -67,7 +81,8 @@ export function createChartHorizontal (target, targetData, targetSeries, showLeg
67
81
  overflow: "truncate",
68
82
  ellipsis: '…',
69
83
  hideOverlap: false,
70
- interval: 0
84
+ interval: 0,
85
+ color: labelColor,
71
86
  }
72
87
  },
73
88
  series: targetSeries
@@ -0,0 +1,84 @@
1
+ ////// Line chart
2
+
3
+ import * as echarts from 'echarts';
4
+
5
+ export function createChartLine (target, targetDataX, targetDataY, chartColor, labelColor, valueColor, borderColor) {
6
+ var chartHeight = 190;
7
+ var dom = document.getElementById(target);
8
+ var myChartLine = echarts.init(dom, null, {
9
+ renderer: 'canvas',
10
+ useDirtyRect: false,
11
+ height: chartHeight
12
+ });
13
+ var optionLine;
14
+ var optionLine = {
15
+ grid: {
16
+ show: false,
17
+ zlevel: 0,
18
+ top: 30,
19
+ right: 20,
20
+ left: 20,
21
+ bottom: 30
22
+ },
23
+ xAxis: {
24
+ boundaryGap: false,
25
+ zlevel: 2,
26
+ data: targetDataX,
27
+ axisLine: {
28
+ show: false
29
+ },
30
+ axisLabel: {
31
+ show: true,
32
+ margin: 15,
33
+ color: labelColor,
34
+ },
35
+ axisTick: {
36
+ show: false
37
+ },
38
+ },
39
+ yAxis: {
40
+ show: false,
41
+ min: 0,
42
+ max: targetDataY
43
+ },
44
+ series: [
45
+ {
46
+ data: targetDataY,
47
+ type: 'line',
48
+ lineStyle: {
49
+ width: 1,
50
+ color: chartColor,
51
+ borderColor: borderColor
52
+ },
53
+ zlevel: 1
54
+ },
55
+ {
56
+ data: targetDataY,
57
+ type: 'line',
58
+ lineStyle: {
59
+ width: 1
60
+ },
61
+ symbol: 'circle',
62
+ symbolSize: 10,
63
+ itemStyle: {
64
+ borderWidth: 2,
65
+ color: chartColor,
66
+ borderColor: borderColor
67
+ },
68
+ label: {
69
+ show: true,
70
+ color: valueColor,
71
+ },
72
+ zlevel: 3
73
+ }
74
+ ]
75
+ };
76
+
77
+ if (optionLine && typeof optionLine === 'object') {
78
+ myChartLine.setOption(optionLine);
79
+ }
80
+
81
+ window.addEventListener('resize', myChartLine.resize);
82
+ }
83
+
84
+
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as echarts from 'echarts';
4
4
 
5
- export function createChartVertical (target, targetDataY, targetDataX, itemWidth) {
5
+ export function createChartVertical (target, targetDataY, targetDataX, labelColor, valueColor, itemWidth) {
6
6
  var chartHeight = 200;
7
7
  var labelHeight = 20;
8
8
  var dom = document.getElementById(target);
@@ -50,7 +50,8 @@ export function createChartVertical (target, targetDataY, targetDataX, itemWidth
50
50
  overflow: "truncate",
51
51
  ellipsis: '…',
52
52
  hideOverlap: true,
53
- interval: 0
53
+ interval: 0,
54
+ color: labelColor,
54
55
  }
55
56
  },
56
57
  yAxis: {
@@ -66,7 +67,8 @@ export function createChartVertical (target, targetDataY, targetDataX, itemWidth
66
67
  show: true,
67
68
  position: 'center',
68
69
  verticalAlign: 'top',
69
- offset: [0, -15]
70
+ offset: [0, -15],
71
+ color: valueColor,
70
72
  }
71
73
  }
72
74
  ]
@@ -165,12 +165,12 @@
165
165
  @apply inline-block h-icon bg-primary;
166
166
  content: "";
167
167
  width: 14px;
168
- mask-image: url("/assets/images/arrow-down.svg");
168
+ mask-image: url("/assets/images/icons/arrow-down.svg");
169
169
  mask-repeat: no-repeat;
170
170
  }
171
171
 
172
172
  details.card-section[open] .btn-collapse::before {
173
- mask-image: url("/assets/images/arrow-up.svg");
173
+ mask-image: url("/assets/images/icons/arrow-up.svg");
174
174
  }
175
175
 
176
176
  details.card-section[open] .card-section-header {
@@ -149,6 +149,10 @@ a.listitem:hover {
149
149
  @apply max-w-full;
150
150
  }
151
151
 
152
+ .listitem-card pre {
153
+ @apply whitespace-break-spaces select-all;
154
+ }
155
+
152
156
  .listitem-subheadline {
153
157
  @apply mb-xs text-label font-semibold uppercase;
154
158
  }
@@ -8,7 +8,7 @@
8
8
  --color-gray-200: #e6e6e6;
9
9
  --color-gray-300: #bfc1c5;
10
10
  --color-gray-400: #9fa2a8;
11
- --color-gray-500: #7c8188;
11
+ --color-gray-500: #888888;
12
12
  --color-gray-600: #5f656d;
13
13
  --color-gray-700: #343A40;
14
14
  --color-gray-800: #262626;
@@ -17,7 +17,7 @@
17
17
  --color-gray-lighter: #e6e6e6;
18
18
  --color-gray-light: #bfc1c5;
19
19
  --color-gray-DEFAULT: #9fa2a8;
20
- --color-gray-dark: #7c8188;
20
+ --color-gray-dark: #888888;
21
21
  --color-gray-darker: #5f656d;
22
22
  --color-gray-darkest: #262626;
23
23
  --color-red-200: #FF3131;
@@ -5,7 +5,7 @@ title: Area
5
5
 
6
6
  %details.listitem.mb-md
7
7
  %summary.listitem-header
8
- .listitem-title
8
+ .listitem-title.flex.items-center
9
9
  %span.icon.icon-format-code.mr-xs
10
10
  Initialize area chart
11
11
  .listitem-metrics
@@ -20,13 +20,13 @@ title: Area
20
20
  %pre.code.break-spaces
21
21
  :plain
22
22
  import { createChartArea } from './modules/echarts_area';
23
- createChartArea (target, targetDataX, targetDataY, chartColor);
23
+ createChartArea (target, targetDataX, targetDataY, chartColor, labelColor, valueColor, borderColor)
24
24
  .listitem-subheadline echarts_area.js
25
25
  .listitem-card
26
26
  %pre.code.break-spaces
27
27
  :plain
28
28
  import * as echarts from 'echarts';
29
- export function createChartArea (target, targetDataX, targetDataY, chartColor) {
29
+ export function createChartArea (target, targetDataX, targetDataY, chartColor, labelColor, valueColor, borderColor) {
30
30
  var chartHeight = 190;
31
31
  var dom = document.getElementById(target);
32
32
  var myChartArea = echarts.init(dom, null, {
@@ -53,7 +53,8 @@ title: Area
53
53
  },
54
54
  axisLabel: {
55
55
  show: true,
56
- margin: 15
56
+ margin: 15,
57
+ color: labelColor,
57
58
  },
58
59
  axisTick: {
59
60
  show: false
@@ -61,7 +62,8 @@ title: Area
61
62
  splitLine: {
62
63
  show: true,
63
64
  lineStyle: {
64
- type: 'dashed'
65
+ type: 'dashed',
66
+ color: borderColor
65
67
  }
66
68
  }
67
69
  },
@@ -76,7 +78,8 @@ title: Area
76
78
  type: 'line',
77
79
  lineStyle: {
78
80
  width: 1,
79
- color: chartColor
81
+ color: chartColor,
82
+ borderColor: borderColor
80
83
  },
81
84
  areaStyle: {
82
85
  opacity: 1,
@@ -95,10 +98,11 @@ title: Area
95
98
  itemStyle: {
96
99
  borderWidth: 2,
97
100
  color: chartColor,
98
- borderColor: '#ffffff'
101
+ borderColor: borderColor
99
102
  },
100
103
  label: {
101
- show: true
104
+ show: true,
105
+ color: valueColor,
102
106
  },
103
107
  areaStyle: {
104
108
  opacity: 0
@@ -112,13 +116,13 @@ title: Area
112
116
  }
113
117
  window.addEventListener('resize', myChartArea.resize);
114
118
  }
115
- .row
119
+ .grid.gap-spacing{class:"lg:grid-cols-2"}
116
120
  .col-xl-6
117
121
  .card.p-md.mb-xs
118
122
  .echarts-container#echarts-area-1
119
- %details.listitem.mb-md
123
+ %details.listitem
120
124
  %summary.listitem-header
121
- .listitem-title
125
+ .listitem-title.flex.items-center
122
126
  %span.icon.icon-format-code.mr-xs
123
127
  Initialize area chart with blue light color
124
128
  .listitem-metrics
@@ -133,7 +137,7 @@ title: Area
133
137
  %pre.code.break-spaces
134
138
  :plain
135
139
  import { createChartArea } from './modules/echarts_area';
136
- createChartArea("echarts-area-1", dataAreaMonths, dataAreaValues, colorBlueLight);
140
+ createChartArea("echarts-area-1", dataAreaMonths, dataAreaValues, colorBlueLight, colorLabelBright, colorValueBright, colorBorderBright);
137
141
  .listitem-subheadline dataAreaMonths.js
138
142
  .listitem-card
139
143
  %pre.code.break-spaces
@@ -164,13 +168,13 @@ title: Area
164
168
  :plain
165
169
  export const colorBlueLight = '#21bef4';
166
170
  .col-xl-6
167
- .card.mb-xs.p-xs
171
+ .card.mb-xs.p-md.bg-gray-800
168
172
  .echarts-container#echarts-area-2
169
- %details.listitem.mb-md
173
+ %details.listitem
170
174
  %summary.listitem-header
171
- .listitem-title
175
+ .listitem-title.flex.items-center
172
176
  %span.icon.icon-format-code.mr-xs
173
- Initialize area chart with blue light color
177
+ Initialize darkmode area chart
174
178
  .listitem-metrics
175
179
  .listitem-actions
176
180
  .btn.collapse-btn
@@ -183,7 +187,7 @@ title: Area
183
187
  %pre.code.break-spaces
184
188
  :plain
185
189
  import { createChartArea } from './modules/echarts_area';
186
- createChartArea("echarts-area-1", dataAreaMonths, dataAreaValues, colorInfo);
190
+ createChartArea("echarts-area-2", dataAreaMonths, dataAreaValues, colorTealLight, colorLabelDark, colorValueDark, colorBorderDark);
187
191
  .listitem-subheadline dataAreaMonths.js
188
192
  .listitem-card
189
193
  %pre.code.break-spaces