Name | pytailwindcss-extra JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | Use Tailwind CSS with daisyUI without Node.js and install it via pip. |
upload_time | 2024-05-01 11:28:46 |
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/b5/6e/8ae5d50cfacf8ac44bc93b23e8fcafd69d6bcf079ffdf227cfac814e4c9a/pytailwindcss_extra-0.1.0.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.0",
"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": "bccd3eb22606893e8164208753b397cd874ea530b1fe063e6f138719105fddfe",
"md5": "15337a6fd1e4cb0832a615b739a3cb60",
"sha256": "3fcae01b86ce0817b05436ce49d72ca14b4ec956b366d0456355ee24e91cb6fd"
},
"downloads": -1,
"filename": "pytailwindcss_extra-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "15337a6fd1e4cb0832a615b739a3cb60",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 8152,
"upload_time": "2024-05-01T11:28:44",
"upload_time_iso_8601": "2024-05-01T11:28:44.893742Z",
"url": "https://files.pythonhosted.org/packages/bc/cd/3eb22606893e8164208753b397cd874ea530b1fe063e6f138719105fddfe/pytailwindcss_extra-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b56e8ae5d50cfacf8ac44bc93b23e8fcafd69d6bcf079ffdf227cfac814e4c9a",
"md5": "d987fb1e48d89d6d821f1484be6ed39f",
"sha256": "764fe8aff9fa6d44cf4acaa72584d8d4cc69fb202185f195126f9606fa48ca52"
},
"downloads": -1,
"filename": "pytailwindcss_extra-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "d987fb1e48d89d6d821f1484be6ed39f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7452,
"upload_time": "2024-05-01T11:28:46",
"upload_time_iso_8601": "2024-05-01T11:28:46.814201Z",
"url": "https://files.pythonhosted.org/packages/b5/6e/8ae5d50cfacf8ac44bc93b23e8fcafd69d6bcf079ffdf227cfac814e4c9a/pytailwindcss_extra-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-01 11:28:46",
"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"
}