{"id":25296042,"url":"https://github.com/jas-chen/teleport-css","last_synced_at":"2026-02-18T15:32:01.770Z","repository":{"id":274001088,"uuid":"920427252","full_name":"jas-chen/teleport-css","owner":"jas-chen","description":"A simple yet powerful CSS-in-JS library for React 19.","archived":false,"fork":false,"pushed_at":"2025-03-08T00:26:20.000Z","size":77,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-28T03:36:53.653Z","etag":null,"topics":["atomic-css","css","css-in-js","react","server-components","streaming","styling"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jas-chen.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-22T06:04:04.000Z","updated_at":"2025-03-08T00:26:07.000Z","dependencies_parsed_at":"2025-10-28T03:30:47.279Z","dependency_job_id":"77785205-a499-436d-9655-4a7d1e8da3b6","html_url":"https://github.com/jas-chen/teleport-css","commit_stats":null,"previous_names":["jas-chen/teleport-css"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/jas-chen/teleport-css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jas-chen%2Fteleport-css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jas-chen%2Fteleport-css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jas-chen%2Fteleport-css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jas-chen%2Fteleport-css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jas-chen","download_url":"https://codeload.github.com/jas-chen/teleport-css/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jas-chen%2Fteleport-css/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29583917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["atomic-css","css","css-in-js","react","server-components","streaming","styling"],"created_at":"2025-02-13T02:55:19.954Z","updated_at":"2026-02-18T15:32:01.755Z","avatar_url":"https://github.com/jas-chen.png","language":"TypeScript","readme":"\u003ca href=\"https://www.npmjs.com/package/teleport-css\"\u003e\u003cimg alt=\"npm version\" src=\"https://badgen.net/npm/v/teleport-css\"\u003e\u003c/a\u003e\n\n# Teleport CSS\n\nA simple yet powerful CSS-in-JS library for React 19.\n\n## Features\n\n- **Plug-and-Play**: Works out of the box—no need for bundler or PostCSS configuration.\n- **React Server Components (RSC) Support**: Seamlessly integrates with [React Server Components](https://react.dev/reference/rsc/server-components).\n- **Streaming Support**: Compatible with [React's streaming rendering](https://react.dev/reference/react-dom/server/renderToPipeableStream).\n- **Atomic CSS, Minus the Pitfalls**: Achieve atomic CSS with ease, avoiding common issues \\[[1](https://play.tailwindcss.com/9XhuiUFF6n)]\\[[2](https://play.panda-css.com/269sbigMXM)].\n- **Optimized for Component Libraries**: Specifically designed to streamline the creation of reusable component libraries.\n- **Lightweight**: `2.1kB` minified and gzipped. [Check bundle size on Bundlephobia](https://bundlephobia.com/package/teleport-css).\n\n## Prerequisites\n\n- React 19\n\n## Installation\n\n```\nnpm i teleport-css\n```\n\n## Usage\n\n```tsx\nimport { create } from 'teleport-css';\n// Use your preferred hash algorithm\nimport fnv1a from '@sindresorhus/fnv1a';\n\nfunction hashFn(value: string) {\n  return fnv1a(value, { size: 64 }).toString(36).slice(0, 8);\n}\n\nconst { styled, keyframes, cloneAs } = create({\n  hashFn,\n  context: {\n    breakpoints: {\n      md: '768px',\n    },\n  },\n});\n\nconst animation = keyframes((context) =\u003e ({\n  from: { transform: 'rotate(0deg)' },\n  to: { transform: 'rotate(360deg)' },\n}));\n\nconst Button = styled('button', (context) =\u003e ({\n  animation: `${animation} 1s ease infinite`,\n  backgroundColor: 'pink',\n  [`@media (width \u003e= ${context.breakpoints.md})`]: {\n    backgroundColor: 'gold',\n  },\n}));\n\nconst ButtonAsLink = cloneAs(Button, 'a');\n\nfunction App() {\n  return (\n    \u003c\u003e\n      \u003cButton\n        type=\"button\"\n        css={(context) =\u003e ({\n          '\u0026:hover': {\n            backgroundColor: 'lemonchiffon',\n          },\n        })}\n      \u003e\n        Test\n      \u003c/Button\u003e\n      \u003cButtonAsLink href=\"/\"\u003eHome\u003c/ButtonAsLink\u003e\n    \u003c/\u003e\n  );\n}\n```\n\n## Documentation\n\nSee [docs](/docs).\n\n## Browser support\n\nBrowsers support `CSS Nesting` ([Baseline 2023](https://caniuse.com/css-nesting)).\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjas-chen%2Fteleport-css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjas-chen%2Fteleport-css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjas-chen%2Fteleport-css/lists"}