phoenixframework/tailwind is a Elixir project with 508 stars. An installer for tailwind
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Mix tasks for installing and invoking tailwindcss via the
stand-alone tailwindcss cli
Installation
If you are going to build assets in production, then you add
tailwind as dependency on all environments but only start it
in dev:
def deps do
[
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev}
]
end
Once installed, change your config/config.exs to pick your
Tailwind version of choice:
config :tailwind, version: "4.3.0"
Note that :tailwind 0.3+ assumes Tailwind v4+ by default.
It still supports Tailwind v3, but some configuration options
when setting up a new project might be different. If you use
Tailwind v3, also have a look at the README in the 0.2 branch.
Now you can install Tailwind by running:
$ mix tailwind.install
or if your platform isn't officially supported by Tailwind,
you can supply a third party path to the binary the installer wants
(beware that we cannot guarantee the compatibility of any third party executable):
Now you don't need the Tailwind binary and you can remove the
vendored JS files: rm assets/vendor/daisy*
Profiles
The first argument to tailwind is the execution profile.
You can define multiple execution profiles with the current
directory, the OS environment, and default arguments to the
tailwind task in your config/config.exs:
When mix tailwind default is invoked, the task arguments will be appended
to the ones configured above.
Adding to Phoenix
Note that applications generated with Phoenix older than 1.8 still use Tailwind v3 by default.
If you're using Tailwind v3 please refer to the README in the v0.2 branch
instead.
To add Tailwind v4 to an application using Phoenix, first add this package
as a dependency in your mix.exs:
def deps do
[
{:phoenix, "~> 1.8"},
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev}
]
end
Also, in mix.exs, add tailwind to the assets.deploy
alias for deployments (with the --minify option):
Now let's change config/config.exs to tell tailwind
to build our css bundle into priv/static/assets/css.
We'll also give it our assets/css/app.css as our css entry point:
We also strongly recommend setting up the @source paths in your in app.css
file to watch assets/css, assets/js and lib/YOUR_APP_web, as above.
Without those, too many files (including build artifacts) may be watched,
leading to frequent recompilations.
Updating from Tailwind v3 to v4
For a typical Phoenix application, updating from Tailwind v3 to v4 requires the following steps:
Follow the Tailwind v4 upgrade guide to address deprecations.
Optional: remove the tailwind.config.js and switch to the new CSS based configuration. For more information, see the previously mentioned upgrade guide and the documentation on functions and directives.
License
Copyright (c) 2022 Chris McCord.
Copyright (c) 2021 Wojtek Mach, José Valim.
tailwind source code is licensed under the MIT License.
Does phoenixframework/tailwind have a project website?
No homepage URL was recorded for phoenixframework/tailwind in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How many stars does phoenixframework/tailwind have?
phoenixframework/tailwind has 508 GitHub stars — refresh the page for the live number, or check github.com/phoenixframework/tailwind. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is phoenixframework/tailwind open source?
Yes — phoenixframework/tailwind ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/phoenixframework/tailwind.
What is phoenixframework/tailwind?
phoenixframework/tailwind (phoenixframework/tailwind) is a Elixir project on GitHub. From the project's own README: An installer for tailwind
Where do I read more about phoenixframework/tailwind?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/phoenixframework/tailwind is the definitive source.
Read full README in the tab above.
Is tailwind worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of tailwind.