It took me a good bit of googling and trial and error to discover that if I installed primer-css via npm, the way to get it into my rails app was by adding
import '@primer/css/dist/primer.css'
in app/frontend/entrypoints/application.js (rather than e.g. in application.css or via a stylesheet tag in my erb file)
An overview page on the various ways to install and include third-party css libraries into a vite/rails setup would have been very helpful.
It took me a good bit of googling and trial and error to discover that if I installed
primer-cssvia npm, the way to get it into my rails app was by addingin
app/frontend/entrypoints/application.js(rather than e.g. inapplication.cssor via a stylesheet tag in my erb file)An overview page on the various ways to install and include third-party css libraries into a vite/rails setup would have been very helpful.