{"id":15659059,"url":"https://github.com/juliangruber/yo-css","last_synced_at":"2025-06-20T17:36:38.389Z","repository":{"id":57403971,"uuid":"62215664","full_name":"juliangruber/yo-css","owner":"juliangruber","description":"yo-yo helper for inline css","archived":false,"fork":false,"pushed_at":"2017-03-20T06:22:19.000Z","size":5,"stargazers_count":22,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T17:21:13.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juliangruber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-29T09:59:19.000Z","updated_at":"2021-01-13T19:50:18.000Z","dependencies_parsed_at":"2022-09-15T20:01:46.473Z","dependency_job_id":null,"html_url":"https://github.com/juliangruber/yo-css","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/juliangruber/yo-css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Fyo-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Fyo-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Fyo-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Fyo-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliangruber","download_url":"https://codeload.github.com/juliangruber/yo-css/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Fyo-css/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260988688,"owners_count":23093543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:14:47.817Z","updated_at":"2025-06-20T17:36:33.354Z","avatar_url":"https://github.com/juliangruber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# yo-css\n\n[yo-yo](https://github.com/maxogden/yo-yo) helper for inline css, inspired by [React: CSS in JS by vjeux](https://speakerdeck.com/vjeux/react-css-in-js).\n\n## Example\n\n```js\nconst css = require('yo-css')\nconst yo = require('yo-yo')\n\nconst style = {\n  backgroundColor: 'red',\n  width: 0,\n  border: '3px'  \n}\n\nconst overwrite = {\n  backgroundColor: 'green'  \n}\n\nconst el = yo`\n  \u003cdiv style=${css(style, overwrite)}\u003e\n    Test!\n  \u003c/div\u003e\n`\n\ndocument.body.appendChild(el)\n```\n\n## Installation\n\n```bash\n$ npm install yo-css\n```\n\n## API\n\n### css(...styles)\n\nGiven any number of style objects, merges them into one and returns a valid string of css. Later style objects have precedence. Use camelCase for your properties, this function converts them into proper css case.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliangruber%2Fyo-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliangruber%2Fyo-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliangruber%2Fyo-css/lists"}