Raygun by night: introducing the dark theme

| 3 min. (623 words)
The Raygun Crash Reporting dashboard in the light theme, with an errors-by-hour chart and a list of active errors.
The same Crash Reporting dashboard in the dark theme.

Things don’t only break in office hours. An on-call alert at 2am, a release after dinner, a long session in a dim room: sometimes a bright white screen is the last thing you want.

Raygun now has a dark theme. One click at the top right of the app switches it on, and Crash Reporting, Real User Monitoring (RUM) and Application Performance Monitoring (APM) all follow.

To compare the two themes in the screenshots in this post, drag the divider to the left or right.

Switch with one click

The theme button is at the far right of the header, after your name. In the light theme, it shows a moon: select it to switch to dark. In the dark theme, it shows a sun: select it to switch back.

The right end of the Raygun header in both themes. In the light theme, the button shows a moon. In the dark theme, it shows a sun.

  • Raygun remembers your choice in your browser. If you use Raygun in a different browser or on a different computer, select the theme there too.
  • Pages open in your theme. Raygun applies the theme before the page draws, so a dark page doesn’t flash white while it loads.
  • Light is still the default, and the sign-in page is always light.
  • The button works with the keyboard, and screen readers announce it as “Switch to dark theme” or “Switch to light theme”. If your system is set to reduce motion, the icon changes without its animation.

Your data keeps its colors

A dark theme is more than a dark background. We went through the charts, maps, traces and code in Raygun so that they read well in the dark, and so that the colors that tell you something stay the same.

Charts

Backgrounds, grid lines and axis labels change with the theme. The data doesn’t: P99 is the red line in both themes, and the error status tabs keep their colors, such as red for Active and green for Resolved. The Apdex bands use deeper shades of the same colors, so Unacceptable is still red and Excellent is still green.

The APM overview in the light theme, with charts for Apdex, request speed and requests per minute.Light
The same APM overview in the dark theme. The chart lines and the Apdex bands keep their colors.Dark

The APM overview in both themes. Screenshots in this post use sample data.

Maps

On the RUM Geo and Live maps, the land, the borders and the hover color change with the theme. The countries keep their colors, so a country with slow load times is red in both themes.

The RUM Geo page in the light theme: a world map that colors each country by its load time.Light
The same RUM Geo page in the dark theme. The land is dark, and the countries keep their colors.Dark

Load times by country, in both themes.

Traces and code

In an APM trace, each call type keeps its color in the flamechart, such as purple for My Code and yellow for Queries. Source code, SQL queries, JSON and setup instructions use a dark syntax palette. We checked the syntax colors for every language in our setup instructions, at a contrast of at least 4.5:1 in both themes.

An APM trace in the light theme, with the flamechart and the source code of the selected call.Light
The same trace in the dark theme. The flamechart keeps its call type colors, and the source code uses dark syntax colors.Dark

A trace in both themes, with the flamechart and the source of the selected call.

Built to stay dark

The new Raygun app uses one set of named colors, such as “background”, “foreground” and “border”, in place of fixed light colors. Each name has a light value and a dark value, so a component that uses the names works in both themes. A lint rule stops our product pages from using a color that isn’t in the set. When we add a page, it works in the dark theme from the start.

Try it tonight

Sign in to Raygun and select the moon at the top right. If something doesn’t look right in the dark theme, tell us with Share feedback in the sidebar.

This is Day 3 of our 12 Days of Christmas. If you missed the first two days, see how to find the slow call sooner with the updated APM flamechart and waterfall, and the two new ways to read an APM trace: Lanes and Time map.