use
Read or set the use attribute.
Syntax
- doodle.use
- doodle.use = 'var(--rule)'
- doodle.use = '@grid: 5 / 60vmin; background: #000;'
Setting the property re-renders the doodle with the new rules.
Examples
const doodle = document.querySelector('css-doodle');
doodle.use = 'var(--my-rule)';
console.log(doodle.use); // "var(--my-rule)"