Question About javascript Rails 7

i want to add a custom theme and their asset but im a little bit confused about javascript how to add the theme js file and load in the project through importmap

Thanks

In principle you add JS using bin/importmap pin <library name>, although you can also add things manually to your importmap.rb file.