Skip to content

Commit

Permalink
fix: typo thme -> theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 19, 2022
1 parent b763908 commit f7baa0a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion demo.html
Expand Up @@ -13,7 +13,7 @@
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
}
a {
color: var(--color-thme-text);
color: var(--color-theme-text);
}
</style>
</head>
Expand Down
16 changes: 8 additions & 8 deletions main.js
Expand Up @@ -160,18 +160,18 @@ class DarkMode extends HTMLElement {
const textContent = `
[data-color-mode*='dark'], [data-color-mode*='dark'] body {
color-scheme: dark;
--color-thme-bg: #0d1117;
--color-thme-text: #c9d1d9;
background-color: var(--color-thme-bg);
color: var(--color-thme-text);
--color-theme-bg: #0d1117;
--color-theme-text: #c9d1d9;
background-color: var(--color-theme-bg);
color: var(--color-theme-text);
}
[data-color-mode*='light'], [data-color-mode*='light'] body {
color-scheme: light;
--color-thme-bg: #fff;
--color-thme-text: #24292f;
background-color: var(--color-thme-bg);
color: var(--color-thme-text);
--color-theme-bg: #fff;
--color-theme-text: #24292f;
background-color: var(--color-theme-bg);
color: var(--color-theme-text);
}`;

const STYLE_ID = '_dark_mode_style_';
Expand Down

0 comments on commit f7baa0a

Please sign in to comment.