Twenty twenty-three theme from WordPress is the first sane theme from WP in a few years

The first-party themes from WordPress are always intriguing because they come with the latest new features they are introducing in the wordpress engine. For the 2023 version, it has style options and a completely templatized theme that can be updated using the Block editor.

The only thing I was surprised to see missing from the theme is dark mode. It’s 2022, everything should have dark mode now.

I went ahead and used my one-line dark mode conversion and it’s good to go though. See for yourself below:

The light mode screenshot is the default theme without a header and the dark mode is with my one-liner change.

The one-line dark mode conversion is done using CSS like so:

@media (prefers-color-scheme: dark) {
  body {
    filter: invert(1);
    background: #000;  /* since most sites declare the background color */
  }
}

Posted

in