RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Adding dark mode to your Rails application with Tailwind and Stimulus

This post walks through the steps to add a dark-mode toggle to your Rails app with Tailwind and Stimulus JS. On top of actually implementing the ability to toggle back and forth, I’ll also go over some ways you can create your own custom dark theme

https://www.codynorman.com/ruby/tailwind_darkmode/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in