{"id":26253948,"url":"https://github.com/2mal3/pytailwindcss-extra","last_synced_at":"2026-02-25T08:11:26.259Z","repository":{"id":237470753,"uuid":"794212001","full_name":"2mal3/pytailwindcss-extra","owner":"2mal3","description":"Use Tailwind CSS with daisyUI without Node.js and install it via pip.","archived":false,"fork":false,"pushed_at":"2025-04-21T09:57:22.000Z","size":55,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-27T02:58:18.883Z","etag":null,"topics":["cli","daisyui","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2mal3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-04-30T17:10:15.000Z","updated_at":"2025-04-21T09:57:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"51ef3121-ac00-4ba1-8079-de0ef400fc3d","html_url":"https://github.com/2mal3/pytailwindcss-extra","commit_stats":null,"previous_names":["2mal3/pytailwindcss-extra"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2mal3%2Fpytailwindcss-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2mal3%2Fpytailwindcss-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2mal3%2Fpytailwindcss-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2mal3%2Fpytailwindcss-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2mal3","download_url":"https://codeload.github.com/2mal3/pytailwindcss-extra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251080979,"owners_count":21533153,"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":["cli","daisyui","tailwindcss"],"created_at":"2025-03-13T18:18:46.334Z","updated_at":"2026-02-25T08:11:21.240Z","avatar_url":"https://github.com/2mal3.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytailwindcss-extra\n\nUse _Tailwind CSS_ **with daisyUI** without _Node.js_ and install it via pip.\n\n\u003e An extension of [pytailwindcss](https://github.com/timonweb/pytailwindcss) with [tailwind-cli-extra](https://github.com/dobicinaitis/tailwind-cli-extra)\n\u003e to enable [daisyUI](https://daisyui.com/) support.\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\nSo the user [timonweb](https://github.com/timonweb) created the [pytailwindcss](https://github.com/timonweb/pytailwindcss)\npackage, which allows you to install the standalone Tailwind CLI with a simple `pip` command.\n\nWhile this package works well, there is one particular problem. Due to the binary nature of the _Tailwind CLI_, only the\nofficial _Tailwind CSS_ plugins are included and other plugins, especially the very popular _daisyUI_ plugin, cannot be\ninstalled (see [Caveats](#caveats)).\n\nAlthough the problem cannot be solved completely, _daisyUI_ is very useful, not only for me, so the user [dobicinaitis](https://github.com/dobicinaitis)\noffers [tailwind-cli-extra](https://github.com/dobicinaitis/tailwind-cli-extra), a _Tailwind CLI_ binary patched with\n_daisyUI_. Using this binary, pytailwindcss-extra extends _pytailwindcss_ and provides the _Tailwind CLI_ with the\n_daisyUI_ plugin for the Python ecosystem.\n\n\n## Get started\n\n1. Install `tailwindcss-extra` via `pip` by executing the following command:\n\n   ```\n   pip install pytailwindcss-extra\n   ```\n\n2. The `tailwindcss-extra` command should now be available in your terminal. Try to run it:\n\n   ```\n   tailwindcss-extra\n   ```\n\n   If the installation was successful, you should see the message about binary being downloaded on the first run. When\n   download is complete, you should see the help output for the `tailwindcss-extra` command. Use it to create a\n   new project or work with an existing _Tailwind CSS_ project.\n\n3. Let's create a new project. Go to the directory where you want to create your _Tailwind CSS_ project and initialize it\n   by creating an CSS file e.g. `input.css`:\n\n   ```css\n   @import \"tailwindcss\";\n   @plugin \"daisyui\";\n   ```\n\n4. Start a watcher by running:\n\n   ```\n   tailwindcss-extra -i input.css -o output.css --watch\n   ```\n\n5. Compile and minify your CSS for production by running:\n\n   ```\n   tailwindcss-extra -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\nfor your _Tailwind CSS_ setup. At the same time, that might not be a dealbreaker. You can still customize _Tailwind CSS_\nvia your CSS file. And the standalone build also comes with all official _Tailwind CSS_ plugins\nlike `@tailwindcss/aspect-ratio`, `@tailwindcss/forms`, `@tailwindcss/line-clamp`, `@tailwindcss/typography` and of\ncourse `daisyUI`. So in 90% 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\n\u003e choice. If Tailwind was the only reason you had a package.json file, this is probably going to feel like a nicer\n\u003e solution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2mal3%2Fpytailwindcss-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2mal3%2Fpytailwindcss-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2mal3%2Fpytailwindcss-extra/lists"}