{"id":18358906,"url":"https://github.com/uppercod/atomico-tailwindcss","last_synced_at":"2026-02-17T13:32:10.629Z","repository":{"id":113250452,"uuid":"297555583","full_name":"UpperCod/atomico-tailwindcss","owner":"UpperCod","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-22T14:27:04.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-20T11:32:34.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://uppercod.github.io/atomico-tailwindcss/","language":"HTML","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/UpperCod.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-22T06:24:59.000Z","updated_at":"2020-09-22T14:27:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"6e85ae12-5265-4dd3-b1c2-8137ede2bc2c","html_url":"https://github.com/UpperCod/atomico-tailwindcss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UpperCod/atomico-tailwindcss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fatomico-tailwindcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fatomico-tailwindcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fatomico-tailwindcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fatomico-tailwindcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpperCod","download_url":"https://codeload.github.com/UpperCod/atomico-tailwindcss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fatomico-tailwindcss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29545581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T13:00:00.370Z","status":"ssl_error","status_checked_at":"2026-02-17T12:57:14.072Z","response_time":100,"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":[],"created_at":"2024-11-05T22:19:53.247Z","updated_at":"2026-02-17T13:32:10.599Z","avatar_url":"https://github.com/UpperCod.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Atomico + Tailwindcss + Estack\n\nI've created [@uppercod/postcss-import](https://github.com/uppercod/postcss-import) for Postcss that allows to point to selectors of an import to compose new CSS, I've tried it with [**Atomico**](https://github.com/atomicojs/atomico) + [Tailwindcss](https://.com/components/buttons) and the result is pleasantly small.\n\n[**Atomico**](https://github.com/atomicojs/atomico) is an amazing library of only 2.9KB for creating webcomponents just using functions.\n\n## [Live example 👉](https://uppercod.github.io/atomico-tailwindcss/)\n\n### webcomponent\n\n```js\nimport { c } from \"atomico\";\nimport html from \"atomico/html\";\nimport style from \"./t-button.css\";\n\nfunction button({ elevated, disabled, outline, roundedFull }) {\n  const cn = [\"btn\"];\n  if (elevated) cn.push(\"elevated\");\n  if (disabled) cn.push(\"disabled\");\n  if (outline) cn.push(\"disabled\");\n  if (roundedFull) cn.push(\"rounded-full\");\n  return html`\u003chost shadowDom\u003e\n    \u003cstyle\u003e\n      ${style}\n    \u003c/style\u003e\n    \u003cbutton class=${cn.join(\" \")}\u003e\u003cslot\u003e\u003c/slot\u003e\u003c/button\u003e\n  \u003c/host\u003e`;\n}\n\nbutton.props = {\n  rounded: Boolean,\n  disabled: Boolean,\n  elevated: Boolean,\n  roundedFull: Boolean,\n};\n\ncustomElements.define(\"t-button\", c(button));\n```\n\n### style\n\n```css\n@import \"https://unpkg.com/tailwindcss@1.7.5/dist/tailwind.css\" (as: T);\n\n.btn {\n  @extend T\"button\",\n    T.bg-blue-500,\n    T.text-white,\n    T.font-bold,\n    T.py-2,\n    T.px-4,\n    T.rounded;\n  border: none;\n}\n\n.btn:hover {\n  @extend T.hover\\:bg-blue-700:hover;\n}\n\n.rounded-full {\n  @extend T.rounded-full;\n}\n\n.disabled {\n  @extend T.opacity-50, T.cursor-not-allowed;\n}\n.elevated {\n  @extend T.shadow;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fatomico-tailwindcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuppercod%2Fatomico-tailwindcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fatomico-tailwindcss/lists"}