# `mix phoenix_email.tailwind`
[🔗](https://github.com/gabrielperales/phoenix-email/blob/v0.1.2/lib/mix/tasks/phoenix_email.tailwind.ex#L1)

Scans your sources for Tailwind classes, runs the `tailwindcss` binary,
and writes the class → inline-style map that `PhoenixEmail.Tailwind` uses
at render time.

    $ mix phoenix_email.tailwind

Configuration (`config/config.exs`):

    config :phoenix_email,
      tailwind_content: ["lib/**/*.ex"],
      tailwind_config: "assets/tailwind.config.js",   # optional
      tailwind_map_path: "priv/phoenix_email/tailwind.map",
      tailwind_bin: "/usr/local/bin/tailwindcss"      # optional

Re-run after adding or changing classes in your templates — wire it into
your `assets.build` and `test` aliases so it stays fresh.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
