Lisianthus-A opened a new issue #16044:
URL: https://github.com/apache/echarts/issues/16044


   ### What problem does this feature solve?
   In some websites, the color theme is controlled by CSS variables. However, 
echarts does not support CSS variables, which means we need to do some work on 
CSS variables before using them, like this:
   ``` js
   // get the CSS variable's value
   const elementStyle = getComputedStyle(element);
   const color = elementStyle.getPropertyValue('--color');
   
   // echarts option
   const option = {
       color: [color],
       // ...
   };
   ```
   
   ### What does the proposed API look like?
   ``` js
   // echarts option
   const option = {
       color: ['var(--color1)', 'var(--color2)'],
       // ...
   };
   ```
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to