Name | pytailwindcss-extra JSON |
Version |
0.1.1
JSON |
| download |
home_page | None |
Summary | Use Tailwind CSS with daisyUI without Node.js and install it via pip. |
upload_time | 2024-10-19 21:51:47 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
cli
css
daisyui
tailwind
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pytailwindcss-extra
Use _Tailwind CSS_ **with daisyUI** without _Node.js_ and install it via pip.
> An extension of [pytailwindcss](https://github.com/timonweb/pytailwindcss) with [tailwind-cli-extra](https://github.com/dobicinaitis/tailwind-cli-extra)
> to enable [daisyUI](https://daisyui.com/) support.
## Why
_Tailwind CSS_ is notoriously dependent on _Node.js_. If you're a _Python_ developer, this dependency may not be welcome
in your team, your Docker container, or your inner circle.
The _Tailwind CSS_ team recently announced a new standalone CLI build that gives you the full power of _Tailwind CLI_ in
a self-contained executable — no _Node.js_ or `npm` required.
However, installing such a standalone CLI isn't as easy as running `npm install`, the installation command for _Node.js_.
So the user [timonweb](https://github.com/timonweb) created the [pytailwindcss](https://github.com/timonweb/pytailwindcss)
package, which allows you to install the standalone Tailwind CLI with a simple `pip` command.
While this package works well, there is one particular problem. Due to the binary nature of the _Tailwind CLI_, only the
official _Tailwind CSS_ plugins are included and other plugins, especially the very popular _daisyUI_ plugin, cannot be
installed (see #caveats).
Although the problem cannot be solved completely, _daisyUI_ is very useful, not only for me, so the user [dobicinaitis](https://github.com/dobicinaitis)
offers [tailwind-cli-extra](https://github.com/dobicinaitis/tailwind-cli-extra), a _Tailwind CLI_ binary patched with
_daisyUI_. Using this binary, pytailwindcss-extra extends _pytailwindcss_ and provides the _Tailwind CLI_ with the
_daisyUI_ plugin for the Python ecosystem.
## Get started
1. Install `tailwindcss-extra` via `pip` by executing the following command:
```
pip install pytailwindcss-extra
```
2. The `tailwindcss-extra` command should now be available in your terminal. Try to run it:
```
tailwindcss-extra
```
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-extra` command. Use it to create a
new project or work with an existing _Tailwind CSS_ project.
3. Let's create a new project. Go to the directory where you want to host your _Tailwind CSS_ project and initialize it
by running:
```
tailwindcss-extra init
```
This command will create the default _tailwind.config.js_ file.
4. Start a watcher by running:
```
tailwindcss-extra -i input.css -o output.css --watch
```
5. Compile and minify your CSS for production by running:
```
tailwindcss-extra -i input.css -o output.css --minify
```
You got it. Please refer to [official Tailwind documentation](https://tailwindcss.com/docs) for more information on
using _Tailwind CSS_ and its CLI.
## Caveats
It's not all roses, though. Giving up _Node.js_ means you won't be able to install plugins or additional dependencies
for your _Tailwind CSS_ setup. At the same time, that might not be a dealbreaker. You can still customize _Tailwind CSS_
via the _tailwind.config.js_ file. And the standalone build also comes with all official _Tailwind CSS_ plugins
like `@tailwindcss/aspect-ratio`, `@tailwindcss/forms`, `@tailwindcss/line-clamp`, `@tailwindcss/typography` and of
course `daisyUI`. So in 90% of _Tailwind CSS_ usage cases you should be covered, and the setup is so simplified now.
Here is what the _Tailwind CSS_ team says about going the standalone _Tailwind CSS_ route:
> 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.
Raw data
{
"_id": null,
"home_page": null,
"name": "pytailwindcss-extra",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "cli, css, daisyui, tailwind",
"author": null,
"author_email": "2mal3 <56305732+2mal3@users.noreply.github.com>",
"download_url": "https://files.pythonhosted.org/packages/87/47/f294d05237e4bf2a5c0859132ecf1424efdb3d18bc2c4fcf112edfcbdc93/pytailwindcss_extra-0.1.1.tar.gz",
"platform": null,
"description": "# pytailwindcss-extra\n\nUse _Tailwind CSS_ **with daisyUI** without _Node.js_ and install it via pip.\n\n> An extension of [pytailwindcss](https://github.com/timonweb/pytailwindcss) with [tailwind-cli-extra](https://github.com/dobicinaitis/tailwind-cli-extra)\n> 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 \u2014 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).\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 host your _Tailwind CSS_ project and initialize it\n by running:\n\n ```\n tailwindcss-extra init\n ```\n\n This command will create the default _tailwind.config.js_ file.\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 the _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`, `@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> If you\u2019re working on a project where you don\u2019t otherwise need _Node.js_ or `npm`, the standalone build can be a great\n> choice. If Tailwind was the only reason you had a package.json file, this is probably going to feel like a nicer\n> solution.\n",
"bugtrack_url": null,
"license": null,
"summary": "Use Tailwind CSS with daisyUI without Node.js and install it via pip.",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/2mal3/pytailwindcss-extra",
"Issues": "https://github.com/2mal3/pytailwindcss-extra/issues",
"Repository": "https://github.com/2mal3/pytailwindcss-extra"
},
"split_keywords": [
"cli",
" css",
" daisyui",
" tailwind"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0a3da78c6f3d87efe87ce5d8ea3920e2372f65efa6a4453f9ddbf46d0c44e8d2",
"md5": "e1b6da3ea8a8cbd0ae19ecf0f8bca471",
"sha256": "19d6fd5e94034172f0e8e5802db4c617185e7b58d43a8eb56f5d8c9556e6c683"
},
"downloads": -1,
"filename": "pytailwindcss_extra-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e1b6da3ea8a8cbd0ae19ecf0f8bca471",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 8281,
"upload_time": "2024-10-19T21:51:45",
"upload_time_iso_8601": "2024-10-19T21:51:45.439647Z",
"url": "https://files.pythonhosted.org/packages/0a/3d/a78c6f3d87efe87ce5d8ea3920e2372f65efa6a4453f9ddbf46d0c44e8d2/pytailwindcss_extra-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8747f294d05237e4bf2a5c0859132ecf1424efdb3d18bc2c4fcf112edfcbdc93",
"md5": "c5c4af237b7aa9ca5703caf2fb25703a",
"sha256": "3f1b7406c9d8422d818a5439be09918ea9639cc4b38339f2362d861cb46d0074"
},
"downloads": -1,
"filename": "pytailwindcss_extra-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "c5c4af237b7aa9ca5703caf2fb25703a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7700,
"upload_time": "2024-10-19T21:51:47",
"upload_time_iso_8601": "2024-10-19T21:51:47.460026Z",
"url": "https://files.pythonhosted.org/packages/87/47/f294d05237e4bf2a5c0859132ecf1424efdb3d18bc2c4fcf112edfcbdc93/pytailwindcss_extra-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-19 21:51:47",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "2mal3",
"github_project": "pytailwindcss-extra",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pytailwindcss-extra"
}