{"id":13780754,"url":"https://github.com/timonweb/pytailwindcss","last_synced_at":"2025-04-04T08:05:41.906Z","repository":{"id":41505636,"uuid":"439985076","full_name":"timonweb/pytailwindcss","owner":"timonweb","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-23T21:23:14.000Z","size":63,"stargazers_count":334,"open_issues_count":6,"forks_count":9,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-28T07:06:09.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/timonweb.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}},"created_at":"2021-12-19T22:49:26.000Z","updated_at":"2025-03-25T21:17:13.000Z","dependencies_parsed_at":"2024-01-15T23:27:43.464Z","dependency_job_id":"f90f3ee9-5a73-4fc2-bfa8-e647213f535e","html_url":"https://github.com/timonweb/pytailwindcss","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"48c8e6d79951df5315341ac13a1896be5a13aceb"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonweb%2Fpytailwindcss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonweb%2Fpytailwindcss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonweb%2Fpytailwindcss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonweb%2Fpytailwindcss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timonweb","download_url":"https://codeload.github.com/timonweb/pytailwindcss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142052,"owners_count":20890652,"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-08-03T18:01:19.398Z","updated_at":"2025-04-04T08:05:41.876Z","avatar_url":"https://github.com/timonweb.png","language":"Python","readme":"# Standalone Tailwind CSS CLI, installable via pip\n\nUse *Tailwind CSS* without *Node.js* and install it via pip.\n\n## Why\n\n*Tailwind CSS* is notoriously dependent on *Node.js*. If you're a *Python* developer, this dependency may not be welcome\nin your team, your Docker container, or your inner circle.\n\nThe *Tailwind CSS* team recently announced a new standalone CLI build that gives you the full power of *Tailwind CLI* in\na self-contained executable — no *Node.js* or `npm` required.\n\nHowever, installing such a standalone CLI isn't as easy as running `npm install`, the installation command for *Node.js*\n.\n\nThat's why I decided to make it as simple as running `pip install` command. As a result you can install the standalone *\nTailwind CLI* via `pip` by running the following command:\n\n```bash\npip install pytailwindcss\n```\n\nNow you can run `tailwindcss` in your terminal as:\n\n```\ntailwindcss -i input.css -o output.css --minify\n```\n\nVoila!\n\n## Get started\n\n1. Install `tailwindcss` via `pip` by executing the following command:\n\n   ```\n   pip install pytailwindcss\n   ```\n\n2. [Optional] Preinstall `tailwindcss` binary by running the following command:\n\n   ```\n   tailwindcss_install\n   ```\n\n   If you skip this step, the binary will be downloaded on the first run of `tailwindcss` command.\n\n3. The `tailwindcss` command should now be available in your terminal. Try to run it:\n\n   ```\n   tailwindcss\n   ```\n\n   If the installation was successful, you should see the message about binary being downloaded on the first run. When download is complete, you should see the help output for the `tailwindcss` command. Use `tailwindcss`\n   to create a new project or work with an existing *Tailwind CSS* project.\n\n4. Let's create a new project. Go to the directory where you want to host your *Tailwind CSS* project and initialize it\n   by running:\n\n   ```\n   tailwindcss init\n   ```\n\n   This command will create the default *tailwind.config.js* file.\n\n5. Start a watcher by running:\n\n   ```\n   tailwindcss -i input.css -o output.css --watch\n   ```\n\n6. Compile and minify your CSS for production by running:\n\n   ```\n   tailwindcss -i input.css -o output.css --minify\n   ```\n\nYou got it. Please refer to [official Tailwind documentation](https://tailwindcss.com/docs) for more information on\nusing *Tailwind CSS* and its CLI.\n\n## Caveats\n\nIt's not all roses, though. Giving up *Node.js* means you won't be able to install plugins or additional dependencies for\nyour *Tailwind CSS* setup. At the same time, that might not be a dealbreaker. You can still customize *Tailwind CSS* via\nthe *tailwind.config.js* file. And the standalone build also comes with all official *Tailwind CSS* plugins\nlike `@tailwindcss/aspect-ratio`, `@tailwindcss/forms`, `@tailwindcss/line-clamp`, and `@tailwindcss/typography`. So in\n90% of *Tailwind CSS* usage cases you should be covered, and the setup is so simplified now.\n\nHere is what the *Tailwind CSS* team says about going the standalone *Tailwind CSS* route:\n\u003e If you’re working on a project where you don’t otherwise need *Node.js* or `npm`, the standalone build can be a great choice. If Tailwind was the only reason you had a package.json file, this is probably going to feel like a nicer solution.\n\n## Bugs and suggestions\n\nIf you have found a bug, please use the issue tracker on GitHub.\n\n[https://github.com/timonweb/pytailwindcss/issues](https://github.com/timonweb/pytailwindcss/issues)\n\n2021 (c) [Tim Kamanin - A Full Stack Django and Wagtail Developer](https://timonweb.com)\n","funding_links":[],"categories":["Third Party Packages 📦 \u003ca name = \"tools\"\u003e\u003c/a\u003e","UI Components \u0026 Styling","Python"],"sub_categories":["Tools \u003ca name = \"tools\"\u003e\u003c/a\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonweb%2Fpytailwindcss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimonweb%2Fpytailwindcss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonweb%2Fpytailwindcss/lists"}