DrSensor / nusa

incremental runtime that bring both simplicity and power into webdev (buildless, cross-language, data-driven)
MIT License
4 stars 0 forks source link

Bind css variable #18

Open DrSensor opened 2 years ago

DrSensor commented 2 years ago
<render-scope>
  <link rel="stylesheet" href="style.css">
  <link rel="modulepreload" href="script.js">

  <button :--bg-color="color">submit</button>
</render-scope>

Warning need colon : as prefix because dash - is not valid start char for attribute name