-
-
Notifications
You must be signed in to change notification settings - Fork 50
docs: highlight Angular's ng add setup path #2470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,19 +33,36 @@ export let steps: Step[] = [ | |
| }, | ||
| }, | ||
| { | ||
| title: "Install Tailwind CSS", | ||
| title: "Install Tailwind CSS automatically", | ||
| body: ( | ||
| <p> | ||
| Install <code>@tailwindcss/postcss</code> and its peer dependencies via npm. | ||
| If you're using a recent version of Angular, the easiest way to add Tailwind CSS is with{" "} | ||
| <code>ng add tailwindcss</code>. This installs Tailwind and updates your project configuration for you. If | ||
| you're using an older version of Angular or prefer to set things up yourself, skip this step and follow the | ||
| manual steps below instead. | ||
|
Comment on lines
+39
to
+42
|
||
| </p> | ||
| ), | ||
| code: { | ||
| name: "Terminal", | ||
| lang: "shell", | ||
| code: shell` | ||
| ng add tailwindcss | ||
| `, | ||
| }, | ||
| }, | ||
| { | ||
| title: "Install Tailwind CSS manually", | ||
| body: ( | ||
| <p> | ||
| To install Tailwind CSS manually, install <code>@tailwindcss/postcss</code> and its peer dependencies via | ||
| npm. | ||
| </p> | ||
| ), | ||
|
|
||
| // NOTE: The `--force` flag is used to make sure the installation succeeds. Angular has a peer dependency on `tailwindcss` v3 which causes errors when installing `tailwindcss` v4. | ||
| code: { | ||
| name: "Terminal", | ||
| lang: "shell", | ||
| code: shell` | ||
| npm install tailwindcss @tailwindcss/postcss postcss --force | ||
| npm install tailwindcss @tailwindcss/postcss postcss | ||
| `, | ||
| }, | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typography is inconsistent with the rest of the framework guides: this paragraph uses straight apostrophes ("you're") while the surrounding copy uses curly apostrophes (e.g., "don’t"). Update to use the same typographic apostrophe style for consistency.