Skip to content

Commit 7334526

Browse files
p4gsclaudehappy-otter
committed
Switch theme toggle from emoji to Remix Icons
Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
1 parent 8303515 commit 7334526

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • docs/projects/grcengineering-cheat-sheet

docs/projects/grcengineering-cheat-sheet/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link rel="preconnect" href="https://fonts.googleapis.com">
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1010
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
11+
<link href="https://cdn.jsdelivr.net/npm/remixicon@4.6.0/fonts/remixicon.css" rel="stylesheet">
1112
<style>
1213
:root {
1314
--orange: #FFA84F;
@@ -365,7 +366,7 @@
365366
<body>
366367

367368
<button class="theme-toggle" onclick="toggleTheme()" aria-label="Toggle dark mode" title="Toggle dark mode">
368-
<span class="theme-icon"></span>
369+
<i class="theme-icon ri-moon-line"></i>
369370
</button>
370371

371372
<header class="page-header">
@@ -489,7 +490,8 @@ <h1 class="page-title">The <span class="highlight">GRC Engineering</span> Cheat
489490
updateIcon(next);
490491
}
491492
function updateIcon(theme) {
492-
document.querySelector('.theme-icon').textContent = theme === 'dark' ? '\u2600' : '\u263E';
493+
var icon = document.querySelector('.theme-icon');
494+
icon.className = theme === 'dark' ? 'theme-icon ri-sun-line' : 'theme-icon ri-moon-line';
493495
}
494496
(function() {
495497
var saved = localStorage.getItem('cheatsheet-theme');

0 commit comments

Comments
 (0)