{"id":30180917,"url":"https://github.com/streamich/virtual-css","last_synced_at":"2025-08-12T08:06:14.540Z","repository":{"id":57392756,"uuid":"177199390","full_name":"streamich/virtual-css","owner":"streamich","description":"💄 Virtual CSS for virtual DOM libraries","archived":false,"fork":false,"pushed_at":"2023-12-15T11:47:17.000Z","size":236,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T18:38:40.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamich.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-03-22T19:37:43.000Z","updated_at":"2022-03-17T07:53:07.000Z","dependencies_parsed_at":"2024-02-05T10:14:17.205Z","dependency_job_id":null,"html_url":"https://github.com/streamich/virtual-css","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/streamich/virtual-css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fvirtual-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fvirtual-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fvirtual-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fvirtual-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamich","download_url":"https://codeload.github.com/streamich/virtual-css/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Fvirtual-css/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269814341,"owners_count":24479363,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-08-12T08:06:05.871Z","updated_at":"2025-08-12T08:06:14.508Z","avatar_url":"https://github.com/streamich.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# virtual-css\n\nVirtual CSS renderer. Renders only CSS declaration that changed.\n\n```shell\nnpm i virtual-css\n```\n\n- Inline CSS with pseudo-selectors and media queries\n\n\n## Usage\n\nAs React hook:\n\n```js\nimport {useCss} from 'virtual-css';\n\nconst Demo = () =\u003e {\n  const className = useCss({\n    color: 'tomato',\n    '\u0026:hover': {\n      color: 'orange',\n    },\n  });\n\n  return \u003cdiv className={className}\u003eHover me!\u003c/div\u003e;\n};\n```\n\nAs styled blocks:\n\n```js\nimport {Box, Text} from 'virtual-css';\n\nconst myCss = {\n  color: 'tomato',\n  '\u0026:hover': {\n    color: 'orange',\n  },\n};\n\n\u003cBox css={css}\u003eHover me!\u003c/Box\u003e\n\u003cText css={css}\u003eHover me!\u003c/Text\u003e\n```\n\nAs inline JSX:\n\n```js\n/** @jsx jsx */\nimport {jsx} from 'virtual-css';\n\nconst myCss = {\n  color: 'tomato',\n  '\u0026:hover': {\n    color: 'orange',\n  },\n};\n\n\u003cdiv css={css}\u003eHover me!\u003c/div\u003e\n```\n\nIf you are using TypeScript, include this type override:\n\n```ts\ndeclare module 'react' {\n  interface DOMAttributes\u003cT\u003e {\n      css?: any;\n  }\n}\n```\n\n\n## License\n\n[Unlicense](LICENSE) \u0026mdash; public domain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fvirtual-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamich%2Fvirtual-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Fvirtual-css/lists"}