Skip to content

Commit 02b5304

Browse files
Flo0807philipp-spiess
authored andcommitted
Update Phoenix framework guide (#2053)
Hey! I updated the Phoenix Framework installation instructions: - Bump the `tailwind` plugin version to 0.3, as previous versions do not support Tailwind v4 - Changed paths so you no longer need to tell Tailwind CSS where to look for utilities The installation instructions are now consistent with the instructions from the plugin README: https://github.com/phoenixframework/tailwind --------- Co-authored-by: Philipp Spiess <[email protected]>
1 parent 96d32db commit 02b5304

File tree

1 file changed

+7
-7
lines changed
  • src/app/(docs)/docs/installation/framework-guides

1 file changed

+7
-7
lines changed

src/app/(docs)/docs/installation/framework-guides/phoenix.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export let steps: Step[] = [
4545
[
4646
# …
4747
# [!code highlight:2]
48-
{:tailwind, "~> 0.2", runtime: Mix.env() == :dev},
48+
{:tailwind, "~> 0.3", runtime: Mix.env() == :dev},
4949
]
5050
end
5151
`,
@@ -69,10 +69,11 @@ export let steps: Step[] = [
6969
myproject: [
7070
args: ~w(
7171
# [!code highlight:3]
72-
--input=css/app.css
73-
--output=../priv/static/assets/app.css
72+
--input=assets/css/app.css
73+
--output=priv/static/assets/app.css
7474
),
75-
cd: Path.expand("../assets", __DIR__)
75+
# [!code highlight:2]
76+
cd: Path.expand("..", __DIR__)
7677
]
7778
`,
7879
},
@@ -137,15 +138,14 @@ export let steps: Step[] = [
137138
title: "Import Tailwind CSS",
138139
body: (
139140
<p>
140-
Add an <code>@import</code> to <code>./assets/css/app.css</code> that imports Tailwind CSS. Additionally, tell
141-
Tailwind CSS where to scan for utilities.
141+
Add an <code>@import</code> to <code>./assets/css/app.css</code> that imports Tailwind CSS.
142142
</p>
143143
),
144144
code: {
145145
name: "app.css",
146146
lang: "css",
147147
code: css`
148-
@import "tailwindcss" source("../..");
148+
@import "tailwindcss";
149149
`,
150150
},
151151
},

0 commit comments

Comments
 (0)