Clean local install, WP 5.9
Step 1. In either Custom CSS either in Pro or child theme add the following :root { --my-css-color: #f00;}
Step 2. Follow Feature Requests: Dynamic Content Provider like a shortcode
add_filter('cs_dynamic_content_custom', function ($result, $field, $args = array()) {
$result = 'var(--' . $field . ')';
return $result;
}, 10, 3);
Step 3. Add {{dc:custom:my-css-color}} as a Global color.
Step 4. Create a Header or Footer and set Bar or Container box shadow to dynamic content Global color, this works.
Step 5. Change the box shadow color by inputing {{dc:custom:my-css-color}} inline to the box shadow color. This does not work, the variable is set but inline style --tco-dcb-0 is not defined and set. CSS is generated, box-shadow: 0px 3px 25px 0px var(--tco-dcb-0);
but without inline style --tco-dcb-0 the color is not rendered.