Skip to content

Commit

Permalink
Upgrade Tailwind to 3.4.0 (#5671)
Browse files Browse the repository at this point in the history
* Upgrades Tailwind version to 3.4.0.

* Adds the new Tailwind 3.4.0 class `text-balance` to the title, making it look better on smaller screens.

---------

Co-authored-by: Chris McCord <[email protected]>
  • Loading branch information
arjunbajaj and chrismccord authored Jan 3, 2024
1 parent 4a81229 commit dec89f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion installer/templates/phx_single/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ config :esbuild,

# Configure tailwind (the version is required)
config :tailwind,
version: "3.3.2",
version: "3.4.0",
<%= @app_name %>: [
args: ~w(
--config=tailwind.config.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ config :esbuild,

# Configure tailwind (the version is required)
config :tailwind,
version: "3.3.2",
version: "3.4.0",
<%= @web_app_name %>: [
args: ~w(
--config=tailwind.config.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
v<%%= Application.spec(:phoenix, :vsn) %>
</small>
</h1>
<p class="text-[2rem] mt-4 font-semibold leading-10 tracking-tighter text-zinc-900">
<p class="text-[2rem] mt-4 font-semibold leading-10 tracking-tighter text-zinc-900 text-balance">
Peace of mind from prototype to production.
</p>
<p class="mt-4 text-base leading-7 text-zinc-600">
Expand Down
2 changes: 1 addition & 1 deletion integration_test/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ config :phoenix, :json_library, Jason

config :swoosh, api_client: false

config :tailwind, :version, "3.3.2"
config :tailwind, :version, "3.4.0"

0 comments on commit dec89f2

Please sign in to comment.