{"id":21543056,"url":"https://github.com/codefromanywhere/tailwindstatic","last_synced_at":"2025-08-13T22:21:36.319Z","repository":{"id":263446877,"uuid":"890423375","full_name":"CodeFromAnywhere/tailwindstatic","owner":"CodeFromAnywhere","description":"Use Tailwind with zero setup for static HTML","archived":false,"fork":false,"pushed_at":"2024-11-18T15:35:39.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-18T16:49:34.402Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tailwindstatic.vercel.app","language":"TypeScript","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/CodeFromAnywhere.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":"2024-11-18T14:43:15.000Z","updated_at":"2024-11-18T15:35:49.000Z","dependencies_parsed_at":"2024-12-31T03:46:31.186Z","dependency_job_id":null,"html_url":"https://github.com/CodeFromAnywhere/tailwindstatic","commit_stats":null,"previous_names":["codefromanywhere/tailwind-static"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFromAnywhere%2Ftailwindstatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFromAnywhere%2Ftailwindstatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFromAnywhere%2Ftailwindstatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeFromAnywhere%2Ftailwindstatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeFromAnywhere","download_url":"https://codeload.github.com/CodeFromAnywhere/tailwindstatic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235412224,"owners_count":18986075,"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-11-24T05:12:43.971Z","updated_at":"2025-01-24T08:42:23.248Z","avatar_url":"https://github.com/CodeFromAnywhere.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tailwind-static\n\nUse Tailwind with zero setup for static HTML\n\nThe idea is simple: use `\u003cscript src=\"https://cdn.tailwindstatic.com\" /\u003e` in your html, and when the HTML is loaded in the browser, the script will look up the origin to determine which classes are needed. It will respond with all of tailwind if it can't reach the origin (e.g. if it was localhost or file://) or it will extract the specific classes it needs and compile a static CSS file for your HTML page.\n\n# Insight\n\nAfter having done this I'm only seeing that https://cdn.tailwindcss.com is actuallly a JS file. LOL! Missed that. That means likely that it is reading the entire website on-demand i guess already, so the advantage to doing it on the backend and then serve a CSS is minimal. The only advantage would be that it maybe faster on subsequent requests (if it's cached via CDN)\n\nThe problem now I'm running into is that the 'referer' header is actually only the origin part of the URL but we need the entire URL of the static html file!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefromanywhere%2Ftailwindstatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodefromanywhere%2Ftailwindstatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodefromanywhere%2Ftailwindstatic/lists"}