Skip to content

Update Ember.js installation guide for non-Vite users - #2476

Merged
RobinMalfait merged 6 commits into
tailwindlabs:mainfrom
NullVoxPopuli:patch-1
Aug 10, 2026
Merged

RobinMalfait merged 6 commits into
tailwindlabs:mainfrom
NullVoxPopuli:patch-1

Conversation

@NullVoxPopuli

Copy link
Copy Markdown
Contributor

lemme know if anything needs to change / go in a different spot

@vercel

vercel Bot commented Apr 21, 2026

Copy link
Copy Markdown

@NullVoxPopuli is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

Added note about newer ember-cli versions generating a vite project by default.
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tailwindcss-com Ready Ready Preview Aug 10, 2026 10:46am

Request Review

</a>
.

(note that newer ember-cli versions will generate a vite project for you by default)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean that newer ember-cli versions (unreleased) will do this but the current one doesn't yet?

If the current one does use Vite by default, then I think we should update this guide such that it works with the default setup you get out of the box.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean that newer ember-cli versions (unreleased) will do this but the current one doesn't yet?

it's not about version, but more what "project template" someone is using.
People have been able to use Vite for over 2 years at this point, I think (and the LTS folks, since nearly a year ago).

If the current one does use Vite by default, then I think we should update this guide such that it works with the default setup you get out of the box.

Sounds good to me, but will folks stuck on the older build system be able to find where to configure things for Tailwind 4?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, but I think we want to have the guides to be up to date with the default setups.

I know that in the normal vite cli you can pass a template, and I don't think it's feasible to document every single template setup. In other words, if you diverge from the default setup you might have to do some more work.

The overal idea should be the same everywhere:

  1. Install tailwindcss
  2. Install the dependency that hooks into the buildsystem (e.g.: @tailwindcss/postcss)
  3. Configure the glue code in the correct file (the hard part that diverges the most, but you as the person using a different template might actually know where this is, often better than we do)
  4. Import a CSS file containing at least
    @import "tailwindcss";

We can always re-introduce an older (the current one) setup version if people run into issues. But I don't think we have install instructions for previous setups of other frameworks iirc, so I don't think this is going to be a big issue to be honest.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good to me! will update this for current state

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current one uses vite by default

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, when I replied github had decided to not show me all the replies, I was answering your original question without seeing it had already been answered. Ignore me 🤭

NullVoxPopuli-ai-agent and others added 2 commits August 6, 2026 13:59
New Ember apps are Vite-based, so the guide now follows the same shape
as the other Vite framework guides: install @tailwindcss/vite, add the
plugin to vite.config.mjs, import Tailwind from app/styles/app.css, and
link that stylesheet directly from index.html in place of
/@embroider/virtual/app.css (per emberjs/rfcs#1148) so Vite's CSS
pipeline processes it.

Also registers shiki's glimmer-js grammar so the .gjs sample highlights
properly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
{{page-title "MyProject"}}
name: "application.gjs",
lang: "gjs",
code: js`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the right tag, even if the language isn't js?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good enough I would say:
image

@greptile-apps

greptile-apps Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

The prior syntax-highlighting failure is resolved because the guide now requests glimmer-js and the highlighter registers that exact language identifier, leaving no blocking failure.

Reviews (3): Last reviewed commit: "Update src/app/(docs)/docs/installation/..." | Re-trigger Greptile

Comment thread src/app/(docs)/docs/installation/framework-guides/emberjs.tsx Outdated
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@driesdl

driesdl commented Aug 9, 2026

Copy link
Copy Markdown

Preview looks good!

Comment thread src/app/(docs)/docs/installation/framework-guides/emberjs.tsx Outdated
@RobinMalfait
RobinMalfait enabled auto-merge (squash) August 10, 2026 10:44

@RobinMalfait RobinMalfait left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thanks!

Verified locally that it works after each step.

Image

I did remove one sentence near the beginning that didn't feel necessary to me.

Thanks again!

@RobinMalfait
RobinMalfait merged commit c8e838c into tailwindlabs:main Aug 10, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants