Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit b59b31c

Browse files
committed
rename to perfect-dark-mode
1 parent 6a14bbd commit b59b31c

File tree

13 files changed

+35
-23
lines changed

13 files changed

+35
-23
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 🌚🌝 Perfect Color Mode
1+
# 🌚🌝 Perfect Dark Mode
22

33
- No flicker.
44
- Framework agnostic, supports **React** | **Vue** | **Svelte** | etc.

β€Ždist/index.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždist/index.js.mapβ€Ž

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žexamples/vanilla/index.htmlβ€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>🌚🌝 Perfect Color Mode Example</title>
4+
<title>🌚🌝 Perfect Dark Mode</title>
55
<style>@media (prefers-color-scheme: dark) {
66
:root {
77
--color: white;
@@ -48,10 +48,11 @@
4848
}
4949

5050
</style>
51-
<script src="perfect-color-mode/index.js"></script>
51+
<script src="perfect-dark-mode/index.js"></script>
5252
</head>
5353
<body>
54-
<h1>🌚🌝 Perfect Color Mode Example</h1>
54+
<h1>🌚🌝 Perfect Dark Mode - <a href="https://github.com/DylanVann/perfect-dark-mode">GitHub</a></h1>
55+
<h2>Vanilla Example</h2>
5556
<p>By default we use the system color mode.</p>
5657
<!-- This needs to be hidden initially because we don't know the color mode yet.-->
5758
<!-- It will be shown by the JS.-->

β€Žexamples/vanilla/index.pugβ€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
doctype html
22
html
33
head
4-
title 🌚🌝 Perfect Color Mode Example
4+
title 🌚🌝 Perfect Dark Mode
55
style
66
include ./index.css
7-
script(src="perfect-color-mode/index.js")
7+
script(src="perfect-dark-mode/index.js")
88
body
9-
h1 🌚🌝 Perfect Color Mode Example
9+
h1 🌚🌝 Perfect Dark Mode - <a href="https://github.com/DylanVann/perfect-dark-mode">GitHub</a>
10+
h2 Vanilla Example
1011
p By default we use the system color mode.
1112
// This needs to be hidden initially because we don't know the color mode yet.
1213
// It will be shown by the JS.

β€Žexamples/vanilla/perfect-color-mode/index.jsβ€Ž

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
Β (0)