@rfvcorreia instead of manually setting these properties, let's enqueue a new CSS file in the preview window and have some CSS rules with class selectors, so the widget's outline style can be added just via toggling on a class. This would also allow themes to override widget outlining if the default styles aren't appropriate.