Skip to main content
CSS-Tricks
  • Articles
  • Notes
  • Links
  • Guides
  • Almanac
  • Picks
  • Shuffle
Search

Articles Tagged
dark mode

12 Articles
{
,

}
Image
Direct link to the article Come to the light-dark() Side
dark mode functions UI/IX Design

Come to the light-dark() Side

Dark mode interfaces have matured a lot in the past few years. We all know the "traditional" approach using media queries but in this article, Sara Joy demonstrates modern CSS features that make respecting user color scheme preferences pretty darn easy.
Image
Sara Joy on Oct 25, 2024 Updated on Oct 29, 2024
Image
Direct link to the article Auto Dark Theme
dark mode google

Auto Dark Theme

There are a number of ways to approach a dark mode for your website, but essentially you get all the styles ready for it and then apply them when the user has indicated they want them, whether by direct …

Image
Chris Coyier on Dec 20, 2021
Image
Direct link to the article Easy Dark Mode (and Multiple Color Themes!) in React
dark mode react

Easy Dark Mode (and Multiple Color Themes!) in React

I was working on a large React application for a startup, and aside from just wanting some good strategies to keep our styles organized, I wanted to give this whole “dark mode” thing a shot. With the huge ecosystem around …

Image
Abram Thau on Nov 11, 2021
Image
Direct link to the article SVG Favicons in Action
dark mode favicon

SVG Favicons in Action

Ever heard of favicons made with SVG? If you are a regular reader of CSS-Tricks, you probably have. But does your website actually use one?

The task is more non-trivial than you might think. As we will see in this …

Image
Philippe Bernard on Jul 9, 2021
Image
Direct link to the article Flash of inAccurate coloR Theme (FART)
dark mode fart

Flash of inAccurate coloR Theme (FART)

There is a lot to think about when implementing a dark mode theme on a website. We have a huge guide on it. There are some very clever quick wins out there, but there are also some quite tricky things …

Image
Chris Coyier on Apr 15, 2021 Updated on May 14, 2021
Image
Direct link to the article A DRY Approach to Color Themes in CSS
custom properties dark mode

A DRY Approach to Color Themes in CSS

The other day, Florens Verschelde asked about defining dark mode styles for both a class and a media query, without repeat CSS custom properties declarations. I had run into this issue in the past but hadn’t come up with a …

Image
Christopher Kirk-Nielsen on Feb 24, 2021
Image
Direct link to the article Dark Mode in CSS Guide
dark mode

Dark Mode in CSS Guide

“Dark mode” is defined as a color scheme that uses light-colored text and other UI elements on a dark-colored background. Dark mode, dark theme, black mode, night mode… they all refer to and mean the same thing: a mostly-dark interface rather than a mostly-light interface.
Image
Adhuham on Jul 1, 2020 Updated on Sep 5, 2025
Image
Direct link to the article SVG, Favicons, and All the Fun Things We Can Do With Them
dark mode favicon media queries SVG svg icons

SVG, Favicons, and All the Fun Things We Can Do With Them

Favicons are the little icons you see in your browser tab. They help you understand which site is which when you’re scanning through your browser’s bookmarks and open tabs. They’re a neat part of internet history that are capable of …

Image
Eric Bailey on Apr 24, 2020 Updated on Feb 8, 2022
Image
Direct link to the article A Dark Mode Toggle with React and ThemeProvider
dark mode prefers-color-scheme react hooks

A Dark Mode Toggle with React and ThemeProvider

I like when websites have a dark mode option. Dark mode makes web pages easier for me to read and helps my eyes feel more relaxed. Many websites, including YouTube and Twitter, have implemented it already, and we’re starting to …

Image
Maks Akymenko on Sep 25, 2019
  • 1
  • 2
  • Older Image

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Contact
  • Write for CSS-Tricks!
  • Advertise with us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • Bluesky
Back to Top
Advertisement