IMEOS
  1. Home
  2. Work
  3. Contact
  4. Blog

Im Obstgarten 7
8596 Scherzingen
Switzerland

+41 79 786 10 11
(CET/CEST, Mo-Fr, 09:00 - 18:00)
io@imeos.com

IMEOS on GitHub
Rails

Dark color scheme for Ruby on Rails errors

Apr 27, 2019
1 minute read

A small contribution to Ruby on Rails, which enables it to regard the OS setting for dark/light appearance when displaying errors.

It uses the prefers-color-scheme CSS media query which is currently supported by Firefox and Safari and in development for Chrome.

Essentially when you crunch it deep at night and don’t want to burn your retinas, thus have enabled dark mode for your OS, it changes this …

Rails error page, light color scheme
Rails error page, light color scheme

… into this

Rails error page, dark color scheme
Rails error page, dark color scheme

That feature has since been merged into Rails, you can find the Pull Request on Github.

Related posts

  • RailsDeviseImplementing Passwordless Authentication with WebAuthn and Passkeys in Rails
    Nov 2, 2025
    7 minutes read
  • RailsAWSAmazon SES for transactional emails
    Mar 3, 2025
    15 minutes read
  • RailsMigrating from Redis to Solid Cache & Solid Cable in Rails
    Oct 18, 2024
    14 minutes read

  • Privacy
  • Imprint
IMEOS