{"action":"opened","issue":{"url":"https://api.github.com/repos/kristoferjoseph/postcss-modular-scale/issues/2","labels_url":"https://api.github.com/repos/kristoferjoseph/postcss-modular-scale/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/kristoferjoseph/postcss-modular-scale/issues/2/comments","events_url":"https://api.github.com/repos/kristoferjoseph/postcss-modular-scale/issues/2/events","html_url":"https://github.com/kristoferjoseph/postcss-modular-scale/issues/2","id":72014752,"number":2,"title":"Allow options to be passed via CLI","user":{"login":"kristoferjoseph","id":76308,"avatar_url":"https://avatars.githubusercontent.com/u/76308?v=3","gravatar_id":"","url":"https://api.github.com/users/kristoferjoseph","html_url":"https://github.com/kristoferjoseph","followers_url":"https://api.github.com/users/kristoferjoseph/followers","following_url":"https://api.github.com/users/kristoferjoseph/following{/other_user}","gists_url":"https://api.github.com/users/kristoferjoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/kristoferjoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristoferjoseph/subscriptions","organizations_url":"https://api.github.com/users/kristoferjoseph/orgs","repos_url":"https://api.github.com/users/kristoferjoseph/repos","events_url":"https://api.github.com/users/kristoferjoseph/events{/privacy}","received_events_url":"https://api.github.com/users/kristoferjoseph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-29T23:17:23Z","updated_at":"2015-04-29T23:17:23Z","closed_at":null,"body":"Currently you can pass in `ratios` and `bases` from css variables. \r\nWe also need to allow these variables to be passed via code.\r\nExample\r\n------------\r\n`postcss --use postcss-modular-scale -c options.json -o screen.css screen.css`\r\n\r\n```\r\n// dependencies \r\nvar fs = require(\"fs\")\r\nvar postcss = require(\"postcss\")\r\nvar modularScale = require(\"postcss-modular-scale\")\r\n \r\n// css to be processed \r\nvar css = fs.readFileSync(\"input.css\", \"utf8\")\r\n \r\n// process css \r\nvar output = postcss()\r\n  .use(modularScale({ ratios: [2], bases: [12,16]}))\r\n  .process(css)\r\n  .css\r\n```"}}