Skip to content

Instantly share code, notes, and snippets.

@rayriffy rayriffy/index.html Secret
Created Jun 25, 2019

What would you like to do?
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Dark Mode Demo</title>
html {
background-color: rgb(245, 245, 245);
.title {
color: rgb(0, 0, 0);
@media (prefers-color-scheme: dark) {
html {
background-color: rgb(51, 51, 51);
.title {
color: rgb(255, 255, 255);
<h2 class="title">ริฟฟี่พ่อทุกสถาบัน</h2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.