Can you someway access CSS?

I would want to know if accessing css is possible in wick maybe using js but if theres not how could you change an objects css if you make a wick zip file

You can style wick objects using wick and js commands. Why do you need to use css?

2 Likes

well I wanted to add glassmorphism to objects and other stuff like that

it’s not possible with standard wick commands.
I guess you can target a shape using something like:
this.activeFrame._children[0].style = “color:red”; (your shape could be in a position different from 0)
never tried tough
there also could be something avoiding this to work as i tried to change canvas properties but wick keep resetting his own

glassmorphism relies on blur and transparency
you cannot use blur but transparency is available in wick

it gives me an error but the second option I was thinking about was accessing the CSS of wick objects when you download a zip file of your project

This should work:

this.activeFrame._children[0].fillColor="red";
/* change "fill" with "stroke" to adjust the stroke color instead */

You can also replace “red” with an rgba value

this.activeFrame._children[0].fillColor="rgba(255,0,0,1)" 
// rgba(red, green, blue, opacity)