dabbott / javascript-playgrounds

An interactive JavaScript sandbox
https://unpkg.com/javascript-playgrounds/public/index.html
Other
1.4k stars 131 forks source link

[help wanted] how to use css options in parameters #66

Open shellRaining opened 9 months ago

shellRaining commented 9 months ago

very thanks for this awesome project, but I encounter some trouble when use it.

I use this project directly like below

const baseUrl = "//unpkg.com/javascript-playgrounds@^1.0.0/public/index.html";
const parameters = {
  code: `${text}`,
  css: `body {
    font-size: 40px;
  }`,
};

but I found that the font-size not work... the doc only show it is a string type, but not mentioned the format

so, could you provide more info about how to use it, very thanks! 😀