 
            
                    How to Serve Multiple Themes in Rails Using Sass and esbuild
In this article, I’ll show you one way to create multiple themes using a server-side variable that automatically renders a theme in Rails (with esbuild). What’s the use case? Your page has a parent resource that dictates your app’s branding You don’t want spaghetti javascript to handle themes. Before jumping in, let’s understand how the…

 
             
             
             
             
             
             
             
            