which is great because it's easy to use on various MRjs elements, like
myEntity.style.backgroundColor = var(--bgColor);
unfortunately, it is not possible to use those colors in many Three.js specific contexts, like when i have to color a material:
myEntity.color.setStyle("#f90");
I would love to be able to use all my CSS colors. A good way would obviously be to support CSS for all the places you can set colors, but maybe a simpler alternative would be to store all the CSS variables and allow me to query those variables using JavaScript.
CSS has very powerful color declaration:
which is great because it's easy to use on various MRjs elements, like
unfortunately, it is not possible to use those colors in many Three.js specific contexts, like when i have to color a material:
I would love to be able to use all my CSS colors. A good way would obviously be to support CSS for all the places you can set colors, but maybe a simpler alternative would be to store all the CSS variables and allow me to query those variables using JavaScript.